1 Return-Path: <Vladimir.Marek@Oracle.COM>
\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 D512D431FB6
\r
6 for <notmuch@notmuchmail.org>; Tue, 16 Apr 2013 07:54:00 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-2.299 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_MED=-2.3, UNPARSEABLE_RELAY=0.001]
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id WV8RKWh6DDAy for <notmuch@notmuchmail.org>;
\r
17 Tue, 16 Apr 2013 07:54:00 -0700 (PDT)
\r
18 X-Greylist: delayed 3359 seconds by postgrey-1.32 at olra;
\r
19 Tue, 16 Apr 2013 07:54:00 PDT
\r
20 Received: from userp1050.oracle.com (userp1050.oracle.com [156.151.31.82])
\r
21 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
\r
22 (No client certificate requested)
\r
23 by olra.theworths.org (Postfix) with ESMTPS id 0B8AB431FAF
\r
24 for <notmuch@notmuchmail.org>; Tue, 16 Apr 2013 07:53:59 -0700 (PDT)
\r
25 Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81])
\r
26 by userp1050.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with
\r
27 ESMTP id r3GDw1br025306
\r
28 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
\r
29 for <notmuch@notmuchmail.org>; Tue, 16 Apr 2013 13:58:02 GMT
\r
30 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237])
\r
31 by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with
\r
32 ESMTP id r3GDvxdm032644
\r
33 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
\r
34 for <notmuch@notmuchmail.org>; Tue, 16 Apr 2013 13:58:00 GMT
\r
35 Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230])
\r
36 by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
\r
38 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL)
\r
39 for <notmuch@notmuchmail.org>; Tue, 16 Apr 2013 13:57:59 GMT
\r
40 Received: from abhmt103.oracle.com (abhmt103.oracle.com [141.146.116.55])
\r
41 by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
\r
43 for <notmuch@notmuchmail.org>; Tue, 16 Apr 2013 13:57:58 GMT
\r
44 Received: from pub.cz.oracle.com (/10.163.101.122)
\r
45 by default (Oracle Beehive Gateway v4.0)
\r
46 with ESMTP ; Tue, 16 Apr 2013 06:57:57 -0700
\r
47 Date: Tue, 16 Apr 2013 15:56:00 +0200
\r
48 From: Vladimir Marek <Vladimir.Marek@Oracle.COM>
\r
49 To: notmuch@notmuchmail.org
\r
50 Subject: crash during saving
\r
51 Message-ID: <20130416135600.GA7807@pub.cz.oracle.com>
\r
52 Mail-Followup-To: notmuch@notmuchmail.org
\r
54 Content-Type: text/plain; charset=utf-8
\r
55 Content-Disposition: inline
\r
56 User-Agent: Mutt/1.5.21 (2010-09-15)
\r
57 X-Source-IP: userp1040.oracle.com [156.151.31.81]
\r
58 X-BeenThere: notmuch@notmuchmail.org
\r
59 X-Mailman-Version: 2.1.13
\r
61 List-Id: "Use and development of the notmuch mail system."
\r
62 <notmuch.notmuchmail.org>
\r
63 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
64 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
65 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
66 List-Post: <mailto:notmuch@notmuchmail.org>
\r
67 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
68 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
69 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
70 X-List-Received-Date: Tue, 16 Apr 2013 14:54:01 -0000
\r
74 I just indexed my mail archive by notmuch and I'm starting to play with
\r
75 mutt-kz. The biggest stopper right now is that mutt cores when set
\r
76 already read mail to new (toggle-new in mutt). Once I try to leave the
\r
77 virtual folder (be it to another folder or because of quitting mutt) it
\r
80 I haven't had the time yet to investigate deeper, so I'll just post
\r
81 whatever info I have and hope that it will be something obvious for you
\r
84 It seems that mutt is calling "notmuch_message_maildir_flags_to_tags"
\r
85 which in turn tries to remove flag "draft" which probably is not present
\r
86 and thus raises an exception. Does
\r
87 "notmuch_message_maildir_flags_to_tags" expect the mail to be in certain
\r
88 state (have certain flags set) or it should not crash no matter which
\r
89 flags were and are now set?
\r
91 Now to be fair I have to say that this is on Solaris with handful of
\r
92 patches applied to make notmuch compilable there by Oracle Studio
\r
93 compilers. (I'm working on finalizing the patches to have them suitable
\r
94 for review, which I want to post soon).
\r
102 The stack looks like:
\r
105 [1] _lwp_kill(0x1, 0x6, 0xfeffd028, 0xfe5f2168), at 0xfe5f9265
\r
106 [2] thr_kill(0x1, 0x6, 0xfeffd028, 0xfe5a0fe1), at 0xfe5f218a
\r
107 [3] raise(0x6, 0x0, 0xfeffd084, 0xfe57873d), at 0xfe5a0fed
\r
108 [4] abort(0x0), at 0xfe57875d
\r
109 [5] __Cimpl::default_terminate(0x0), at 0x8705898
\r
110 [6] std::terminate(0x0, 0x89290a8, 0xfeffd0ac, 0x89290a8, 0x0, 0x89290a8), at 0x87055cb
\r
111 [7] __Cimpl::ex_terminate(0x884afac, 0x0), at 0x8705736
\r
112 ---- hidden frames, use 'where -h' to see them all ----
\r
113 =>[10] Xapian::Document::Internal::remove_term(this = 0x8b14cb8, tname = CLASS), line 404 in "omdocument.cc"
\r
114 [11] Xapian::Document::remove_term(this = 0x98e3684, tname = CLASS), line 156 in "omdocument.cc"
\r
115 [12] _notmuch_message_remove_term(message = 0x98e3650, prefix_name = 0x884149b "tag", value = 0x88e9f09 "draft"), line 960 in "message.cc"
\r
116 [13] notmuch_message_remove_tag(message = 0x98e3650, tag = 0x88e9f09 "draft"), line 1019 in "message.cc"
\r
117 [14] notmuch_message_maildir_flags_to_tags(message = 0x98e3650), line 1126 in "message.cc"
\r
118 [15] rename_filename(db = 0x98e26c0, old = 0xfeffd48d "/tank/vm/vmarek/mail/archive/064/cur/1366056222.6981_56079.vi64-x3-2e-prg06:2,S", new = 0xfeffd38e "/tank/vm/vmarek/mail/archive/064/cur/1366056222.6981_56079.vi64-x3-2e-prg06:2,", h = 0x8b1b880), line 1192 in "mutt_notmuch.c"
\r
119 [16] nm_sync(ctx = 0x8ac77f0, index_hint = 0xfeffdb68), line 1277 in "mutt_notmuch.c"
\r
120 [17] sync_mailbox(ctx = 0x8ac77f0, index_hint = 0xfeffdb68), line 822 in "mx.c"
\r
121 [18] mx_close_mailbox(ctx = 0x8ac77f0, index_hint = 0xfeffdb68), line 1020 in "mx.c"
\r
122 [19] mutt_index_menu(), line 954 in "curs_main.c"
\r
123 [20] main(argc = 1, argv = 0xfeffea38), line 1056 in "main.c"
\r
128 (dbx) print -r tname
\r
130 basic_string<char,std::char_traits<char>,std::allocator<char> >::_String_base<char,std::allocator<char> >::_M_start = 0x8b2b900 "Kdraft"
\r
131 basic_string<char,std::char_traits<char>,std::allocator<char> >::_String_base<char,std::allocator<char> >::_M_finish = 0x8b2b906 ""
\r
132 basic_string<char,std::char_traits<char>,std::allocator<char> >::_String_base<char,std::allocator<char> >::_M_end_of_storage = {
\r
133 basic_string<char,std::char_traits<char>,std::allocator<char> >::_String_base<char,std::allocator<char> >::_STLP_alloc_proxy<char*,char,std::allocator<char> >::_M_data = 0x8b2b907 "T^O"
\r
140 404 throw Xapian::InvalidArgumentError("Term `" + tname +
\r
141 405 "' is not present in document, in "
\r
142 406 "Xapian::Document::Internal::remove_term()");
\r
144 408 positions_modified = !i->second.positions.empty();
\r
145 409 terms.erase(i);
\r
149 413 Xapian::Document::Internal::clear_terms()
\r
155 Current function is rename_filename
\r
156 1192 notmuch_message_maildir_flags_to_tags(msg);
\r
158 1192 notmuch_message_maildir_flags_to_tags(msg);
\r
159 1193 update_tags(msg, nm_header_get_tags(h));
\r
165 1199 notmuch_message_destroy(msg);
\r
166 1200 notmuch_database_end_atomic(db);
\r
171 Current function is notmuch_message_maildir_flags_to_tags
\r
172 1126 status = notmuch_message_remove_tag (message, flag2tag[i].tag);
\r
174 (dbx) print filename
\r
175 filename = 0x8b24e10 "/tank/vm/vmarek/mail/archive/064/cur/1366056222.6981_56079.vi64-x3-2e-prg06:2,"
\r
177 (dbx) print *flags
\r
180 (dbx) print *filenames
\r