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 5B859429E21 for ; Sun, 4 Dec 2011 10:28:06 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 We4UGq2Rfami for ; Sun, 4 Dec 2011 10:28:06 -0800 (PST) Received: from dmz-mailsec-scanner-3.mit.edu (DMZ-MAILSEC-SCANNER-3.MIT.EDU [18.9.25.14]) by olra.theworths.org (Postfix) with ESMTP id D6347429E25 for ; Sun, 4 Dec 2011 10:28:05 -0800 (PST) X-AuditID: 1209190e-b7f4a6d0000008e5-46-4edbbbb5d67d Received: from mailhub-auth-2.mit.edu ( [18.7.62.36]) by dmz-mailsec-scanner-3.mit.edu (Symantec Messaging Gateway) with SMTP id D3.FD.02277.5BBBBDE4; Sun, 4 Dec 2011 13:28:05 -0500 (EST) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id pB4IS43S025938; Sun, 4 Dec 2011 13:28:04 -0500 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id pB4IS2Vn023027 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Sun, 4 Dec 2011 13:28:03 -0500 (EST) Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77) (envelope-from ) id 1RXGov-00064C-EA; Sun, 04 Dec 2011 13:29:49 -0500 Date: Sun, 4 Dec 2011 13:29:49 -0500 From: Austin Clements To: David Bremner Subject: Re: notmuch seg. fault on _thread_add_message Message-ID: <20111204182948.GU16194@mit.edu> References: <20111204173539.GA4411@sophie> <87r50kurv1.fsf@zancas.localnet> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87r50kurv1.fsf@zancas.localnet> User-Agent: Mutt/1.5.21 (2010-09-15) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplleLIzCtJLcpLzFFi42IRYrdT0d26+7afwbN97BY3WrsZLb7NfcBk cf3mTGYHZo+ds+6yezxbdYvZY8uh98wBzFFcNimpOZllqUX6dglcGZ+3hhfM5qhY2DSRtYHx MVsXIyeHhICJxJ/zN5kgbDGJC/fWA8W5OIQE9jFKbNx7hR3CWc8ocfvxHEYI5wSTxNfjz5gh nCWMEo/vdLKD9LMIqEhsuXQFbBabgIbEtv3LGUFsEQFViavbJoPtYxawl5ja1ARWLyxgJrH5 zDOwOK+AjsS8xevAeoUEfCXWfD7MDhEXlDg58wkLRK+WxI1/L4FqOIBsaYnl/zhAwpwCuhJ3 tv5mBbFFgU6YcnIb2wRGoVlIumch6Z6F0L2AkXkVo2xKbpVubmJmTnFqsm5xcmJeXmqRrrFe bmaJXmpK6SZGUKhzSvLtYPx6UOkQowAHoxIPb9aJW35CrIllxZW5hxglOZiURHktdt32E+JL yk+pzEgszogvKs1JLT7EKMHBrCTCm7EYKMebklhZlVqUD5OS5mBREuddvcPBT0ggPbEkNTs1 tSC1CCYrw8GhJMF7cgdQo2BRanpqRVpmTglCmomDE2Q4D9Bwpd0gw4sLEnOLM9Mh8qcYFaXE eRlBEgIgiYzSPLheWCp6xSgO9IowrwJIFQ8wjcF1vwIazAQ0WLHxBsjgkkSElFQDY3hnVtsX NRmudbYN632jd5u2nlRZt2Fvwaq2hhmsvKczGVxXMvkdWhQW51hWbaFhWcHJFbxJsGr9mX/f X3s9PbLc58ma4k9u8aX/drWvmuZebRRRkbW9QPeFsMiEat2dxRIv0oQfydR7Psx7afzSpFMv 3mtqQ0v+Ei7PJycjUsJDFt3bduWkEktxRqKhFnNRcSIAEHfklCADAAA= Cc: notmuch@notmuchmail.org 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, 04 Dec 2011 18:28:06 -0000 Quoth David Bremner on Dec 04 at 2:14 pm: > On Sun, 4 Dec 2011 15:35:39 -0200, Kazuo Teramoto wrote: > > Hi! > > > > Following an alot bug report [1] I created a small python script that > > causes a segmentation fault in notmuch: > > ======================================================================== > > #!/usr/bin/env python2 > > import notmuch > > db = notmuch.Database(mode=notmuch.Database.MODE.READ_WRITE) > > q_new = notmuch.Query(db, 'tag:inbox') > > for t in q_new.search_threads(): > > pass > > ======================================================================== > > As I mentioned previously, I suspect the message below should be fixed; > whether or not it fixes your bug I don't know. I'm not sure where > exactly g_type_init would/should be called in the library; there isn't > currently a global initialization call for libnotmuch. Perhaps there > should be? I believe g_type_init can be safely called multiple times, which means we could call it in notmuch_database_open.