Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 84D566DE020B for ; Tue, 12 Jan 2016 05:11:43 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.309 X-Spam-Level: X-Spam-Status: No, score=-0.309 tagged_above=-999 required=5 tests=[AWL=0.242, RP_MATCHES_RCVD=-0.55, 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 heMBEkIxRbtI for ; Tue, 12 Jan 2016 05:11:41 -0800 (PST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 6E52C6DE01D3 for ; Tue, 12 Jan 2016 05:11:41 -0800 (PST) Received: from remotemail by fethera.tethera.net with local (Exim 4.84) (envelope-from ) id 1aIyjQ-0007Md-Hn; Tue, 12 Jan 2016 08:11:28 -0500 Received: (nullmailer pid 13820 invoked by uid 1000); Tue, 12 Jan 2016 13:11:36 -0000 From: David Bremner To: Konrad Hinsen , notmuch@notmuchmail.org Subject: Re: Crash with Python bindings In-Reply-To: <5694CA65.8010400@fastmail.net> References: <5694CA65.8010400@fastmail.net> User-Agent: Notmuch/0.21+26~g9404723 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Date: Tue, 12 Jan 2016 09:11:36 -0400 Message-ID: <87bn8r54dz.fsf@zancas.localnet> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.20 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: Tue, 12 Jan 2016 13:11:43 -0000 Konrad Hinsen writes: > Hi everyone, > > I have been writing quite a few Python scripts for notmuch before > running into a strange bug. Here is a minimal script producing it: > > -------------------------------------------------- > from notmuch import Query, Database > > def foo(bar): > pass > > db = Database() > q = Query(db, "*") > db.close() Do you really call the constructor without a path? Or are you censoring the script for some reason? d