Message406472
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>
> _______________________________________ |
|
Date |
User |
Action |
Args |
2021-11-17 15:11:42 | thewb | set | recipients:
+ thewb, zach.ware |
2021-11-17 15:11:42 | thewb | link | issue45825 messages |
2021-11-17 15:11:42 | thewb | create | |
|