Re: talloc_abort in notmuch_thread_get_tags () when db has been modified
[notmuch-archives.git] / f0 / 410da52a9c75cff950f83a2b4aeb74f5b7655e
1 Return-Path: <mail@profpatsch.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 90F82431FD6\r
6         for <notmuch@notmuchmail.org>; Wed, 13 Feb 2013 10:08:55 -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\r
12         tests=[RCVD_IN_DNSWL_NONE=-0.0001] 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 e17hBtq2ZbOo for <notmuch@notmuchmail.org>;\r
16         Wed, 13 Feb 2013 10:08:54 -0800 (PST)\r
17 Received: from smtprelay04.ispgateway.de (smtprelay04.ispgateway.de\r
18         [80.67.31.27])\r
19         by olra.theworths.org (Postfix) with ESMTP id 30F99431FC9\r
20         for <notmuch@notmuchmail.org>; Wed, 13 Feb 2013 10:08:54 -0800 (PST)\r
21 Received: from [146.52.250.61] (helo=localhost)\r
22         by smtprelay04.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128)\r
23         (Exim 4.68) (envelope-from <mail@profpatsch.de>)\r
24         id 1U5glG-00041W-DR; Wed, 13 Feb 2013 19:08:50 +0100\r
25 Date: Wed, 13 Feb 2013 19:08:51 +0100\r
26 From: Profpatsch <mail@profpatsch.de>\r
27 To: notmuch@notmuchmail.org, zack@upsilon.cc\r
28 Subject: Re: notmuch-mutt: Use of uninitialized value.\r
29 Message-ID: <20130213180851.GA954@soarin>\r
30 Mail-Followup-To: Profpatsch <mail@profpatsch.de>, notmuch@notmuchmail.org,\r
31         zack@upsilon.cc\r
32 References: <20130212005801.GA8419@soarin> <20130212162702.GA29880@upsilon.cc>\r
33         <20130212165531.GA5030@soarin.rz.uni-augsburg.de>\r
34         <20130212202908.GF11148@upsilon.cc> <20130212215105.GA16646@soarin>\r
35         <20130213162604.GA30098@upsilon.cc>\r
36 MIME-Version: 1.0\r
37 Content-Type: multipart/signed; micalg=pgp-sha1;\r
38         protocol="application/pgp-signature"; boundary="oyUTqETQ0mS9luUI"\r
39 Content-Disposition: inline\r
40 In-Reply-To: <20130213162604.GA30098@upsilon.cc>\r
41 User-Agent: Mutt/1.5.21 (2010-09-15)\r
42 X-Df-Sender: bWFpbEBwcm9mcGF0c2NoLmRl\r
43 X-Mailman-Approved-At: Wed, 13 Feb 2013 10:21:10 -0800\r
44 X-BeenThere: notmuch@notmuchmail.org\r
45 X-Mailman-Version: 2.1.13\r
46 Precedence: list\r
47 List-Id: "Use and development of the notmuch mail system."\r
48         <notmuch.notmuchmail.org>\r
49 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
51 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
52 List-Post: <mailto:notmuch@notmuchmail.org>\r
53 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
54 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
56 X-List-Received-Date: Wed, 13 Feb 2013 18:08:55 -0000\r
57 \r
58 \r
59 --oyUTqETQ0mS9luUI\r
60 Content-Type: text/plain; charset=utf-8\r
61 Content-Disposition: inline\r
62 Content-Transfer-Encoding: quoted-printable\r
63 \r
64 On 13-02-13 05:26pm, Stefano Zacchiroli wrote:\r
65 > OK, I understand the problem now. Although I don't understand how it's\r
66 > possible. Can you please do the following test:\r
67 >=20\r
68 > - go on a mail, try <F9> on it to ensure it exhibit the bad behavior\r
69 >   you've reported\r
70 \r
71 It does.\r
72 \r
73 > - find out the Message-Id of that mail, e.g.\r
74 > "20130213095752.GA20009@foobar"\r
75 > - on a shell prompt, try:\r
76 >     notmuch search --output=3Dthreads id:20130213095752.GA20009@foobar\r
77 > - it should give you something like\r
78 >   thread:0000000000018bce\r
79 \r
80 % notmuch search --output=3Dthreads\r
81 id:8e85854f-8b30-4821-bf3e-4c19e576bf67@googlegroups.com\r
82 thread:0000000000000566\r
83 \r
84 % notmuch search thread:0000000000000566\r
85 thread:0000000000000566  Today 04:59 [39/39] [=E2=80=A6]\r
86 \r
87 So it=E2=80=99s not notmuch.\r
88 \r
89 Bear in mind that I use Arch, so this is the version on my system atm:\r
90 https://www.archlinux.org/packages/community/x86_64/notmuch-mutt/\r
91 \r
92 This is the bad guy:\r
93 sub get_message_id() {\r
94     my $mail =3D Mail::Internet->new(\*STDIN);\r
95     $mail->head->get("message-id") =3D~ /^<(.*)>$/;# get message-id #l.124\r
96     return $1;\r
97 }\r
98 \r
99 I=E2=80=99m not much of a perl coder (not at all to be exact), but\r
100     Use of uninitialized value in pattern match (m//) at\r
101     /usr/bin/notmuch-mutt line 124, <STDIN> line 66.\r
102 sounds suspiciously like nothing gets read out of STDIN and $mail is\r
103 definitely not a Mail::Internet object.\r
104 \r
105 ~Profpatsch\r
106 \r
107 --=20\r
108 Proudly written in Mutt with Vim on Archlinux.\r
109 Q: Why is this email five sentences or less?\r
110 A: http://five.sentenc.es\r
111 \r
112 --oyUTqETQ0mS9luUI\r
113 Content-Type: application/pgp-signature\r
114 \r
115 -----BEGIN PGP SIGNATURE-----\r
116 Version: GnuPG v2.0.19 (GNU/Linux)\r
117 \r
118 iQIcBAEBAgAGBQJRG9azAAoJEMXP0IsiJHzfTTsP+QEEQLm4/uhXvurD2M3oKN6A\r
119 wfptBDUrB5aQH25xL/ZR68ql5QQpFLl2m2+14h2ypCj9Qe/XQnU2GxScsfsRVZae\r
120 zl3XlHHzYihwrm2L15ctflPaCNwqyuezTKx17ne2kIE/j4BlGQqXoDMOms6o43nf\r
121 QukuiIwbun0QIWMq6H6UqNiD++uNv7YIhvmzEJM0AJKc/lOIEkv/vtC2IMkWyobW\r
122 jSzzLCrLZaQjfIPkHY+033jpQ0hVk/oRsdMsTx8SGqn319HdO1bz3aFUV5ZZcwKm\r
123 UwUkD7xl/zPcS4nlQ/aDHKOlNWxQaDUaTqlYDiPRnLNK5aopvle6YrkuqD04J2q8\r
124 FKu9JtSjGDVBJo+Wgv9n3T0fzuXYK51BW8yzTa4CKGhdssHILpT5s5GcQVrrNIGA\r
125 pXgmwKPdvKPCOzTdehZQNAmcSOMWUd/EEmD3oEOEjC3TMRltzQe1t/HWhz344Rq4\r
126 NhlTxsatXWLB9uQOrb9P5YwpicAdGXpwaq0Lu+JplUEU9ecB/+gJypVVat8VhLGa\r
127 Rldl6c3ZZ7H9rlG5sovdt+fri05Z0UwAlI/RxdKeU5feEc2XzD2xDuwfWsSSJ3ve\r
128 BMb0pk0CKc1TU/1G2Y1vtrQ7Bh8QBB1jHETxvQCjzIJxGpPOwgGX/dVbo/mSa5kp\r
129 v7kUQ4kuTuVlAlqRAZc7\r
130 =nUiN\r
131 -----END PGP SIGNATURE-----\r
132 \r
133 --oyUTqETQ0mS9luUI--\r