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 2E374429E26 for ; Tue, 6 Dec 2011 04:06:20 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 1.184 X-Spam-Level: * X-Spam-Status: No, score=1.184 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=1.274, T_MIME_NO_TEXT=0.01] 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 WAvMfnhjgjEU for ; Tue, 6 Dec 2011 04:06:19 -0800 (PST) Received: from homiemail-a22.g.dreamhost.com (unknown [208.97.132.81]) by olra.theworths.org (Postfix) with ESMTP id A2740431FB6 for ; Tue, 6 Dec 2011 04:06:19 -0800 (PST) Received: from homiemail-a22.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a22.g.dreamhost.com (Postfix) with ESMTP id 12E101A8063; Tue, 6 Dec 2011 04:06:07 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=SSpaeth.de; h=from:to:subject :in-reply-to:references:date:message-id:mime-version: content-type; q=dns; s=sspaeth.de; b=Eys+fajkdkZFT7MtAndILYPPgvI 8XTYsGJHYLIFB5fSjq6LzgZcph4lSrjPQDejEm0cMl0BnMy0aXncrW5UXN8Adv7r oTtIXFoHbtjr4/VtQaYmXEavanGkxJYEgcVWfa3VDsofrhKqBiq5zhz5G86SBdsF J1ZThIoiOmtJT/mA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=SSpaeth.de; h=from:to :subject:in-reply-to:references:date:message-id:mime-version: content-type; s=sspaeth.de; bh=tnjnWGUEfpDN5RLAj7L62FEForc=; b=J h7nuBqq+Akn34YWYAmRyZXjSnMGr37lcB2cc0ZNg8anaNK5dH0qHFiIXpnC3otGz P4WfZZHJTxj2H4LYQKHuMYOpKRtCWciRQhWBnIwBvQ0QSBHmKiV39gXpHWvml1qO MB/oqOnmD3YVWCirQ3N09sHTFJyZDUNLDOlqia2syg= Received: from spaetzbook.sspaeth.de (unknown [176.46.199.176]) (Authenticated sender: fax@sspaeth.de) by homiemail-a22.g.dreamhost.com (Postfix) with ESMTPA id 47C8F1A808B; Tue, 6 Dec 2011 04:06:05 -0800 (PST) Received: by spaetzbook.sspaeth.de (sSMTP sendmail emulation); Tue, 06 Dec 2011 13:05:54 +0100 From: Sebastian Spaeth To: Patrick Totzke , Justus Winter <4winter@informatik.uni-hamburg.de>, notmuch@notmuchmail.org Subject: Re: [PATCH 2/2] python: annotate all calls into libnotmuch with types In-Reply-To: <4eddf2b1.4288980a.0b74.5557@mx.google.com> References: <1318198374-926-1-git-send-email-4winter@informatik.uni-hamburg.de> <1318198374-926-2-git-send-email-4winter@informatik.uni-hamburg.de> <4eddf2b1.4288980a.0b74.5557@mx.google.com> User-Agent: Notmuch/0.10+58~g935365d (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Tue, 06 Dec 2011 13:05:53 +0100 Message-ID: <87fwgx7vmm.fsf@SSpaeth.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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, 06 Dec 2011 12:06:20 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Tue, 06 Dec 2011 10:46:31 +0000, Patrick Totzke wrote: > This commit breaks raising XapianErrors for me. >=20 > If I lock the index with some `notmuch tag +test '*'` > and try to write to it in alot, i get a segfault and > the following on stderr: >=20 > Xapian exception occurred opening database: Unable to get write lock on > /home/pazz/mail/.notmuch/xapian: already locked Hi Justus, I can confirm that this patch breaks as Totzke has described it: http://git.notmuchmail.org/git/notmuch/commitdiff/3434d194026ff65217d9342ff= e511f67fd71e79f This change makes python segfault with a Xapianerror on stdout rather than the python exception that we were seeing before this patch. =2D _open.restype =3D c_void_p + _open.restype =3D NotmuchDatabaseP As the patch obviously fixed other crashers I would like to not revert it. Can you have a look and see if you find a cause of that? Sebastian --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk7eBSIACgkQVYX1jMgnoGLsHQCgjHxfzvtQ6NQclpUJyO6pBkOx XC0An12Bn4vVfYBxSjS+qIlFbHOdV8NS =epRq -----END PGP SIGNATURE----- --=-=-=--