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 arlo.cworth.org (Postfix) with ESMTP id 6C86B6DE17F7
\r
6 for <notmuch@notmuchmail.org>; Thu, 29 Oct 2015 04:00:37 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org
\r
11 X-Spam-Status: No, score=0.097 tagged_above=-999 required=5 tests=[AWL=0.097]
\r
13 Received: from arlo.cworth.org ([127.0.0.1])
\r
14 by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id VW5nSeXgiDIQ for <notmuch@notmuchmail.org>;
\r
16 Thu, 29 Oct 2015 04:00:35 -0700 (PDT)
\r
17 Received: from gitolite.debian.net (gitolite.debian.net [87.98.215.224])
\r
18 by arlo.cworth.org (Postfix) with ESMTPS id 453676DE1804
\r
19 for <notmuch@notmuchmail.org>; Thu, 29 Oct 2015 04:00:34 -0700 (PDT)
\r
20 Received: from remotemail by gitolite.debian.net with local (Exim 4.80)
\r
21 (envelope-from <david@tethera.net>)
\r
22 id 1ZrkUX-0008IX-Oi; Thu, 29 Oct 2015 10:31:33 +0000
\r
23 Received: (nullmailer pid 6016 invoked by uid 1000); Thu, 29 Oct 2015
\r
25 From: David Bremner <david@tethera.net>
\r
26 To: notmuch@notmuchmail.org
\r
27 Subject: [Frederic Bonnard] Bug#803363: [PATCH] notmuch: workaround for FTBFS
\r
28 User-Agent: Notmuch/0.21~rc3+7~g10e933a (http://notmuchmail.org) Emacs/24.5.1
\r
29 (x86_64-pc-linux-gnu)
\r
30 Date: Thu, 29 Oct 2015 07:31:14 -0300
\r
31 Message-ID: <8737wu6k5p.fsf@zancas.localnet>
\r
33 Content-Type: multipart/mixed; boundary="=-=-="
\r
34 X-BeenThere: notmuch@notmuchmail.org
\r
35 X-Mailman-Version: 2.1.20
\r
37 List-Id: "Use and development of the notmuch mail system."
\r
38 <notmuch.notmuchmail.org>
\r
39 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,
\r
40 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
41 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>
\r
42 List-Post: <mailto:notmuch@notmuchmail.org>
\r
43 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
44 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,
\r
45 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
46 X-List-Received-Date: Thu, 29 Oct 2015 11:00:37 -0000
\r
49 Content-Type: text/plain
\r
52 opinions? Shall I apply this in 0.21?
\r
58 Content-Type: message/rfc822
\r
59 Content-Disposition: inline
\r
60 Content-Transfer-Encoding: 8bit
\r
62 Return-path: <bounces+20151029-bremner=debian.org@packages.qa.debian.org>
\r
63 Envelope-to: david@tethera.net
\r
64 Delivery-date: Thu, 29 Oct 2015 06:33:11 -0300
\r
65 Received: from quantz.debian.org ([5.153.231.28])
\r
66 by yantan.tethera.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128)
\r
68 (envelope-from <bounces+20151029-bremner=debian.org@packages.qa.debian.org>)
\r
70 for david@tethera.net; Thu, 29 Oct 2015 06:33:11 -0300
\r
71 Received: from qa by quantz.debian.org with local (Exim 4.84)
\r
72 (envelope-from <bounces+20151029-bremner=debian.org@packages.qa.debian.org>)
\r
74 for david@tethera.net; Thu, 29 Oct 2015 09:33:08 +0000
\r
75 Received: from buxtehude.debian.org ([140.211.166.26]) from C=NA,ST=NA,
\r
76 L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=buxtehude.debian.org,
\r
77 EMAIL=hostmaster@buxtehude.debian.org (verified) by quantz.debian.org with
\r
78 esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84)
\r
79 (envelope-from <debbugs@buxtehude.debian.org>) id 1Zrja0-0006vG-4N for
\r
80 notmuch@packages.qa.debian.org; Thu, 29 Oct 2015 09:33:08 +0000
\r
81 Received: from debbugs by buxtehude.debian.org with local (Exim 4.84)
\r
82 (envelope-from <debbugs@buxtehude.debian.org>) id 1ZrjZy-0004Xs-6i; Thu,
\r
83 29 Oct 2015 09:33:06 +0000
\r
84 X-Loop: owner@bugs.debian.org
\r
85 Subject: Bug#803363: [PATCH] notmuch: workaround for FTBFS
\r
86 Reply-To: Frederic Bonnard <frederic@fr.ibm.com>, 803363@bugs.debian.org
\r
87 Resent-From: Frederic Bonnard <frederic@fr.ibm.com>
\r
88 Resent-To: debian-bugs-dist@lists.debian.org
\r
89 Resent-CC: Carl Worth <cworth@debian.org>
\r
90 X-Loop: owner@bugs.debian.org
\r
91 Resent-Date: Thu, 29 Oct 2015 09:33:02 +0000
\r
92 Resent-Message-ID: <handler.803363.B.144611105616905@bugs.debian.org>
\r
93 X-Debian-PR-Message: report 803363
\r
94 X-Debian-PR-Package: src:notmuch
\r
95 X-Debian-PR-Keywords: patch
\r
96 X-Debian-PR-Source: notmuch
\r
97 Received: via spool by submit@bugs.debian.org id=B.144611105616905 (code
\r
98 B); Thu, 29 Oct 2015 09:33:02 +0000
\r
99 Received: (at submit) by bugs.debian.org; 29 Oct 2015 09:30:56 +0000
\r
100 X-Spam-Checker-Version: SpamAssassin 3.4.0-bugs.debian.org_2005_01_02
\r
101 (2014-02-07) on buxtehude.debian.org
\r
103 X-Spam-Status: No, score=-3.9 required=4.0 tests=BAYES_00,MURPHY_DRUGS_REL8,
\r
104 RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,RP_MATCHES_RCVD,SPF_PASS autolearn=no
\r
105 autolearn_force=no version=3.4.0-bugs.debian.org_2005_01_02
\r
106 X-Spam-Bayes: score:0.0000 Tokens: new, 34; hammy, 150; neutral, 90;
\r
107 spammy, 0. spammytokens: hammytokens:0.000-+--Usertags, 0.000-+--ppc64el,
\r
108 0.000-+--sourceversion, 0.000-+--source-version, 0.000-+--SourceVersion
\r
109 Received: from e06smtp05.uk.ibm.com ([195.75.94.101]) by
\r
110 buxtehude.debian.org with esmtps (TLS1.0:RSA_CAMELLIA_256_CBC_SHA1:256)
\r
111 (Exim 4.84) (envelope-from <frederic@fr.ibm.com>) id 1ZrjXr-0004OF-Up for
\r
112 submit@bugs.debian.org; Thu, 29 Oct 2015 09:30:56 +0000
\r
113 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP
\r
114 Gateway: Authorized Use Only! Violators will be prosecuted for
\r
115 <submit@bugs.debian.org> from <frederic@fr.ibm.com>; Thu, 29 Oct 2015
\r
117 Received: from d06dlp01.portsmouth.uk.ibm.com (9.149.20.13) by
\r
118 e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway:
\r
119 Authorized Use Only! Violators will be prosecuted; Thu, 29 Oct 2015
\r
121 X-Ibm-Helo: d06dlp01.portsmouth.uk.ibm.com
\r
122 X-Ibm-Mailfrom: frederic@fr.ibm.com
\r
123 X-Ibm-Rcptto: submit@bugs.debian.org
\r
124 Received: from b06cxnps4075.portsmouth.uk.ibm.com
\r
125 (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by
\r
126 d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 11C0017D8069 for
\r
127 <submit@bugs.debian.org>; Thu, 29 Oct 2015 09:30:57 +0000 (GMT)
\r
128 Received: from d06av11.portsmouth.uk.ibm.com
\r
129 (d06av11.portsmouth.uk.ibm.com [9.149.37.252]) by
\r
130 b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id
\r
131 t9T9Uiaf10879262 for <submit@bugs.debian.org>; Thu, 29 Oct 2015 09:30:44
\r
133 Received: from d06av11.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by
\r
134 d06av11.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP
\r
135 id t9T9Uif6012102 for <submit@bugs.debian.org>; Thu, 29 Oct 2015 03:30:44
\r
137 Received: from smtp.lab.toulouse-stg.fr.ibm.com
\r
138 (srv01.lab.toulouse-stg.fr.ibm.com [9.101.4.1]) by
\r
139 d06av11.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id
\r
140 t9T9UiKX012084 for <submit@bugs.debian.org>; Thu, 29 Oct 2015 03:30:44
\r
142 Received: from debian.fdz.fr (kin.test.toulouse-stg.fr.ibm.com
\r
143 [9.101.18.11]) by smtp.lab.toulouse-stg.fr.ibm.com (Postfix) with ESMTP id
\r
144 0B4A422038C for <submit@bugs.debian.org>; Thu, 29 Oct 2015 10:30:44 +0100
\r
146 Received: from localhost (localhost [IPv6:::1]) by debian.fdz.fr (Postfix)
\r
147 with ESMTP id EDEB32AE8C for <submit@bugs.debian.org>; Thu, 29 Oct 2015
\r
148 10:29:59 +0100 (CET)
\r
149 Date: Thu, 29 Oct 2015 10:29:59 +0100
\r
150 Message-ID: <20151029102959.GC32083@kin.test.toulouse-stg.fr.ibm.com>
\r
151 From: Frederic Bonnard <frederic@fr.ibm.com>
\r
152 To: submit@bugs.debian.org
\r
154 Content-Type: text/plain; charset=utf-8
\r
155 Content-Disposition: inline
\r
156 Content-Transfer-Encoding: 8bit
\r
157 X-TM-As-MML: disable
\r
158 X-Content-Scanned: Fidelis XPS MAILER
\r
159 X-Cbid: 15102909-0021-0000-0000-000004A37092
\r
160 Delivered-To: submit@bugs.debian.org
\r
161 Delivered-To: notmuch@packages.qa.debian.org
\r
163 X-Loop: notmuch@packages.qa.debian.org
\r
165 X-Debian-Package: notmuch
\r
166 X-PTS-Package: notmuch
\r
168 List-ID: <notmuch.bts.packages.qa.debian.org>
\r
169 List-Unsubscribe: <mailto:pts@qa.debian.org?body=unsubscribe%20notmuch>
\r
172 Source-Version: 0.21~rc3-3
\r
174 User: debian-powerpc@lists.debian.org
\r
180 on ppc64el, there is a FTBFS on this version since 0.20.2-2 due a test
\r
182 This is due to the fact that the test is using a breakpoint on the function
\r
183 notmuch_database_add_message so that it can force a return code and check
\r
184 the exit code of the binary is the one injected, but for some reason, gdb
\r
185 fails to trap that function : the breakpoint does not interrupt the program.
\r
186 In the early days, this was known because of the ABIv2 that makes a function
\r
187 have a Local Entry Point and a Global Entry Point.
\r
188 And gdb placed a breakpoint on notmuch_database_add_message, on the address
\r
189 off the GEP, and in some case you only get through the LEP, and then
\r
190 the breakpoint is not called.
\r
191 For reference : https://sourceware.org/ml/gdb-patches/2014-01/msg01013.html
\r
192 This should be fixed in gdb now, but it seems there's an issue on that.
\r
193 So the workaround for the moment is to place a 2nd breakpoint on the LEP,
\r
194 which is at the address of notmuch_database_add_message + 8.
\r
195 On other architectures, this won't cause trouble as the first one will be
\r
196 activated and return with the forced exit code will be done.
\r
197 So notmuch is not broken, but there is something wrong with gdb, and
\r
198 in the meantime, I need to check with gdb what's going on.
\r
202 Index: sources-notmuch/0.21~rc3-3/test/T070-insert.sh
\r
203 ===================================================================
\r
204 --- sources-notmuch/0.21~rc3-3/test/T070-insert.sh
\r
205 +++ sources-notmuch/0.21~rc3-3/test/T070-insert.sh
\r
206 @@ -192,8 +192,9 @@
\r
208 cat <<EOF > index-file-$code.gdb
\r
209 set breakpoint pending on
\r
210 break notmuch_database_add_message
\r
211 +break *notmuch_database_add_message+8
\r
213 return NOTMUCH_STATUS_$code
\r