Re: [PATCH 9/9] add has: query prefix to search for specific properties
[notmuch-archives.git] / 95 / a652901dbaff38129e69f6deeb2d0b817f27b7
1 Return-Path: <notmuchmail_org@campese.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 9A05F431FAF\r
6         for <notmuch@notmuchmail.org>; Sat, 21 Mar 2015 04:32:15 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 2.438\r
10 X-Spam-Level: **\r
11 X-Spam-Status: No, score=2.438 tagged_above=-999 required=5\r
12         tests=[DNS_FROM_AHBL_RHSBL=2.438] 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 sh1b-Jzufgom for <notmuch@notmuchmail.org>;\r
16         Sat, 21 Mar 2015 04:32:12 -0700 (PDT)\r
17 X-Greylist: delayed 485 seconds by postgrey-1.32 at olra;\r
18         Sat, 21 Mar 2015 04:32:12 PDT\r
19 Received: from mail.worldserver.net (mail.worldserver.net [217.13.200.38])\r
20         (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
21         (No client certificate requested)\r
22         by olra.theworths.org (Postfix) with ESMTPS id 2B58C431FAE\r
23         for <notmuch@notmuchmail.org>; Sat, 21 Mar 2015 04:32:12 -0700 (PDT)\r
24 Received: from mailer.rman (unknown [46.165.219.132])\r
25         (Authenticated sender: mailer@campese.de)\r
26         by mail.worldserver.net (Postfix) with ESMTPSA id B4776300332;\r
27         Sat, 21 Mar 2015 12:23:59 +0100 (CET)\r
28 From: Simon Campese <notmuchmail_org@campese.de>\r
29 To: notmuch@notmuchmail.org\r
30 Cc: \r
31 Subject: [BUG] notmuch crashes on FreeBSD when synchronize_flags=true\r
32 Date: Sat, 21 Mar 2015 12:23:58 +0100\r
33 Message-ID: <86619utwz5.fsf@tu-dortmund.de>\r
34 MIME-Version: 1.0\r
35 Content-Type: text/plain\r
36 X-Mailman-Approved-At: Sat, 21 Mar 2015 05:10:26 -0700\r
37 X-BeenThere: notmuch@notmuchmail.org\r
38 X-Mailman-Version: 2.1.13\r
39 Precedence: list\r
40 List-Id: "Use and development of the notmuch mail system."\r
41         <notmuch.notmuchmail.org>\r
42 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
43         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
45 List-Post: <mailto:notmuch@notmuchmail.org>\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
47 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
49 X-List-Received-Date: Sat, 21 Mar 2015 11:32:15 -0000\r
50 \r
51 Hello,\r
52 \r
53 I'm trying to setup notmuch on my FreeBSD machine (version 10.1). As\r
54 soon as I run 'notmuch new' (without an existing .notmuch directory),\r
55 notmuch crashes with the error message 'abort (core dumped)   notmuch\r
56 new'. An example output is: \r
57 \r
58 --- BEGIN shell-output ---\r
59 \r
60 freebsd-desk% notmuch new\r
61 Found 50363 total files (that's not much mail).\r
62 zsh: abort (core dumped)  notmuch new\r
63 freebsd-desk%\r
64 \r
65 --- END shell-output ---\r
66 \r
67 If I put 'synchronize_flags=false' into my config, 'notmuch new' works fine and\r
68 indexes everything. Here's a backtrace from gdb:\r
69 \r
70 --- BEGIN gdb-session ---\r
71 \r
72 bsd-desk% gdb notmuch\r
73 GNU gdb 6.1.1 [FreeBSD]\r
74 Copyright 2004 Free Software Foundation, Inc.\r
75 GDB is free software, covered by the GNU General Public License, and you are\r
76 welcome to change it and/or distribute copies of it under certain conditions.\r
77 Type "show copying" to see the conditions.\r
78 There is absolutely no warranty for GDB.  Type "show warranty" for details.\r
79 This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)...\r
80 (gdb) run new\r
81 Starting program: /usr/local/bin/notmuch new\r
82 (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[New LWP 101945]\r
83 (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[New Thread 804406400 (LWP 101945/notmuch)]\r
84 (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debuggingFound 50363 total files (that's not much mail).\r
85 Program received signal SIGABRT, Aborted.\r
86 [Switching to Thread 804406400 (LWP 101945/notmuch)]\r
87 0x00000008018d16ca in thr_kill () from /lib/libc.so.7\r
88 (gdb) bt\r
89 #0  0x00000008018d16ca in thr_kill () from /lib/libc.so.7\r
90 #1  0x00000008019a6149 in abort () from /lib/libc.so.7\r
91 #2  0x00000008022df42d in __cxa_rethrow () from /lib/libcxxrt.so.1\r
92 #3  0x0000000801c5a7e6 in Xapian::Document::Internal::remove_term () from /usr/local/lib/libxapian.so.22\r
93 #4  0x000000080084dd1c in notmuch_message_get_replies () from /usr/local/lib/libnotmuch.so.3\r
94 #5  0x000000080084f0cf in notmuch_message_remove_tag () from /usr/local/lib/libnotmuch.so.3\r
95 #6  0x000000080084f2d5 in notmuch_message_maildir_flags_to_tags () from /usr/local/lib/libnotmuch.so.3\r
96 #7  0x000000000040d3e5 in ?? ()\r
97 #8  0x000000000040ce48 in ?? ()\r
98 #9  0x000000000040ce48 in ?? ()\r
99 #10 0x000000000040ce48 in ?? ()\r
100 #11 0x000000000040c26b in ?? ()\r
101 #12 0x000000000040878b in ?? ()\r
102 #13 0x000000000040798f in ?? ()\r
103 #14 0x000000080063b000 in ?? ()\r
104 #15 0x0000000000000000 in ?? ()\r
105 (gdb)\r
106 \r
107 --- END gdb-session ---\r
108 \r
109 The error described above occurs, no matter if I install the notmuch\r
110 package (and its dependencies) via binary packages or build from\r
111 ports. I've tried version 0.18 and version 0.19. Also, it doesn't \r
112 matter if I start with a maildir containing just a single mail, or my\r
113 real maildir with thousands of messages.\r
114 \r
115 On my linux box (running the same verions of notmuch and its\r
116 dependencies), the error doesn't occur, so I guess it has something to\r
117 do with the different C++-Stacks (libcxxrt is FreeBSD's ABI library).\r
118 A quick glance at the notmuch code showed that\r
119 notmuch_message_get_replies() sometimes returns NULL. I'm not a C++\r
120 expert but could it be that this might be the problem here?\r
121 \r
122 To give you some version numbers, this is what's currently installed:\r
123 \r
124 notmuch: 0.19\r
125 xapian-core: 1.2.20\r
126 gmime: 2.6.20\r
127 talloc: 2.1.1\r
128 \r
129 To reproduce the error, you can do the following:\r
130 \r
131 - perform a fresh install of FreeBSD\r
132 - install the package or port, for example: 'pkg install notmuch'\r
133 - create a standard config file containing 'synchronize_flags=true' and\r
134   pointing to some maildir\r
135 - run 'notmuch new' \r
136 \r
137 I would be very thankful for a fix (or hints what might be the problem).  \r
138 \r
139 \r
140 Thanks for your help,\r
141 \r
142 Simon\r