Re: notmuch segfault
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Fri, 23 Apr 2010 13:26:51 +0000 (15:26 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:49 +0000 (09:36 -0800)
b7/81a216dd789e1b8da8dd83610526560ce40644 [new file with mode: 0644]

diff --git a/b7/81a216dd789e1b8da8dd83610526560ce40644 b/b7/81a216dd789e1b8da8dd83610526560ce40644
new file mode 100644 (file)
index 0000000..cbd3dbd
--- /dev/null
@@ -0,0 +1,85 @@
+Return-Path: <Sebastian@SSpaeth.de>\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 84CF44196F3\r
+       for <notmuch@notmuchmail.org>; Fri, 23 Apr 2010 06:27:02 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.001\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.001 tagged_above=-999 required=5\r
+       tests=[BAYES_20=-0.001] autolearn=ham\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 4A-j0NVxpogQ for <notmuch@notmuchmail.org>;\r
+       Fri, 23 Apr 2010 06:26:57 -0700 (PDT)\r
+Received: from homiemail-a20.g.dreamhost.com (caiajhbdccac.dreamhost.com\r
+       [208.97.132.202])\r
+       by olra.theworths.org (Postfix) with ESMTP id A5FDF4196F2\r
+       for <notmuch@notmuchmail.org>; Fri, 23 Apr 2010 06:26:56 -0700 (PDT)\r
+Received: from sspaeth.de (mtec-hg-docking-1-dhcp-204.ethz.ch\r
+       [129.132.133.204]) (Authenticated sender: sebastian@sspaeth.de)\r
+       by homiemail-a20.g.dreamhost.com (Postfix) with ESMTPA id A81877EC061\r
+       for <notmuch@notmuchmail.org>; Fri, 23 Apr 2010 06:26:54 -0700 (PDT)\r
+Received: by sspaeth.de (sSMTP sendmail emulation);\r
+       Fri, 23 Apr 2010 15:26:51 +0200\r
+From: "Sebastian Spaeth" <Sebastian@SSpaeth.de>\r
+To: Notmuch development list <notmuch@notmuchmail.org>\r
+Subject: Re: notmuch segfault\r
+In-Reply-To: <8739ym4mxk.fsf@SSpaeth.de>\r
+References: <8739ym4mxk.fsf@SSpaeth.de>\r
+Date: Fri, 23 Apr 2010 15:26:51 +0200\r
+Message-ID: <87d3xqti3o.fsf@SSpaeth.de>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\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: Fri, 23 Apr 2010 13:27:03 -0000\r
+\r
+It happened again. Both times I had pressed "G" which calls offlineimap\r
+and which removed messages that the notmuch database still thought are there.\r
+\r
+----------------------------------------------------------------\r
+Program received signal SIGSEGV, Segmentation fault.\r
+0x00007ffff602bb14 in strncasecmp () from /lib/libc.so.6\r
+(gdb) bt\r
+#0  0x00007ffff602bb14 in strncasecmp () from /lib/libc.so.6\r
+#1  0x0000000000418521 in _thread_add_matched_message(_notmuch_thread*, _notmuch_message*, notmuch_sort_t) ()\r
+#2  0x0000000000418b17 in _notmuch_thread_create ()\r
+#3  0x000000000040e33c in notmuch_show_command ()\r
+#4  0x0000000000408436 in main ()\r
+\r
+-------------------------------------------------------------\r
+spaetz@spaetz-macbook:~/src/notmuch$ notmuch show tag:inbox\r
+Error opening /home/spaetz/mail/INBOX.Junk/new/1272025029_0.17175.spaetz-macbook,U=3608,FMD5=22888fa7f8daa670f25d806e9b4ae4df:2,: No such file or directory\r
+Error opening /home/spaetz/mail/INBOX.Junk/new/1272025029_0.17175.spaetz-macbook,U=3608,FMD5=22888fa7f8daa670f25d806e9b4ae4df:2,: No such file or directory\r
+Error opening /home/spaetz/mail/INBOX.Junk/new/1272025029_0.17175.spaetz-macbook,U=3608,FMD5=22888fa7f8daa670f25d806e9b4ae4df:2,: No such file or directory\r
+Segmentation fault (core dumped)\r
+\r
+----------------------------------------------------------\r
+Coredump is here:\r
+http://sspaeth.de/uploads/tmp/core.bin\r
+-------------------------------------------------------------\r
+\r
+\r
+Can it be that in thread.cc in _thread_add_matched_message ()\r
+...\r
+    subject = notmuch_message_get_header (message, "subject");\r
+\r
+    if ((strncasecmp (subject, "Re: ", 4) == 0) ||\r
+...\r
+\r
+If the underlying message disappeared, get_header will return NULL and\r
+we pass strncasecmp NULL as first parameter. Could that be?\r
+\r