From: David Bremner Date: Fri, 24 Jan 2014 13:17:27 +0000 (+2000) Subject: Re: [PATCH 2/2] python: annotate all calls into libnotmuch with types X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2c1591949a9329bb6aad940c6fd8eb9f20490b7b;p=notmuch-archives.git Re: [PATCH 2/2] python: annotate all calls into libnotmuch with types --- diff --git a/f4/34f20d88193524f904b86e637e95588583f754 b/f4/34f20d88193524f904b86e637e95588583f754 new file mode 100644 index 000000000..c487e79d7 --- /dev/null +++ b/f4/34f20d88193524f904b86e637e95588583f754 @@ -0,0 +1,82 @@ +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 18BA0431FBC + for ; Fri, 24 Jan 2014 05:17:40 -0800 (PST) +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 3DoooMG5zZPQ for ; + Fri, 24 Jan 2014 05:17:32 -0800 (PST) +Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155]) + (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 8AA4B431FB6 + for ; Fri, 24 Jan 2014 05:17:32 -0800 (PST) +Received: from remotemail by yantan.tethera.net with local (Exim 4.80) + (envelope-from ) + id 1W6gdX-0003Zc-Eh; Fri, 24 Jan 2014 09:17:31 -0400 +Received: (nullmailer pid 31661 invoked by uid 1000); Fri, 24 Jan 2014 + 13:17:27 -0000 +From: David Bremner +To: Justus Winter <4winter@informatik.uni-hamburg.de>, notmuch@notmuchmail.org +Subject: Re: [PATCH 2/2] python: annotate all calls into libnotmuch with types +In-Reply-To: +References: + <1318198374-926-1-git-send-email-4winter@informatik.uni-hamburg.de> + <1318198374-926-2-git-send-email-4winter@informatik.uni-hamburg.de> + <4eddf2b1.4288980a.0b74.5557@mx.google.com> <87fwgx7vmm.fsf@SSpaeth.de> + +User-Agent: Notmuch/0.17+35~g3b36898 (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-pc-linux-gnu) +Date: Fri, 24 Jan 2014 09:17:27 -0400 +Message-ID: <87r47xpli0.fsf@zancas.localnet> +MIME-Version: 1.0 +Content-Type: text/plain +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, 24 Jan 2014 13:17:40 -0000 + +Justus Winter <4winter@informatik.uni-hamburg.de> writes: + +> Quoting Justus Winter (2011-12-07 19:49:31) + +> And another one: +[stack trace snipped] +> #69 0x00000000004e10be in PyRun_SimpleFileExFlags (fp=0xb99c10, filename=, closeit=1, flags=0x7fffc13a1f60) at ../Python/pythonrun.c:936 +> #70 0x00000000004f10fd in Py_Main (argc=, argv=) at ../Modules/main.c:599 +> #71 0x00007f72f2cbaead in __libc_start_main (main=, argc=, ubp_av=, init=, fini=, +> rtld_fini=, stack_end=0x7fffc13a2078) at libc-start.c:228 +> #72 0x000000000041f199 in _start () +> (gdb) q +> +> with stderr saying: +> +> terminate called after throwing an instance of 'Xapian::DatabaseModifiedError' +> Aborted (core dumped) +> +> This is an uncought c++ exception, right? If so I think it has to be +> cought somewhere in libnotmuch and turned into the appropriate error +> code (hm, there is only the generic XAPIAN_EXCEPTION, I thought there +> was a way to indicate that the db has been modified?). + +Can you still reproduce this bug? If so, a small test case (python is +fine, but ideally not requiring afew) would be helpful. + +d