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 4D90D6DE2983 for ; Wed, 28 Mar 2018 20:40:47 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.657 X-Spam-Level: X-Spam-Status: No, score=-0.657 tagged_above=-999 required=5 tests=[AWL=-0.655, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] 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 jwuksA_E8O1j for ; Wed, 28 Mar 2018 20:40:46 -0700 (PDT) X-Greylist: delayed 1401 seconds by postgrey-1.36 at arlo; Wed, 28 Mar 2018 20:40:46 PDT Received: from thyestes.tartarus.org (thyestes.tartarus.org [5.196.91.86]) by arlo.cworth.org (Postfix) with ESMTPS id 4AF2C6DE2980 for ; Wed, 28 Mar 2018 20:40:46 -0700 (PDT) Received: from olly by thyestes.tartarus.org with local (Exim 4.84_2) (envelope-from ) id 1f1O41-0001mm-8W; Thu, 29 Mar 2018 04:17:21 +0100 Date: Thu, 29 Mar 2018 04:17:21 +0100 From: Olly Betts To: David Bremner Cc: Antoine =?utf-8?Q?Beaupr=C3=A9?= , notmuch@notmuchmail.org, xapian-discuss@lists.xapian.org Subject: Re: bug: "no top level messages" crash on Zen email loops Message-ID: <20180329031721.GA31208@survex.com> Reply-To: Xapian Discussion Mail-Followup-To: David Bremner , Antoine =?utf-8?Q?Beaupr=C3=A9?= , notmuch@notmuchmail.org, xapian-discuss@lists.xapian.org References: <87d10042pu.fsf@curie.anarc.at> <87woy8vx7i.fsf@tesseract.cs.unb.ca> <87a7v42bv9.fsf@curie.anarc.at> <87r2ofx27q.fsf@tesseract.cs.unb.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87r2ofx27q.fsf@tesseract.cs.unb.ca> User-Agent: Mutt/1.5.23 (2014-03-12) 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: Thu, 29 Mar 2018 03:40:47 -0000 On Mon, Mar 19, 2018 at 05:03:21PM -0300, David Bremner wrote: > I can confirm this reproduces both the xapian-check and the notmuch-show > error. Olly agrees that whatever notmuch is doing wrong, it shouldn't > lead to a corrupted database There was a Xapian bug here, which I fixed on master last week and will be fixed in 1.4.6. If changes to a new database which didn't modify the termlist table were committed, then a disk block which had been allocated to be the root block in the termlist table was leaked (not used but not on the freelist of blocks the table can recycle). This was largely harmless, except that it was detected by Database::check() and caused an error. Cheers, Olly