Re: Crash with Python bindings

Subject: Re: Crash with Python bindings

Date: Tue, 12 Jan 2016 10:08:13 -0800

To: Konrad Hinsen

Cc: notmuch@notmuchmail.org

From: W. Trevor King


On Tue, Jan 12, 2016 at 10:41:57AM +0100, Konrad Hinsen wrote:
> --------------------------------------------------
> from notmuch import Query, Database
> 
> def foo(bar):
>      pass
> 
> db = Database()
> q = Query(db, "*")
> db.close()
> --------------------------------------------------
> 
> Running this script (Python 3.5, MacOS X) yields:
>
> [1]    22478 abort      pydev3 Temp/notmuch_test.py
> …
> The strange part is that what causes the crash is the presence of the 
> function foo(), even though it is never called. Remove foo and the 
> script runs fine. It is also necessary to create a Query object.

Adding some more data-points, I see the same results with Python 3.4.3
on Gentoo, although stderr just gets “Aborted”.  All permutations seem
to work on Python 3.3.5.

Cheers,
Trevor

-- 
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy
signature.asc (application/pgp-signature)

Thread: