Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 0BA2A429E29 for ; Thu, 16 Jun 2011 14:54:47 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 1.976 X-Spam-Level: * X-Spam-Status: No, score=1.976 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLYTO=2.775, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0RXfPCojskxH for ; Thu, 16 Jun 2011 14:54:46 -0700 (PDT) Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 538BE431FB6 for ; Thu, 16 Jun 2011 14:54:46 -0700 (PDT) Received: by wwi36 with SMTP id 36so1640151wwi.2 for ; Thu, 16 Jun 2011 14:54:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:date:from:to:subject:message-id:reply-to :mime-version:content-type:content-disposition:user-agent; bh=woZm98IKLUSRpoSDdZhYXqokvk33nLMyViKaZDGPhYE=; b=Js6wlVZtTRa92dx7pIvg420voyFXuhxfC+loOcHb+wHLriAqp19JG3LuAsbom2U681 8aMWgU6NoECcQGa+Yv+R6lCdX4Wl9eqiqfCbQTCt7JjMDEmCX/Fh0AxpeBmlQuFbLVmS 1SNl5JItzRd7Dlk5YL9RU89Yo3iHf3qWYKNjg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:reply-to:mime-version:content-type :content-disposition:user-agent; b=j2o1w9XPtdQM2o1xBsDBlYjd6D/dMj2dlemawc9fNa3JMCfGxgEI7ezA1jr+SidjtS kMsANSaj1Wug9UeHXdxvTqOEUBzNzyFMYXdRgwVoFWmVEQ8GYPzqYaSNCHkq0I+6Qzlk nsm0yMjVZCNx+Ki5gsCHCDgmBiR3GN8qd3ezE= Received: by 10.217.6.79 with SMTP id x57mr1487751wes.10.1308261284926; Thu, 16 Jun 2011 14:54:44 -0700 (PDT) Received: from brick (cpc1-sgyl2-0-0-cust47.sgyl.cable.virginmedia.com [80.192.18.48]) by mx.google.com with ESMTPS id et5sm463084wbb.67.2011.06.16.14.54.42 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 16 Jun 2011 14:54:43 -0700 (PDT) Date: Thu, 16 Jun 2011 22:54:39 +0100 From: Patrick Totzke To: notmuch@notmuchmail.org Subject: [python] segfaults at Message.get_date Message-ID: <20110616215439.GA26997@brick> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mP3DRpeJDSE+ciuQ" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: patricktotzke@gmail.com List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jun 2011 21:54:47 -0000 --mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi all! First off: Thanks Sebastian for your recent work on the python bindings. It all makes a little bit more sense now without the __len__ and all. As some of you might have read on the IRC channel, I'm facing really strange behaviour with Message.get_date() which unfortunately, I cannot reproduce reliably: I get it on one machine, not on the other, despite using the same distribution (ubuntu natty - standard python install), and notmuch and bindings from master on both boxes: Unfortunately, as it segfaults, I don't get a stacktrace here. The line that seems to cause the segfault is this one: https://github.com/pazz/notmuch-gui/blob/master/alot/db.py#L181 To explain the circumstances in my code: I crete these alot.Message objects by recursively calling notmuch.Message.get_replies at line 153 in the same file. The error occurs only at recursion depth 1, so to reproduce one needs to open a thread with at least one reply. Did anyone experience something similar? It would help if someone=20 could try and run my code and report if it works for him/her: git clone https://github.com/pazz/notmuch-gui=20 python alot/init.py # to run directly=20 open a large enough thread by hitting enter Just to be clear: I don't expect anybody to debug my broken code. I think it might help to report segfaults, as it looks like it is=20 a problem with the C-lib or the bindings. Of course, I'd be grateful for any pointers (pun not intended *caught*) or helpful hints to debug this. thanks, /patrick --mP3DRpeJDSE+ciuQ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEUEARECAAYFAk36e58ACgkQlDQDZ9fWxao3CwCdGD/3Q/U1Qf1pgriqRwGFxeF3 tnQAl1JLBTJJEZQ2BXhrmnlIriT5ovg= =n4Ye -----END PGP SIGNATURE----- --mP3DRpeJDSE+ciuQ--