python bindings memory management

Gaute Hope eg at gaute.vetsj.com
Mon Nov 20 02:56:00 PST 2017


David Bremner writes on november 20, 2017 0:11:
> Gaute Hope <eg at gaute.vetsj.com> writes:
> 
>> Hi,
>>
>> when writing this small script [0][1] using the notmuch python bindings I 
>> had to manually delete the python objects in the right order. Otherwise 
>> it segfaults when exiting, presumably because memory dependencies / 
>> cleanup isn't done correctly when the Python GC gets going. Essentially 
>> I have to delete the objects in the order of their dependency:
> 
> Assuming this is python > 3.3, it sounds related to
> 
>      id:5694CA65.8010400 at fastmail.net
> 
> See in particular
> 
>     id:20160112185107.GA21580 at odin.tremily.us

Yep, probably the same thing.

- Gaute



More information about the notmuch mailing list