1 Return-Path: <teythoon@jade-hamburg.de>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id E4545431FB6
\r
6 for <notmuch@notmuchmail.org>; Wed, 7 Dec 2011 10:49:45 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id hOAha11ZxG1H for <notmuch@notmuchmail.org>;
\r
16 Wed, 7 Dec 2011 10:49:45 -0800 (PST)
\r
17 Received: from mail.cryptobitch.de (cryptobitch.de [88.198.7.68])
\r
18 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 0AE0A431FD0
\r
21 for <notmuch@notmuchmail.org>; Wed, 7 Dec 2011 10:49:45 -0800 (PST)
\r
22 Received: from mail.jade-hamburg.de (unknown [85.183.11.228])
\r
23 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
\r
24 (No client certificate requested)
\r
25 by mail.cryptobitch.de (Postfix) with ESMTPSA id 4213450EF62
\r
26 for <notmuch@notmuchmail.org>; Wed, 7 Dec 2011 19:49:43 +0100 (CET)
\r
27 Received: by mail.jade-hamburg.de (Postfix, from userid 401)
\r
28 id B0A26DF2A1; Wed, 7 Dec 2011 19:49:42 +0100 (CET)
\r
29 Received: from thinkbox.jade-hamburg.de (unknown [85.183.11.228])
\r
30 (using TLSv1 with cipher AES256-SHA (256/256 bits))
\r
31 (No client certificate requested) (Authenticated sender: teythoon)
\r
32 by mail.jade-hamburg.de (Postfix) with ESMTPSA id 4DDA0DF29F;
\r
33 Wed, 7 Dec 2011 19:49:33 +0100 (CET)
\r
34 Received: from teythoon by thinkbox.jade-hamburg.de with local (Exim 4.77)
\r
35 (envelope-from <teythoon@thinkbox.jade-hamburg.de>)
\r
36 id 1RYMYd-0003wu-Ea; Wed, 07 Dec 2011 19:49:31 +0100
\r
37 Content-Type: multipart/mixed; boundary="===============0072518398448121060=="
\r
39 To: Sebastian Spaeth <Sebastian@SSpaeth.de>, notmuch@notmuchmail.org
\r
40 From: Justus Winter <4winter@informatik.uni-hamburg.de>
\r
41 In-Reply-To: <notmuch-sha1-f155d93e11888b35377531dd556b03fd493b7590>
\r
43 <1318198374-926-1-git-send-email-4winter@informatik.uni-hamburg.de>
\r
44 <1318198374-926-2-git-send-email-4winter@informatik.uni-hamburg.de>
\r
45 <4eddf2b1.4288980a.0b74.5557@mx.google.com> <87fwgx7vmm.fsf@SSpaeth.de>
\r
46 <notmuch-sha1-f155d93e11888b35377531dd556b03fd493b7590>
\r
47 Subject: Re: [PATCH 2/2] python: annotate all calls into libnotmuch with types
\r
48 Date: Wed, 07 Dec 2011 19:49:31 +0100
\r
49 Message-Id: <E1RYMYd-0003wu-Ea@thinkbox.jade-hamburg.de>
\r
50 X-BeenThere: notmuch@notmuchmail.org
\r
51 X-Mailman-Version: 2.1.13
\r
53 List-Id: "Use and development of the notmuch mail system."
\r
54 <notmuch.notmuchmail.org>
\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
56 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
58 List-Post: <mailto:notmuch@notmuchmail.org>
\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
61 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
62 X-List-Received-Date: Wed, 07 Dec 2011 18:49:46 -0000
\r
64 --===============0072518398448121060==
\r
65 Content-Type: text/plain; charset="utf-8"
\r
67 Content-Transfer-Encoding: quoted-printable
\r
69 Quoting Justus Winter (2011-12-06 13:51:08)
\r
70 >Quoting Sebastian Spaeth (2011-12-06 13:05:53)
\r
71 >>On Tue, 06 Dec 2011 10:46:31 +0000, Patrick Totzke <patricktotzke@googlem=
\r
73 >>> This commit breaks raising XapianErrors for me.
\r
76 >>> If I lock the index with some `notmuch tag +test '*'`
\r
77 >>> and try to write to it in alot, i get a segfault and
\r
78 >>> the following on stderr:
\r
81 >>> Xapian exception occurred opening database: Unable to get write lock on
\r
82 >>> /home/pazz/mail/.notmuch/xapian: already locked
\r
85 >>I can confirm that this patch breaks as Totzke has described it:
\r
87 >>http://git.notmuchmail.org/git/notmuch/commitdiff/3434d194026ff65217d9342=
\r
90 >>This change makes python segfault with a Xapianerror on stdout rather
\r
91 >>than the python exception that we were seeing before this patch.
\r
93 >>- _open.restype =3D c_void_p
\r
94 >>+ _open.restype =3D NotmuchDatabaseP
\r
97 >>As the patch obviously fixed other crashers I would like to not revert
\r
98 >>it. Can you have a look and see if you find a cause of that?
\r
100 >Yes, I've seen that one as well and could not figure out what causes
\r
101 >it since I thought that I wasn't changing the semantic of the binding.
\r
103 >I began running alot in gdb since I get segfaults within libnotmuch
\r
104 >from time to time and managed to get a stack trace pointing to
\r
105 >notmuch_database_begin_atomic, but I couldn't figure out what caused
\r
108 #0 0x00007f5f25e30f71 in notmuch_database_begin_atomic () from /home/teyth=
\r
109 oon/.local/lib/libnotmuch.so.2
\r
110 #1 0x00007f5f2605ef70 in ffi_call_unix64 () from /usr/lib/python2.7/lib-dy=
\r
112 #2 0x00007f5f2605e9eb in ffi_call () from /usr/lib/python2.7/lib-dynload/_=
\r
114 #3 0x00007f5f260529c7 in _call_function_pointer (argcount=3D1, resmem=3D0x=
\r
115 7fff57659500, restype=3D<optimized out>, =
\r
117 atypes=3D<optimized out>, avalues=3D0x7fff576594e0, pProc=3D0x7f5f25e30=
\r
118 f70 <notmuch_database_begin_atomic>, =
\r
120 flags=3D4353) at /home/packages/python/2.7/python2.7-2.7.2/Modules/_cty=
\r
123 with stderr saying:
\r
125 A Xapian exception occurred opening database: Unable to get write lock on /=
\r
126 home/teythoon/Maildir/.notmuch/xapian: already locked
\r
130 --===============0072518398448121060==
\r
131 Content-Type: application/octet-stream
\r
133 Content-Transfer-Encoding: base64
\r
134 Content-Disposition: attachment; filename=".signature"
\r
136 bG92ZSB1IGFsb3QgQCxACgo=
\r
138 --===============0072518398448121060==--
\r