Crash with Python bindings
W. Trevor King
wking at tremily.us
Tue Jan 12 10:08:13 PST 2016
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20160112/6367a744/attachment.sig>
More information about the notmuch
mailing list