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 C9296431FBC for ; Mon, 11 Jan 2010 08:09:06 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 w6ZKDSjxJW7A for ; Mon, 11 Jan 2010 08:09:06 -0800 (PST) Received: from mail-fx0-f214.google.com (mail-fx0-f214.google.com [209.85.220.214]) by olra.theworths.org (Postfix) with ESMTP id 8ADAC431FAE for ; Mon, 11 Jan 2010 08:09:03 -0800 (PST) Received: by fxm6 with SMTP id 6so8146250fxm.0 for ; Mon, 11 Jan 2010 08:08:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:subject:date :message-id:mime-version:content-type; bh=VQUWGiYemhuHGuQRAncVVVTJXyPrUvaSF+FCR6L0rs4=; b=jqD9vTYNhDW3tkw6cksk9bXYvXDBzIRzNFGoGFB4pJaNkGtBpFLwuDC75Bf0J3ThOL ls5qO6krFxMqVYJJVPczIB84kk4hGklFKZ7GWs9MIjMk07OKlplL5AT8WvsuzI/OdHA7 NaRDLu0R+J3HzE1ykV0zOOYUuD82Nxtm5CdMw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:subject:date:message-id:mime-version:content-type; b=IxUkL7Hp133TYOXZDxP8BVFBGHgnlQ9pPfKw0+DkWFRrzGON6HvLHsjTI07PQgp4Hv A5F+8h317OTaowoVAZpa/78ZERL6wGohgNT7wpoKAHwc16qIrl5SKifTBbM7r8BdGtYq g+v5dawVJOwvSBulZD8W3jkEfa01YawFWoeDE= Received: by 10.223.4.144 with SMTP id 16mr7848506far.36.1263226132856; Mon, 11 Jan 2010 08:08:52 -0800 (PST) Received: from kunyang (vawpc43.ethz.ch [129.132.59.11]) by mx.google.com with ESMTPS id z15sm482172fkz.6.2010.01.11.08.08.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 11 Jan 2010 08:08:51 -0800 (PST) Sender: Jed Brown From: Jed Brown To: notmuch@notmuchmail.org Date: Mon, 11 Jan 2010 17:10:24 +0100 Message-ID: <871vhwei6n.fsf@59A2.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [notmuch] Xapian::DatabaseError on notmuch new upgrade 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: Mon, 11 Jan 2010 16:09:07 -0000 I rebuilt notmuch and got a Xapian exception while notmuch new was upgrading my database. This seemed like a decent time to try the latest Xapian, so I built a copy and the crash remained (and maintainer-mode still optimizes so I built Xapian again so I could get decent debugging). Here is a trace from XAPIAN_PREFER_CHERT=1 notmuch new I got the same error without setting XAPIAN_PREFER_CHERT. It's not clear to me whether this is a usage issue or Xapian problem. The core is 245 MB, I can provide it if someone wants to try debugging. Jed (gdb) bt #0 0x00007fa687d9e035 in raise () from /lib/libc.so.6 #1 0x00007fa687d9f460 in abort () from /lib/libc.so.6 #2 0x00007fa688622925 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6 #3 0x00007fa688620d56 in __cxxabiv1::__terminate(void (*)()) () from /usr/lib/libstdc++.so.6 #4 0x00007fa688620d83 in std::terminate() () from /usr/lib/libstdc++.so.6 #5 0x00007fa688620e7e in __cxa_throw () from /usr/lib/libstdc++.so.6 #6 0x00007fa688a221bc in FlintTable::read_block (this=0x16395c8, n=2569, p=0xe3fd8e0 "") at backends/flint/flint_table.cc:243 #7 0x00007fa688a22bda in FlintTable::block_to_cursor (this=0x16395c8, C_=0xe4074e0, j=0, n=2569) at backends/flint/flint_table.cc:393 #8 0x00007fa688a299fc in FlintTable::next_default (this=0x16395c8, C_=0xe4074e0, j=1) at backends/flint/flint_table.cc:2219 #9 0x00007fa688a29983 in FlintTable::next_default (this=0x16395c8, C_=0xe4074e0, j=0) at backends/flint/flint_table.cc:2214 #10 0x00007fa688a022c5 in FlintTable::next (this=0x16395c8, C_=0xe4074e0, j=0) at backends/flint/flint_table.h:692 #11 0x00007fa688a020d5 in FlintCursor::read_tag (this=0xe43ece0, keep_compressed=false) at backends/flint/flint_cursor.cc:264 #12 0x00007fa688a1a6d8 in FlintPostListTable::get_chunk (this=0x16395c8, tname=..., did=82407, adding=false, from=0x7fff849be358, to=0x7fff849be350) at backends/flint/flint_postlist.cc:946 #13 0x00007fa688a1b5e3 in FlintPostListTable::merge_changes (this=0x16395c8, mod_plists=..., doclens=..., freq_deltas=...) at backends/flint/flint_postlist.cc:1100 #14 0x00007fa688a08d89 in FlintWritableDatabase::flush_postlist_changes (this=0x1639590) at backends/flint/flint_database.cc:1053 #15 0x00007fa688a0bb5f in FlintWritableDatabase::replace_document (this=0x1639590, did=45341, document=...) at backends/flint/flint_database.cc:1425 #16 0x00007fa688975b7d in Xapian::WritableDatabase::replace_document (this=0x16393a0, did=45341, document=...) at api/omdatabase.cc:817 #17 0x0000000000416c6f in _notmuch_message_sync (message=0xe327130) at lib/message.cc:609 #18 0x0000000000410ca5 in notmuch_database_upgrade (notmuch=0x1639460, progress_notify=0x40a890 , closure=0x7fff849bef20) at lib/database.cc:751 #19 0x000000000040ad4a in notmuch_new_command (ctx=0x162b120, argc=0, argv=0x7fff849bf0f8) at notmuch-new.c:746 #20 0x000000000040862e in main (argc=2, argv=0x7fff849bf0e8) at notmuch.c:449 (gdb) f 17 #17 0x0000000000416c6f in _notmuch_message_sync (message=0xe327130) at lib/message.cc:609 609 db->replace_document (message->doc_id, message->doc); Current language: auto The current source language is "auto; currently c++". (gdb) p *message $1 = {notmuch = 0x1639460, doc_id = 45341, frozen = 0, message_id = 0x0, thread_id = 0x0, in_reply_to = 0x0, filename = 0x0, message_file = 0x0, replies = 0xbaea960, flags = 0, doc = {internal = {dest = 0xe3816c0}}}