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