From: W. Trevor King Date: Tue, 12 Jan 2016 18:08:13 +0000 (+1600) Subject: Re: Crash with Python bindings X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cf46c82d44a26cc7417875dca6c5f85e60d9230f;p=notmuch-archives.git Re: Crash with Python bindings --- diff --git a/cf/4e7d9839a3d970cdffcc02afb570138436afe7 b/cf/4e7d9839a3d970cdffcc02afb570138436afe7 new file mode 100644 index 000000000..4371e1158 --- /dev/null +++ b/cf/4e7d9839a3d970cdffcc02afb570138436afe7 @@ -0,0 +1,136 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 8F40A6DE1749 + for ; Tue, 12 Jan 2016 10:10:21 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.01 +X-Spam-Level: +X-Spam-Status: No, score=0.01 tagged_above=-999 required=5 tests=[AWL=0.111, + DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id grEOTrKKgb2z for ; + Tue, 12 Jan 2016 10:10:18 -0800 (PST) +Received: from resqmta-po-01v.sys.comcast.net (resqmta-po-01v.sys.comcast.net + [96.114.154.160]) + by arlo.cworth.org (Postfix) with ESMTPS id E121E6DE0FB1 + for ; Tue, 12 Jan 2016 10:10:17 -0800 (PST) +Received: from resomta-po-18v.sys.comcast.net ([96.114.154.242]) + by resqmta-po-01v.sys.comcast.net with comcast + id 569M1s0055E3ZMc016AFbG; Tue, 12 Jan 2016 18:10:15 +0000 +Received: from mail.tremily.us ([73.221.72.168]) + by resomta-po-18v.sys.comcast.net with comcast + id 568D1s00d3dr3C90168Eje; Tue, 12 Jan 2016 18:08:15 +0000 +Received: by mail.tremily.us (Postfix, from userid 1000) + id 8C1671B466B7; Tue, 12 Jan 2016 10:08:13 -0800 (PST) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tremily.us; s=odin; + t=1452622093; bh=C176YL/RoRVMwiew+DAZTKd+qJWsR6OdkO80uHPuyOQ=; + h=Date:From:To:Cc:Subject:References:In-Reply-To; + b=qSMeRFyJOnqYWGu/IjBv5fgT9WF9PaiBL8oeehfpd5quk/Bzyw4Us26OZ9Dfq6Btw + /CdHqTyYO4UvWJ103w5VE64yv5piRHlDva44xbgWRqg9l9YoZ4tFy2qd99VvjvlthY + Ih1b/sWs4nRJCAHlO22sWFNcdV/ON2xSaF0+iteM= +Date: Tue, 12 Jan 2016 10:08:13 -0800 +From: "W. Trevor King" +To: Konrad Hinsen +Cc: notmuch@notmuchmail.org +Subject: Re: Crash with Python bindings +Message-ID: <20160112180813.GA20499@odin.tremily.us> +References: <5694CA65.8010400@fastmail.net> +MIME-Version: 1.0 +Content-Type: multipart/signed; micalg=pgp-sha1; + protocol="application/pgp-signature"; boundary="4Ckj6UjgE2iN1+kY" +Content-Disposition: inline +In-Reply-To: <5694CA65.8010400@fastmail.net> +OpenPGP: id=39A2F3FA2AB17E5D8764F388FC29BDCDF15F5BE8; + url=http://tremily.us/pubkey.txt +User-Agent: Mutt/1.5.23 (2014-03-12) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; + s=q20140121; t=1452622215; + bh=g6U200pdNXJ3Ll8I2wUMtxdLIB4nw4dmW5cO/JDBYc4=; + h=Received:Received:Received:Date:From:To:Subject:Message-ID: + MIME-Version:Content-Type; + b=DIHcjNxB8/T5MzRFLF29OGpssOXJnH3xawNa31zRd64E1TizBUWQulNTbH59YclwE + 9ogxb7vICoBDJ+z/XpsPOlum8j6ceKsQTstcib0LUn6ts9monfv+pX+pEJfjjBwY48 + H65is+Bump6mgMPpDz8Bs+NS0Xkryp1ttikazXTFMyJ4lgdBTl/gvPsitQYEKvaMft + m/e8MQ1nH867uURMeEjSKN9Q4jRLw/YoBxEovTQKT9XqWczMcK/FWj9ll3aZFwLBfY + LDpGO6HfC4vblN3MeXlP8qryPnDj8HgVz4XoEJ8KOBLCWK8wwwc/12gcZ4VG8ropBr + hazy1My+7YxSA== +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Tue, 12 Jan 2016 18:10:21 -0000 + + +--4Ckj6UjgE2iN1+kY +Content-Type: text/plain; charset=utf-8 +Content-Disposition: inline +Content-Transfer-Encoding: quoted-printable + +On Tue, Jan 12, 2016 at 10:41:57AM +0100, Konrad Hinsen wrote: +> -------------------------------------------------- +> from notmuch import Query, Database +>=20 +> def foo(bar): +> pass +>=20 +> db =3D Database() +> q =3D Query(db, "*") +> db.close() +> -------------------------------------------------- +>=20 +> Running this script (Python 3.5, MacOS X) yields: +> +> [1] 22478 abort pydev3 Temp/notmuch_test.py +> =E2=80=A6 +> The strange part is that what causes the crash is the presence of the=20 +> function foo(), even though it is never called. Remove foo and the=20 +> 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 =E2=80=9CAborted=E2=80=9D. All permut= +ations seem +to work on Python 3.3.5. + +Cheers, +Trevor + +--=20 +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 + +--4Ckj6UjgE2iN1+kY +Content-Type: application/pgp-signature; name="signature.asc" +Content-Description: OpenPGP digital signature + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2 + +iQIcBAEBAgAGBQJWlUELAAoJEAPqygegUbGsEXgP/iUTA/3rGKIgTInqmzuMDySo +F3JXrFmEoMP6+70a1G5ulCJSx0AvY1yUhhEdTQB+NIu2tE+aQ4dLI9+36oSYkSiO +Pv1P1Y2DOiySXx25QefGg+enKrerd7nKcnoY8+qvUoIbg2q7feLf43M9n3LMdpMI +Q+RPDzQsBgm0Ycizhs1MQQWLFAvoeerckUG3ddAL1L/cH9AssuxlqwctLXqVHd2F +vJcZrEvw9eUl9mB6IVEPxoFL4p9ZjNUgqgeXpQ2AnmqzpLzgNdkc5Bx9/NWN0Cdt +94DhQNbz4SXWmHo3NLDNLA22N1KATix/Lk9c/YKkWebjSDY5d4Kf89PNCwIsurx5 +GxQNbiq3klUd5T66AroDYqs6ejtTbnIgo5oDy0V0+lwR6liC7/3/9cQNfQsJ/X+z +v0CRuyVXw15acqQ8Bkp+vJb0C81enkr8As1gPh9vFM8hApVdMAxYgGJU7h7m+7bL +CVD1og/craIE+qFoeRZ99knTP43Akgp78RgJgXGQm+RlOq8gM2IiiLNO3mXNhz3Q +PFHx/O1VUX5ul2UEpOEqoPNosoodmuxx85ImYnO5wRVqbI+2O6TvQ5KU3UOO1Ur5 +qevFim7753cBF8Q65sODk1CK1xwbnaoetgbYXsLz+Ou9W9QOC2Hku0WcMt2A5JcY +fwQLA2E1izAdR9QRgfzS +=mrF2 +-----END PGP SIGNATURE----- + +--4Ckj6UjgE2iN1+kY--