Re: python bindings memory management

Subject: Re: python bindings memory management

Date: Mon, 20 Nov 2017 11:56:00 +0100

To: David Bremner, notmuch@notmuchmail.org

Cc:

From: Gaute Hope


David Bremner writes on november 20, 2017 0:11:
> Gaute Hope <eg@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@fastmail.net
> 
> See in particular
> 
>     id:20160112185107.GA21580@odin.tremily.us

Yep, probably the same thing.

- Gaute

_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: