1 Return-Path: <david@tethera.net>
\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 2BAF7429E2E
\r
6 for <notmuch@notmuchmail.org>; Thu, 5 Sep 2013 17:17:35 -0700 (PDT)
\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 KA6-eqvOA4UA for <notmuch@notmuchmail.org>;
\r
16 Thu, 5 Sep 2013 17:17:29 -0700 (PDT)
\r
17 Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155])
\r
18 (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 9CCCA429E29
\r
21 for <notmuch@notmuchmail.org>; Thu, 5 Sep 2013 17:17:29 -0700 (PDT)
\r
22 Received: from remotemail by yantan.tethera.net with local (Exim 4.80)
\r
23 (envelope-from <david@tethera.net>)
\r
24 id 1VHjjo-0001kb-G1; Thu, 05 Sep 2013 21:17:24 -0300
\r
25 Received: (nullmailer pid 30738 invoked by uid 1000); Fri, 06 Sep 2013
\r
27 From: David Bremner <david@tethera.net>
\r
28 To: "Jason A. Donenfeld" <Jason@zx2c4.com>, notmuch ML
\r
29 <notmuch@notmuchmail.org>
\r
30 Subject: Re: segfault with xapian 1.3.1
\r
32 <CAHmME9q3H2KKBRb_VU4Rr-pc+2qR=uPxiX8YPBFE4N0DaiidAA@mail.gmail.com>
\r
34 <CAHmME9q3H2KKBRb_VU4Rr-pc+2qR=uPxiX8YPBFE4N0DaiidAA@mail.gmail.com>
\r
35 User-Agent: Notmuch/0.16+37~g9701e9c (http://notmuchmail.org) Emacs/24.3.1
\r
36 (x86_64-pc-linux-gnu)
\r
37 Date: Thu, 05 Sep 2013 21:17:20 -0300
\r
38 Message-ID: <87txhypzvz.fsf@zancas.localnet>
\r
40 Content-Type: multipart/mixed; boundary="=-=-="
\r
41 Cc: Olly Betts <olly@survex.com>
\r
42 X-BeenThere: notmuch@notmuchmail.org
\r
43 X-Mailman-Version: 2.1.13
\r
45 List-Id: "Use and development of the notmuch mail system."
\r
46 <notmuch.notmuchmail.org>
\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
48 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
50 List-Post: <mailto:notmuch@notmuchmail.org>
\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
53 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
54 X-List-Received-Date: Fri, 06 Sep 2013 00:17:35 -0000
\r
57 Content-Type: text/plain
\r
59 "Jason A. Donenfeld" <Jason@zx2c4.com> writes:
\r
61 > As discussed on IRC, notmuch segfaults with 1.3.1 but not with 1.2.5 on
\r
64 > Program received signal SIGSEGV, Segmentation fault.
\r
65 > 0x00007ffff75a5367 in Xapian::TermIterator::skip_to(std::string const&) ()
\r
66 > from /usr/lib64/libxapian-1.3.so.1
\r
69 I managed to duplicate this problem on Debian testing by rebuilding
\r
70 Olly's packages (https://launchpad.net/~ojwb/+archive/xapian-1.3) for
\r
71 sid and running the following script in the ./test subdirectory
\r
74 | test_description='"notmuch new" segfault'
\r
84 The backtrace is attached.
\r
88 Content-Type: text/plain
\r
89 Content-Disposition: inline; filename=backtrace.txt
\r
90 Content-Description: backtrace
\r
92 backtrace.sh: Testing "notmuch new" segfault
\r
93 GNU gdb (GDB) 7.6 (Debian 7.6-5)
\r
94 Copyright (C) 2013 Free Software Foundation, Inc.
\r
95 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
\r
96 This is free software: you are free to change and redistribute it.
\r
97 There is NO WARRANTY, to the extent permitted by law. Type "show copying"
\r
98 and "show warranty" for details.
\r
99 This GDB was configured as "x86_64-linux-gnu".
\r
100 For bug reporting instructions, please see:
\r
101 <http://www.gnu.org/software/gdb/bugs/>...
\r
102 Reading symbols from /home/bremner/software/upstream/notmuch/notmuch...done.
\r
103 (gdb) Starting program: /home/bremner/software/upstream/notmuch/notmuch new
\r
104 [Thread debugging using libthread_db enabled]
\r
105 Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
\r
107 Program received signal SIGSEGV, Segmentation fault.
\r
108 0x00007ffff709ba37 in Xapian::TermIterator::skip_to (this=0x7fffffffdc10, term=...)
\r
109 at ../api/termiterator.cc:145
\r
110 (gdb) #0 0x00007ffff709ba37 in Xapian::TermIterator::skip_to (this=0x7fffffffdc10,
\r
111 term=...) at ../api/termiterator.cc:145
\r
113 #1 0x0000000000422959 in _notmuch_message_get_term (message=0x6833e0, i=...,
\r
114 end=..., prefix=0x434644 "XREPLYTO") at lib/message.cc:271
\r
116 value = 0x6810a0 "\001"
\r
117 term = {static npos = <optimized out>,
\r
118 _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x67eaa8 "XFDIRENTRY2:msg-001"}}
\r
119 #2 0x0000000000422d1b in _notmuch_message_ensure_metadata (message=0x6833e0)
\r
120 at lib/message.cc:347
\r
121 i = {internal = 0x0}
\r
122 end = {internal = 0x0}
\r
123 thread_prefix = 0x4346a0 "G"
\r
124 replyto_prefix = 0x434644 "XREPLYTO"
\r
125 __PRETTY_FUNCTION__ = "void _notmuch_message_ensure_metadata(notmuch_message_t*)"
\r
126 tag_prefix = 0x4346a6 "K"
\r
127 id_prefix = 0x4346ae "Q"
\r
128 filename_prefix = 0x434670 "XFDIRENTRY"
\r
129 #3 0x0000000000422f18 in notmuch_message_get_message_id (message=0x6833e0)
\r
130 at lib/message.cc:390
\r
132 #4 0x000000000041f14e in _notmuch_database_link_message (notmuch=0x666240,
\r
133 message=0x6833e0, message_file=0x666140) at lib/database.cc:1676
\r
134 status = NOTMUCH_STATUS_SUCCESS
\r
135 stored_id = {static npos = <optimized out>,
\r
136 _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
\r
137 _M_p = 0x7ffff702c3d8 <std::string::_Rep::_S_empty_rep_storage+24> ""}}
\r
138 message_id = 0x6832c0 "Tmail"
\r
140 metadata_key = 0x67ea80 ""
\r
141 #5 0x000000000041f769 in notmuch_database_add_message (notmuch=0x666240,
\r
142 filename=0x666090 "/home/bremner/software/upstream/notmuch/test/tmp.backtrace/mail/msg-001", message_ret=0x7fffffffdee8) at lib/database.cc:1837
\r
143 message_file = 0x666140
\r
145 private_status = NOTMUCH_PRIVATE_STATUS_NO_DOCUMENT_FOUND
\r
146 from = 0x67ee00 "Notmuch Test Suite <test_suite@notmuchmail.org>"
\r
147 ret = NOTMUCH_STATUS_SUCCESS
\r
148 ret2 = NOTMUCH_STATUS_SUCCESS
\r
149 to = 0x67eec0 "Notmuch Test Suite <test_suite@notmuchmail.org>"
\r
150 message_id = 0x67eaa0 "\001"
\r
152 header = 0x67ef10 "<msg-001@notmuch-test-suite>"
\r
153 subject = 0x6823c0 "Test message #1"
\r
154 #6 0x000000000040e91c in add_files (notmuch=0x666240,
\r
155 path=0x664a80 "/home/bremner/software/upstream/notmuch/test/tmp.backtrace/mail", state=0x7fffffffe1d0) at notmuch-new.c:507
\r
158 next = 0x666090 "/home/bremner/software/upstream/notmuch/test/tmp.backtrace/mail/msg-001"
\r
159 fs_mtime = 1378426382
\r
161 status = NOTMUCH_STATUS_SUCCESS
\r
162 ret = NOTMUCH_STATUS_SUCCESS
\r
164 fs_entries = 0x6811d0
\r
171 stat_time = 1378426382
\r
172 st = {st_dev = 65031, st_ino = 3451162, st_nlink = 3, st_mode = 16877,
\r
173 st_uid = 1000, st_gid = 1000, __pad0 = 0, st_rdev = 0, st_size = 4096,
\r
174 st_blksize = 4096, st_blocks = 8, st_atim = {tv_sec = 1378426382,
\r
175 tv_nsec = 0}, st_mtim = {tv_sec = 1378426382, tv_nsec = 0}, st_ctim = {
\r
176 tv_sec = 1378426382, tv_nsec = 0}, __unused = {0, 0, 0}}
\r
178 tag = 0x7fffffffe480
\r
179 #7 0x000000000040fa12 in notmuch_new_command (config=0x661eb0, argc=1,
\r
180 argv=0x7fffffffe490) at notmuch-new.c:949
\r
182 add_files_state = {output_is_a_tty = 0, verbose = 0, debug = 0,
\r
183 new_tags = 0x665ef0, new_tags_length = 2, new_ignore = 0x665fe0,
\r
184 new_ignore_length = 0, total_files = 1, processed_files = 1,
\r
185 added_messages = 0, removed_messages = 0, renamed_messages = 0,
\r
186 tv_start = {tv_sec = 1378426382, tv_usec = 768704},
\r
187 removed_files = 0x681a10, removed_directories = 0x665d30,
\r
188 directory_mtimes = 0x665c00, synchronize_flags = 1}
\r
189 elapsed = 2.1219957909652723e-314
\r
190 tv_now = {tv_sec = 0, tv_usec = 0}
\r
191 tv_start = {tv_sec = 0, tv_usec = 140737488348288}
\r
193 st = {st_dev = 4294967295, st_ino = 140737353968080,
\r
194 st_nlink = 140737328394192, st_mode = 4160580048, st_uid = 32767,
\r
195 st_gid = 160, __pad0 = 0, st_rdev = 67, st_size = 128, st_blksize = 0,
\r
196 st_blocks = 0, st_atim = {tv_sec = 0, tv_nsec = 0}, st_mtim = {
\r
197 tv_sec = 210453397510, tv_nsec = 472446402651}, st_ctim = {
\r
198 tv_sec = 532575944823, tv_nsec = 0}, __unused = {6546568, 0, 6548008}}
\r
199 db_path = 0x664a80 "/home/bremner/software/upstream/notmuch/test/tmp.backtrace/mail"
\r
200 dot_notmuch_path = 0x0
\r
201 action = {__sigaction_handler = {sa_handler = 0x40db03 <handle_sigint>,
\r
202 sa_sigaction = 0x40db03 <handle_sigint>}, sa_mask = {__val = {
\r
203 0 <repeats 16 times>}}, sa_flags = 268435456, sa_restorer = 0x0}
\r
207 timer_is_active = 0
\r
209 options = {{opt_type = NOTMUCH_OPT_BOOLEAN, output_var = 0x7fffffffe1d4,
\r
210 name = 0x432339 "verbose", arg_id = 118, keywords = 0x0}, {
\r
211 opt_type = NOTMUCH_OPT_BOOLEAN, output_var = 0x7fffffffe1d8,
\r
212 name = 0x432341 "debug", arg_id = 100, keywords = 0x0}, {
\r
213 opt_type = NOTMUCH_OPT_BOOLEAN, output_var = 0x7fffffffe07c,
\r
214 name = 0x432347 "no-hooks", arg_id = 110, keywords = 0x0}, {
\r
215 opt_type = NOTMUCH_OPT_END, output_var = 0x0, name = 0x0, arg_id = 0,
\r
217 #8 0x000000000040a519 in main (argc=2, argv=0x7fffffffe488) at notmuch.c:303
\r
219 talloc_report = 0x42fcfd <__libc_csu_init+93> "H\203\303\001H9\353u\352H\213\\$\bH\213l$\020L\213d$\030L\213l$ L\213t$(L\213|$0H\203\304\070\303\017\037\200"
\r
220 command_name = 0x7fffffffe7d1 "new"
\r
221 command = 0x63ee00 <commands+64>
\r
222 config_file_name = 0x0
\r
228 options = {{opt_type = NOTMUCH_OPT_BOOLEAN, output_var = 0x7fffffffe354,
\r
229 name = 0x4303a7 "help", arg_id = 104, keywords = 0x0}, {
\r
230 opt_type = NOTMUCH_OPT_BOOLEAN, output_var = 0x7fffffffe350,
\r
231 name = 0x430c99 "version", arg_id = 118, keywords = 0x0}, {
\r
232 opt_type = NOTMUCH_OPT_STRING, output_var = 0x7fffffffe358,
\r
233 name = 0x430368 "config", arg_id = 99, keywords = 0x0}, {
\r
234 opt_type = NOTMUCH_OPT_END, output_var = 0x0, name = 0x0, arg_id = 0,
\r
237 A debugging session is active.
\r
239 Inferior 1 [process 30499] will be killed.
\r
241 Quit anyway? (y or n) [answered Y; input not from terminal]
\r
244 Unexpected exit while executing ./backtrace.sh. Exit code 0.
\r