segfault with xapian 1.3.1
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 5 Sep 2013 15:06:45 +0000 (17:06 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:56:58 +0000 (09:56 -0800)
d7/63ab4e6e5444d7e21ff1a155d2436d6b6856c7 [new file with mode: 0644]

diff --git a/d7/63ab4e6e5444d7e21ff1a155d2436d6b6856c7 b/d7/63ab4e6e5444d7e21ff1a155d2436d6b6856c7
new file mode 100644 (file)
index 0000000..c192e6d
--- /dev/null
@@ -0,0 +1,130 @@
+Return-Path: <Jason@zx2c4.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 3C2BC431FDD\r
+       for <notmuch@notmuchmail.org>; Thu,  5 Sep 2013 08:13:35 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.099\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.099 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       HTML_MESSAGE=0.001] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id c6LNpx1a4k7B for <notmuch@notmuchmail.org>;\r
+       Thu,  5 Sep 2013 08:13:29 -0700 (PDT)\r
+X-Greylist: delayed 399 seconds by postgrey-1.32 at olra;\r
+       Thu, 05 Sep 2013 08:13:29 PDT\r
+Received: from frisell.zx2c4.com (frisell.zx2c4.com [192.95.5.64])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 746F4431FDB\r
+       for <notmuch@notmuchmail.org>; Thu,  5 Sep 2013 08:13:29 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=mime-version\r
+       :date:message-id:subject:from:to:content-type; s=mail; bh=lk9bwI\r
+       QHgYYgChgx8Nw4jB/Hmho=; b=SBFvStEVGLyG28B5Yzfy3Wo+MPIaghIGmiUFO+\r
+       6jXFba2PBz8mitNE++5KHyu9931JNGCV5/noRkPpNCL0/RD+WFgH3Wyqamsqcbqb\r
+       TUoNfZWwCF2h9yAZ1XcAdciyrx0xVsoQbrOeUfnU4pk1nVe/qGnVJTpqTOMi0sQH\r
+       7hFfQ=\r
+DomainKey-Signature: a=rsa-sha1; c=nofws; d=zx2c4.com; h=mime-version\r
+       :date:message-id:subject:from:to:content-type; q=dns; s=mail; b=\r
+       Hw7hAoLOQTmn+ulrarYTYBXRlJPsT1N5ukFDE0Tz6JOZo2cRb5dsvDMzLKgCWPbb\r
+       z0k2IW+bqPKNg2AAjncIWNbR9fmyq1b7vtHIVG+A498Ibs87tjwBwKjOkgyLzTf2\r
+       tVidDB/xLFO7xpc5VyX2tAld7X7B7n58sOsnonRqz4U=\r
+Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 8d13a089;\r
+       TLS version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=YES;\r
+       for <notmuch@notmuchmail.org>; Thu, 5 Sep 2013 15:06:40 +0000 (UTC)\r
+Received: by mail-vc0-f171.google.com with SMTP id ij15so1229574vcb.16\r
+       for <notmuch@notmuchmail.org>; Thu, 05 Sep 2013 08:06:45 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=1e100.net; s=20130820;\r
+       h=mime-version:date:message-id:subject:from:to:content-type;\r
+       bh=cCzKLqtB01or51z6O7OD7Y8dr8Y0CChOlPpb2PjsbW4=;\r
+       b=g6JQ6b75vSheltp68Z8jrHgO1rNF0fFr9zYJNf8OlBW06qguP7O10kbg6n3eJczwis\r
+       dD9l21P+vxSHXYhlC4n7sAZyruvjiLVww6KgC+4K1VyiDfuvNM7exjNXrrRyr1pod3Or\r
+       IQF/9va4oSAaSuRffo5dg1ad9LpY+XtmL4mYyjeyACDqET3ZrEk2OOHpsXlIRKBqJcvP\r
+       0DCRPblg1DOI175m8edrhlk/PqcEuoMnb4EPA2Vi+pba0/Q48uHIWZYDPKFvwk39R4TA\r
+       jYdWGK3pWL1VqPH/i5+7esU60vMBFt2Awp0dUhfhDcItwDMP8vc6kpZbNdvICZO3hbVa\r
+       Ncow==\r
+MIME-Version: 1.0\r
+X-Received: by 10.220.199.5 with SMTP id eq5mr2548568vcb.16.1378393605255;\r
+       Thu, 05 Sep 2013 08:06:45 -0700 (PDT)\r
+Received: by 10.52.233.69 with HTTP; Thu, 5 Sep 2013 08:06:45 -0700 (PDT)\r
+Date: Thu, 5 Sep 2013 17:06:45 +0200\r
+Message-ID:\r
+ <CAHmME9q3H2KKBRb_VU4Rr-pc+2qR=uPxiX8YPBFE4N0DaiidAA@mail.gmail.com>\r
+Subject: segfault with xapian 1.3.1\r
+From: "Jason A. Donenfeld" <Jason@zx2c4.com>\r
+To: notmuch ML <notmuch@notmuchmail.org>\r
+Content-Type: multipart/alternative; boundary=047d7b5db26a33be4c04e5a44577\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Thu, 05 Sep 2013 15:13:35 -0000\r
+\r
+--047d7b5db26a33be4c04e5a44577\r
+Content-Type: text/plain; charset=ISO-8859-1\r
+\r
+As discussed on IRC, notmuch segfaults with 1.3.1 but not with 1.2.5 on\r
+notmuch-new:\r
+\r
+Program received signal SIGSEGV, Segmentation fault.\r
+0x00007ffff75a5367 in Xapian::TermIterator::skip_to(std::string const&) ()\r
+from /usr/lib64/libxapian-1.3.so.1\r
+(gdb) bt\r
+#0  0x00007ffff75a5367 in Xapian::TermIterator::skip_to(std::string const&)\r
+() from /usr/lib64/libxapian-1.3.so.1\r
+#1  0x00007ffff7decaa5 in _notmuch_message_get_term(_notmuch_message*,\r
+Xapian::TermIterator&, Xapian::TermIterator&, char const*) () from\r
+/usr/lib64/libnotmuch.so.3\r
+#2  0x00007ffff7ded1fb in\r
+_notmuch_message_ensure_metadata(_notmuch_message*) () from\r
+/usr/lib64/libnotmuch.so.3\r
+#3  0x00007ffff7ded535 in notmuch_message_get_message_id () from\r
+/usr/lib64/libnotmuch.so.3\r
+#4  0x00007ffff7de9c11 in notmuch_database_add_message () from\r
+/usr/lib64/libnotmuch.so.3\r
+#5  0x000000000040c610 in add_files ()\r
+#6  0x000000000040cfbf in notmuch_new_command ()\r
+#7  0x0000000000407a1b in main ()\r
+\r
+This occurs irrespective of the state of the database or the message being\r
+added.\r
+\r
+--047d7b5db26a33be4c04e5a44577\r
+Content-Type: text/html; charset=ISO-8859-1\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+<div dir=3D"ltr">As discussed on IRC, notmuch segfaults with 1.3.1 but not =\r
+with 1.2.5 on notmuch-new:<div><br></div><div><div>Program received signal =\r
+SIGSEGV, Segmentation fault.</div><div>0x00007ffff75a5367 in Xapian::TermIt=\r
+erator::skip_to(std::string const&amp;) () from /usr/lib64/libxapian-1.3.so=\r
+.1</div>\r
+<div>(gdb) bt</div><div>#0 =A00x00007ffff75a5367 in Xapian::TermIterator::s=\r
+kip_to(std::string const&amp;) () from /usr/lib64/libxapian-1.3.so.1</div><=\r
+div>#1 =A00x00007ffff7decaa5 in _notmuch_message_get_term(_notmuch_message*=\r
+, Xapian::TermIterator&amp;, Xapian::TermIterator&amp;, char const*) () fro=\r
+m /usr/lib64/libnotmuch.so.3</div>\r
+<div>#2 =A00x00007ffff7ded1fb in _notmuch_message_ensure_metadata(_notmuch_=\r
+message*) () from /usr/lib64/libnotmuch.so.3</div><div>#3 =A00x00007ffff7de=\r
+d535 in notmuch_message_get_message_id () from /usr/lib64/libnotmuch.so.3</=\r
+div>\r
+<div>#4 =A00x00007ffff7de9c11 in notmuch_database_add_message () from /usr/=\r
+lib64/libnotmuch.so.3</div><div>#5 =A00x000000000040c610 in add_files ()</d=\r
+iv><div>#6 =A00x000000000040cfbf in notmuch_new_command ()</div><div>#7 =A0=\r
+0x0000000000407a1b in main ()</div>\r
+</div><div><br></div><div>This occurs irrespective of the state of the data=\r
+base or the message being added.</div></div>\r
+\r
+--047d7b5db26a33be4c04e5a44577--\r