From a06613932d8983e43bd85a18aa80debb3a9d9740 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sun, 20 Apr 2014 20:12:58 +0900 Subject: [PATCH] [Pablo Oliveira] Bug#745303: notmuch new corrupts database throwing 'Xapian::DatabaseCorruptError' --- b1/579f8a3f02cf8fdea61809fad310b29402e1b9 | 222 ++++++++++++++++++++++ 1 file changed, 222 insertions(+) create mode 100644 b1/579f8a3f02cf8fdea61809fad310b29402e1b9 diff --git a/b1/579f8a3f02cf8fdea61809fad310b29402e1b9 b/b1/579f8a3f02cf8fdea61809fad310b29402e1b9 new file mode 100644 index 000000000..d5d7eaadc --- /dev/null +++ b/b1/579f8a3f02cf8fdea61809fad310b29402e1b9 @@ -0,0 +1,222 @@ +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 14DA6431FBD + for ; Sun, 20 Apr 2014 04:13:20 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +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 i0TnvAZXO+EB for ; + Sun, 20 Apr 2014 04:13:16 -0700 (PDT) +Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net + [87.98.215.224]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id D1D11431FBC + for ; Sun, 20 Apr 2014 04:13:15 -0700 (PDT) +Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim + 4.72) (envelope-from ) + id 1WbpgP-0005EB-SQ; Sun, 20 Apr 2014 11:13:13 +0000 +Received: (nullmailer pid 27941 invoked by uid 1000); Sun, 20 Apr 2014 + 11:12:58 -0000 +From: David Bremner +To: notmuch@notmuchmail.org +Subject: [Pablo Oliveira] Bug#745303: notmuch new corrupts database throwing + 'Xapian::DatabaseCorruptError' +User-Agent: Notmuch/0.17+202~gb65f328 (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-pc-linux-gnu) +Date: Sun, 20 Apr 2014 20:12:58 +0900 +Message-ID: <87ioq4uudh.fsf@maritornes.cs.unb.ca> +MIME-Version: 1.0 +Content-Type: message/rfc822 +Content-Disposition: inline +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: Sun, 20 Apr 2014 11:13:20 -0000 + +Return-path: +Envelope-to: david@tethera.net +Delivery-date: Sun, 20 Apr 2014 07:30:17 -0300 +Received: from quantz.debian.org ([206.12.19.122]) + by yantan.tethera.net with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) + (Exim 4.80) + (envelope-from ) + id 1Wbp0q-00021g-Q2 + for david@tethera.net; Sun, 20 Apr 2014 07:30:17 -0300 +Received: from qa by quantz.debian.org with local (Exim 4.80) + (envelope-from ) + id 1Wbp0o-0003Bg-Ij + for david@tethera.net; Sun, 20 Apr 2014 10:30:14 +0000 +Received: from buxtehude.debian.org ([140.211.166.26]) from C=NA,ST=NA, + L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=buxtehude.debian.org, + EMAIL=hostmaster@buxtehude.debian.org (verified) by quantz.debian.org with + esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from + ) id 1Wbp0n-0003B9-Mk for + notmuch@packages.qa.debian.org; Sun, 20 Apr 2014 10:30:13 +0000 +Received: from debbugs by buxtehude.debian.org with local (Exim 4.80) + (envelope-from ) id 1Wbp0l-0001NM-Ou; Sun, + 20 Apr 2014 10:30:11 +0000 +X-Loop: owner@bugs.debian.org +Subject: Bug#745303: notmuch new corrupts database throwing + 'Xapian::DatabaseCorruptError' +Reply-To: Pablo Oliveira , 745303@bugs.debian.org +Resent-From: Pablo Oliveira +Original-Sender: Pablo Oliveira +Resent-To: debian-bugs-dist@lists.debian.org +Resent-CC: Carl Worth +X-Loop: owner@bugs.debian.org +Resent-Date: Sun, 20 Apr 2014 10:30:07 +0000 +Resent-Message-ID: +X-Debian-PR-Message: report 745303 +X-Debian-PR-Package: notmuch +X-Debian-PR-Keywords: +X-Debian-PR-Source: notmuch +Received: via spool by submit@bugs.debian.org id=B.13979896494645 (code B); + Sun, 20 Apr 2014 10:30:07 +0000 +Received: (at submit) by bugs.debian.org; 20 Apr 2014 10:27:29 +0000 +X-Spam-Checker-Version: SpamAssassin 3.3.2-bugs.debian.org_2005_01_02 + (2011-06-06) on buxtehude.debian.org +X-Spam-Level: +X-Spam-Status: No, score=-11.7 required=4.0 tests=BAYES_00,DKIM_SIGNED, + DKIM_VALID,FOURLA,FREEMAIL_FROM,HAS_PACKAGE,RCVD_IN_DNSWL_LOW,SPF_PASS, + XMAILER_REPORTBUG autolearn=ham version=3.3.2-bugs.debian.org_2005_01_02 +X-Spam-Bayes: score:0.0000 Tokens: new, 27; hammy, 151; neutral, 154; + spammy, 0. spammytokens: hammytokens:0.000-+--H*r:TLSv1.2, 0.000-+--H*r:2a01, + 0.000-+--H*M:reportbug, 0.000-+--H*MI:reportbug, 0.000-+--H*r:e35 +Received: from mail-wi0-f180.google.com ([209.85.212.180]) by + buxtehude.debian.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:128) (Exim 4.80) + (envelope-from ) id 1Wboy9-0001CO-AU for + submit@bugs.debian.org; Sun, 20 Apr 2014 10:27:29 +0000 +Received: by mail-wi0-f180.google.com with SMTP id q5so940697wiv.7 for + ; Sun, 20 Apr 2014 03:27:22 -0700 (PDT) +Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; + s=20120113; + h=sender:content-type:mime-version:content-transfer-encoding:from:to + :subject:message-id:date; + bh=Q5LV/RJYYOrWDXBusbipXSlCjmTsFUpEmaxzW6bSI60=; + b=JgK28RCIuQrA+d2KUARhJMgNDd+2rzV8WvsnpjHIEY38Drq0zJMKo2rR4RGCpQJPFK + OsxQ5tn44GqR5AObuYAe824dkjVQrL8jdDOSmRL2ZdHXe8AmBKkjeWc3sZaucH7+uZSH + eM4P9E11Fg/4qvREEANAxuAAqt4bJOryNMU0FhKFQOA5jtQixLZwLsnsDFk/22b8jeKx + xqUvND/qRSSNOnUH4uitTfIfE+Q4O1VvSUD7f0L+O2Sm7nAshtZzar6XxpEpYU1tZfNl + AjSfasaMOiUvghtBvBGFF2nf+GUaSfT73XxCCbfaybdUkND9Jez51qsRqC9JscQhlckT + 3h4w== +X-Received: by 10.194.184.207 with SMTP id ew15mr15146683wjc.31.1397989642284; + Sun, 20 Apr 2014 03:27:22 -0700 (PDT) +Received: from [127.0.1.1] ([2a01:e35:2f37:f6f0:b9b7:3b70:3c2:ed6f]) by + mx.google.com with ESMTPSA id fx6sm9055036wib.4.2014.04.20.03.27.20 for + (version=TLSv1.2 + cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, + 20 Apr 2014 03:27:21 -0700 (PDT) +Sender: Pablo Oliveira +From: Pablo Oliveira +To: Debian Bug Tracking System +Message-ID: <20140420102715.7745.23944.reportbug@ix> +X-Mailer: reportbug 6.5.0 +Date: Sun, 20 Apr 2014 12:27:15 +0200 +Delivered-To: submit@bugs.debian.org +Delivered-To: notmuch@packages.qa.debian.org +Precedence: list +X-Loop: notmuch@packages.qa.debian.org +X-Debian: PTS +X-Debian-Package: notmuch +X-PTS-Package: notmuch +X-PTS-Keyword: bts +List-Unsubscribe: +Resent-Sender: Debian QA +MIME-Version: 1.0 +Content-Type: text/plain + +Package: notmuch +Version: 0.17-5+b1 +Severity: normal + +Dear Maintainer, + +I'm using an offlineimap postsynchook to index my mail with `notmuch new`. +Twice this week, the following error was thrown: + + Hook stderr:terminate called after throwing an instance of 'Xapian::DatabaseCorruptError' + /home/poliveira/bin/index-mail: line 2: 7613 Aborted + notmuch new + +Afterwards, running `notmuch new` produces the following output: + + notmuch new + Welcome to a new version of notmuch! Your database will now be upgraded. + Your notmuch database has now been upgraded to database format version 1. + A Xapian exception occurred adding message: No termlist for document 70352. + Error: A Xapian exception occurred. Halting processing. + Processed 1 file in almost no time. + No new mail. + Note: A fatal error was encountered: A Xapian exception occurred + +Yet notmuch was not recently updated on my system. +All further notmuch commands fail with: + notmuch search tag:spam + terminate called after throwing an instance of 'Xapian::DatabaseCorruptError' + Aborted + +To restore a working system I must dump notmuch tags, reindex all my +mail, and restore the tags. (Which is pretty long, since I keep +a large amount of mails). + +Apart from notmuch, two other clients access the notmuch database: + * emacs-notmuch + * afew (9744c18c) + +Thanks, + +Pablo + +*** Reporter, please consider answering these questions, where appropriate *** + + * What led up to the situation? + * What exactly did you do (or not do) that was effective (or + ineffective)? + * What was the outcome of this action? + * What outcome did you expect instead? + +*** End of the template - remove these template lines *** + + +-- System Information: +Debian Release: jessie/sid + APT prefers testing-updates + APT policy: (500, 'testing-updates'), (500, 'testing') +Architecture: amd64 (x86_64) +Foreign Architectures: i386 + +Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores) +Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) +Shell: /bin/sh linked to /bin/dash + +Versions of packages notmuch depends on: +ii libc6 2.18-4 +ii libglib2.0-0 2.40.0-2 +ii libgmime-2.6-0 2.6.19-3 +ii libnotmuch3 0.17-5+b1 +ii libtalloc2 2.1.0-1 + +Versions of packages notmuch recommends: +ii gnupg-agent 2.0.22-3 +ii notmuch-emacs 0.17-5 + +notmuch suggests no packages. + +-- no debconf information + -- 2.26.2