From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 770B86DE22B0 for ; Mon, 19 Mar 2018 09:37:03 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[AWL=0.011, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 69OWPOcbq0Fh for ; Mon, 19 Mar 2018 09:36:55 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 8299C6DE22AE for ; Mon, 19 Mar 2018 09:36:55 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1exxmF-0002T1-Un; Mon, 19 Mar 2018 12:36:51 -0400 Received: (nullmailer pid 24492 invoked by uid 1000); Mon, 19 Mar 2018 16:36:49 -0000 From: David Bremner To: Antoine =?utf-8?Q?Beaupr=C3=A9?= , notmuch@notmuchmail.org Subject: Re: bug: "no top level messages" crash on Zen email loops In-Reply-To: <87d10042pu.fsf@curie.anarc.at> References: <87d10042pu.fsf@curie.anarc.at> Date: Mon, 19 Mar 2018 13:36:49 -0300 Message-ID: <87woy8vx7i.fsf@tesseract.cs.unb.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.26 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: Mon, 19 Mar 2018 16:37:03 -0000 Antoine Beaupr=C3=A9 writes: > Hi! > > Here's a fun bug for you Xapian tricksters. > > Two emails attached make notmuch crash when trying to display the > folder. > > $ notmuch show thread:0000000000000001 > Internal error: Thread 0000000000000001 has no toplevel messages. > (notmuch-show.c:1012) > > Those are the two messages: > > $ notmuch search --output messages thread:0000000000000001 > id:9379QM5Z39_5aa86b134fcfb_174033fc97a2cb98c7198d_sprut@zendesk.com > id:9379QM5Z39_5aa86b1350504_174eb3fc97a2cb98c71674_sprut@zendesk.com > > `notmuch show` on either messages crashes the same way: > > $ notmuch show id:9379QM5Z39_5aa86b1350504_174eb3fc97a2cb98c71674_sprut@z= endesk.com > Internal error: Thread 0000000000000001 has no toplevel messages. > (notmuch-show.c:1012) I can't duplicate that part.=20=20 > > Note that displaying the messages weith `--format raw` doesn't crash, so > it's really the thread structure that's broken. Obviously, emacs can't > display the messages either and doesn't touch the unread tags when > trying to load the message, which is to be expected I guess. > > Xapian is also unhappy with the database created by notmuch new: > > $ xapian-check gitlab/.notmuch/xapian/ > docdata: > blocksize=3D8K items=3D1 firstunused=3D1 revision=3D7 levels=3D0 root=3D0 > B-tree checked okay > docdata table structure checked OK > > termlist: > blocksize=3D8K items=3D12 firstunused=3D4 revision=3D7 levels=3D0 root=3D3 > xapian-check: DatabaseError: 1 unused block(s) missing from the free list= , first is 0 Surprisingly (to me), I can duplicate that, so that's something to pursue. d