This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author thewb
Recipients thewb, zach.ware
Date 2021-11-17.15:11:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <97BC979B-414C-48FC-A56D-51F2E19B1EFE@gmail.com>
In-reply-to <1637158133.3.0.177617094312.issue45825@roundup.psfhosted.org>
Content
No worries. I find bugs in my day job, thought this might be a useful segfault but it segfaults because it’s incrementing that reference count on the pyobj that don’t exist. So pretty lame. I did spend an hour tracking it down so I thought I’d let y’all know in case you wanted to fix it. 

Cheers 

> On Nov 17, 2021, at 6:08 AM, Zachary Ware <report@bugs.python.org> wrote:
> 
> 
> Zachary Ware <zachary.ware@gmail.com> added the comment:
> 
> In general, as soon as you touch ctypes you're on your own :).  ctypes has no protections for this kind of case, so you need to protect yourself.
> 
> If you came across this some way that *should* have been safe, please provide more information. But just passing a random memory address to ctypes is likely to cause segfaults or worse.
> 
> ----------
> nosy: +zach.ware
> resolution:  -> not a bug
> status: open -> pending
> 
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue45825>
> _______________________________________
History
Date User Action Args
2021-11-17 15:11:42thewbsetrecipients: + thewb, zach.ware
2021-11-17 15:11:42thewblinkissue45825 messages
2021-11-17 15:11:42thewbcreate