Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / d7 / 5402c749d8db688f7f52068c52a606348de68d
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 DCD1D431FB6\r
6         for <notmuch@notmuchmail.org>; Sat, 18 Feb 2012 15:57:15 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\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 h1HJLJTDZv+r for <notmuch@notmuchmail.org>;\r
16         Sat, 18 Feb 2012 15:57:15 -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 D46A2431FAE\r
21         for <notmuch@notmuchmail.org>; Sat, 18 Feb 2012 15:57:14 -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 D4C6652EF7F\r
26         for <notmuch@notmuchmail.org>; Sun, 19 Feb 2012 00:57:12 +0100 (CET)\r
27 Received: by mail.jade-hamburg.de (Postfix, from userid 401)\r
28         id 0D917DF2A4; Sun, 19 Feb 2012 00:57:12 +0100 (CET)\r
29 Received: from thinkbox.jade-hamburg.de\r
30         (dslb-092-078-042-203.pools.arcor-ip.net [92.78.42.203])\r
31         (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
32         (No client certificate requested) (Authenticated sender: teythoon)\r
33         by mail.jade-hamburg.de (Postfix) with ESMTPSA id B0606DF2A0\r
34         for <notmuch@notmuchmail.org>; Sun, 19 Feb 2012 00:57:06 +0100 (CET)\r
35 Received: from teythoon by thinkbox.jade-hamburg.de with local (Exim 4.77)\r
36         (envelope-from <teythoon@thinkbox.jade-hamburg.de>)\r
37         id 1Ryu9I-0002GO-St\r
38         for notmuch@notmuchmail.org; Sun, 19 Feb 2012 00:57:04 +0100\r
39 From: Justus Winter <4winter@informatik.uni-hamburg.de>\r
40 To: notmuch@notmuchmail.org\r
41 Subject: Prevent segmentation fault in notmuch_database_close\r
42 Date: Sun, 19 Feb 2012 00:56:56 +0100\r
43 Message-Id:\r
44  <1329609417-8391-1-git-send-email-4winter@informatik.uni-hamburg.de>\r
45 X-Mailer: git-send-email 1.7.9\r
46 X-BeenThere: notmuch@notmuchmail.org\r
47 X-Mailman-Version: 2.1.13\r
48 Precedence: list\r
49 List-Id: "Use and development of the notmuch mail system."\r
50         <notmuch.notmuchmail.org>\r
51 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
53 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
54 List-Post: <mailto:notmuch@notmuchmail.org>\r
55 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
56 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
58 X-List-Received-Date: Sat, 18 Feb 2012 23:57:16 -0000\r
59 \r
60 I've seen some segmentation faults lately again and rechecked the\r
61 python bindings and while I actually found and fixed some error\r
62 handling issues I overlooked last time, I think I also found a bug in\r
63 notmuch_database_close.\r
64 \r
65 The problem can easily be reproduced with the following program:\r
66 \r
67 ~~~ snip ~~~\r
68 import os\r
69 import time\r
70 import notmuch\r
71 \r
72 db_path = os.path.expanduser('~/Maildir')\r
73 \r
74 os.fork()\r
75 with notmuch.Database(db_path, mode=notmuch.Database.MODE.READ_WRITE) as db:\r
76     time.sleep(5)\r
77 ~~~ snap ~~~\r
78 \r
79 The top of the resulting stack trace is\r
80 \r
81 ~~~ snip ~~~\r
82 #0  0x00007fa2b6ac8104 in Xapian::WritableDatabase::commit() ()\r
83    from /usr/lib/libxapian.so.22\r
84 #1  0x00007fa2b7839de8 in Xapian::WritableDatabase::flush (this=0x0)\r
85     at /usr/include/xapian/database.h:579\r
86 #2  0x00007fa2b78367aa in notmuch_database_close (notmuch=0x121ea70)\r
87     at lib/database.cc:722\r
88 #3  0x00007fa2b7836749 in notmuch_database_open (path=\r
89     0x7fa2b948ac94 "/home/teythoon/Maildir",\r
90     mode=NOTMUCH_DATABASE_MODE_READ_WRITE) at lib/database.cc:705\r
91 ~~~ snap ~~~\r
92 \r
93 Cheers,\r
94 Justus\r
95 \r