Re: (emacs) Parsing problems replying to encrypted html
[notmuch-archives.git] / f5 / 68d1e74c38f4bfa69bbd470bb2dd474f012361
1 Return-Path: <tomi.ollila@iki.fi>\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 0116A431FD9\r
6         for <notmuch@notmuchmail.org>; Tue, 24 Mar 2015 02:34:04 -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 mgLSyH5o7bcz for <notmuch@notmuchmail.org>;\r
16         Tue, 24 Mar 2015 02:34:01 -0700 (PDT)\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
18         by olra.theworths.org (Postfix) with ESMTP id DF2AA431FD2\r
19         for <notmuch@notmuchmail.org>; Tue, 24 Mar 2015 02:34:00 -0700 (PDT)\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
21         by guru.guru-group.fi (Postfix) with ESMTP id 07F9A100086;\r
22         Tue, 24 Mar 2015 11:33:36 +0200 (EET)\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>\r
24 To: Simon Campese <notmuchmail_org@campese.de>, notmuch@notmuchmail.org\r
25 Subject: Re: [BUG] notmuch crashes on FreeBSD when synchronize_flags=true\r
26 In-Reply-To: <87bnjmi5ff.fsf@maritornes.cs.unb.ca>\r
27 References: <86619utwz5.fsf@tu-dortmund.de>\r
28         <87bnjmi5ff.fsf@maritornes.cs.unb.ca>\r
29 User-Agent: Notmuch/0.19+92~g61c04e8 (http://notmuchmail.org) Emacs/24.3.1\r
30         (x86_64-unknown-linux-gnu)\r
31 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
32         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
33         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
34 Date: Tue, 24 Mar 2015 11:33:35 +0200\r
35 Message-ID: <m2iodqzqmo.fsf@guru.guru-group.fi>\r
36 MIME-Version: 1.0\r
37 Content-Type: text/plain\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.13\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42         <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Tue, 24 Mar 2015 09:34:05 -0000\r
51 \r
52 \r
53 FYI (VirtualBox FreeBSD_10.1-64bit.7z from http://www.osboxes.org/freebsd/)\r
54  \r
55   root@osboxes:~/mail # rm -rf .notmuch/\r
56   root@osboxes:~/mail # notmuch new\r
57   Found 1 total files (that's not much mail).\r
58   Warning: /root/mail/new/new.mail is an mbox containing a single message,\r
59   likely caused by misconfigured mail delivery.  Support for single-message\r
60   mboxes is deprecated and may be removed in the future.\r
61   Abort (core dumped)\r
62 \r
63 Built latest HEAD (bed8b6743) in $HOME/sw/notmuch\r
64 \r
65   root@osboxes:~/mail # rm -rf .notmuch/\r
66   root@osboxes:~/mail # ~/sw/notmuch/notmuch new\r
67   Found 2 total files (that's not much mail).\r
68   Note: Ignoring non-mail file: /root/mail/notmuch.core\r
69   Processed 2 total files in almost no time.\r
70   Added 1 new message to the database.\r
71   root@osboxes:~/mail #\r
72 \r
73 OK, what worked :O (statically linked libnotmuch.4). Wat about shared...\r
74 \r
75   root@osboxes:~/mail # rm -rf .notmuch/ notmuch.core\r
76   root@osboxes:~/mail # env LD_LIBRARY_PATH=$HOME/sw/notmuch/lib $HOME/sw/notmuch/notmuch-shared new\r
77   Found 1 total files (that's not much mail).\r
78   Abort (core dumped)\r
79 \r
80   root@osboxes:~/mail # gdb $HOME/sw/notmuch/notmuch-shared notmuch-shared.core\r
81   GNU gdb 6.1.1 [FreeBSD]\r
82   ...\r
83   Core was generated by `notmuch-shared'.\r
84   Program terminated with signal 6, Aborted.\r
85   Reading symbols from /root/sw/notmuch/lib/libnotmuch.so.4...done.\r
86   ...\r
87   [New Thread 804406400 (LWP 100071/notmuch-shared)]\r
88 (gdb) bt\r
89 #0  0x00000008018d46ca in thr_kill () from /lib/libc.so.7\r
90 #1  0x00000008019a9149 in abort () from /lib/libc.so.7\r
91 #2  0x00000008022e242d in __cxa_rethrow () from /lib/libcxxrt.so.1\r
92 #3  0x0000000801c5d7d6 in Xapian::Document::Internal::remove_term ()\r
93    from /usr/local/lib/libxapian.so.22\r
94 #4  0x00000008008500bc in _notmuch_message_remove_term\r
95   (message=0x804468780, \r
96     prefix_name=0x800858414 "tag", value=<value optimized out>)\r
97     at message.cc:1146\r
98 #5  0x000000080085158f in notmuch_message_remove_tag (message=0x804468780, \r
99     tag=0x800859167 "draft") at message.cc:1205\r
100 #6  0x0000000800851795 in notmuch_message_maildir_flags_to_tags (\r
101     message=<value optimized out>) at message.cc:1312\r
102 #7  0x000000000040d9e5 in add_files (notmuch=0x8044542a0, \r
103     path=0x80445a3b0 "/root/mail/new", state=0x7fffffffe8b0)\r
104     at notmuch-new.c:272\r
105 #8  0x000000000040d448 in add_files (notmuch=0x8044542a0, \r
106     path=0x804459fc0 "/root/mail", state=0x7fffffffe8b0) at\r
107   notmuch-new.c:477\r
108 #9  0x000000000040c85f in notmuch_new_command (config=0x804468160, \r
109     argc=<value optimized out>, argv=<value optimized out>)\r
110     at notmuch-new.c:1070\r
111 #10 0x0000000000408a23 in main (argc=<value optimized out>, \r
112     argv=0x7fffffffeb18) at notmuch.c:353\r
113 \r
114 Due to just quick testing forgot my suggestion for CFLAGS... so...\r
115 \r
116    143 7:27 cd\r
117    144 7:27 cd sw/notmuch\r
118    145 7:27 make distclean\r
119    146 7:28 gmake distclean\r
120    147 7:28 env CFLAGS='-ggdb -O0' ./configure\r
121    148 7:28 make\r
122    149 7:28 gmake\r
123    151 7:29 cd\r
124    152 7:29 cd mail/\r
125    153 7:29 ls\r
126    154 7:29 rm notmuch-shared.core\r
127    155 7:29 env LD_LIBRARY_PATH=$HOME/sw/notmuch/lib $HOME/sw/notmuch/notmuch-shared new\r
128    156 7:29 gdb $HOME/sw/notmuch/notmuch-shared notmuch-shared.core\r
129 \r
130 (gdb) bt\r
131 #0  0x00000008018f26ca in thr_kill () from /lib/libc.so.7\r
132 #1  0x00000008019c7149 in abort () from /lib/libc.so.7\r
133 #2  0x000000080230042d in __cxa_rethrow () from /lib/libcxxrt.so.1\r
134 #3  0x0000000801c7b7d6 in Xapian::Document::Internal::remove_term ()\r
135    from /usr/local/lib/libxapian.so.22\r
136 #4  0x00000008008668b3 in _notmuch_message_remove_term\r
137 (message=0x804468780, \r
138     prefix_name=0x800874151 "tag", value=0x800874e97 "draft") at\r
139     message.cc:1146\r
140 #5  0x0000000800868f76 in notmuch_message_remove_tag (message=0x804468780, \r
141     tag=0x800874e97 "draft") at message.cc:1205\r
142 #6  0x00000008008691d3 in notmuch_message_maildir_flags_to_tags (\r
143     message=0x804468780) at message.cc:1312\r
144 #7  0x0000000000411295 in add_file (notmuch=0x8044542a0, \r
145     filename=0x80445c6e0 "/root/mail/new/new.mail", state=0x7fffffffe8b8)\r
146     at notmuch-new.c:272\r
147 #8  0x00000000004102e2 in add_files (notmuch=0x8044542a0, \r
148     path=0x80445a3b0 "/root/mail/new", state=0x7fffffffe8b8)\r
149     at notmuch-new.c:587\r
150 #9  0x000000000040fdad in add_files (notmuch=0x8044542a0, \r
151     path=0x804459fc0 "/root/mail", state=0x7fffffffe8b8) at\r
152     notmuch-new.c:477\r
153 #10 0x000000000040ee81 in notmuch_new_command (config=0x804468160, argc=1, \r
154     argv=0x7fffffffeb20) at notmuch-new.c:1070\r
155 #11 0x0000000000409277 in main (argc=2, argv=0x7fffffffeb18) at\r
156 notmuch.c:353\r
157 \r
158 Tomi\r
159 \r