Re: [PATCH 2/2] lib: call g_mime_init from notmuch_database_open
authorDavid Bremner <david@tethera.net>
Sat, 31 Dec 2011 03:02:39 +0000 (23:02 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:41:27 +0000 (09:41 -0800)
66/ee5c3235e160249eed592f955facc8f09bd256 [new file with mode: 0644]

diff --git a/66/ee5c3235e160249eed592f955facc8f09bd256 b/66/ee5c3235e160249eed592f955facc8f09bd256
new file mode 100644 (file)
index 0000000..d356a82
--- /dev/null
@@ -0,0 +1,69 @@
+Return-Path: <bremner@unb.ca>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 3A9F1431FD0\r
+       for <notmuch@notmuchmail.org>; Fri, 30 Dec 2011 19:02:43 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.3\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 1eJSax1AN+ur for <notmuch@notmuchmail.org>;\r
+       Fri, 30 Dec 2011 19:02:42 -0800 (PST)\r
+Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 863C9431FB6\r
+       for <notmuch@notmuchmail.org>; Fri, 30 Dec 2011 19:02:42 -0800 (PST)\r
+Received: from zancas.localnet\r
+       (fctnnbsc36w-156034079193.pppoe-dynamic.High-Speed.nb.bellaliant.net\r
+       [156.34.79.193]) (authenticated bits=0)\r
+       by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id pBV32eD3027501\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
+       Fri, 30 Dec 2011 23:02:40 -0400\r
+Received: from bremner by zancas.localnet with local (Exim 4.77)\r
+       (envelope-from <bremner@unb.ca>)\r
+       id 1RgpDT-0005ES-RD; Fri, 30 Dec 2011 23:02:39 -0400\r
+From: David Bremner <david@tethera.net>\r
+To: Kazuo Teramoto <kaz.rag@gmail.com>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 2/2] lib: call g_mime_init from notmuch_database_open\r
+In-Reply-To: <1325282290-29565-3-git-send-email-kaz.rag@gmail.com>\r
+References: <877h1e6r9d.fsf@zancas.localnet>\r
+       <1325282290-29565-1-git-send-email-kaz.rag@gmail.com>\r
+       <1325282290-29565-3-git-send-email-kaz.rag@gmail.com>\r
+User-Agent: Notmuch/0.11~rc1+5~g8d34eca (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Fri, 30 Dec 2011 23:02:39 -0400\r
+Message-ID: <87hb0h5tps.fsf@zancas.localnet>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 31 Dec 2011 03:02:43 -0000\r
+\r
+On Fri, 30 Dec 2011 19:58:10 -0200, Kazuo Teramoto <kaz.rag@gmail.com> wrote:\r
+> We need to call g_mime_init to correct initialize the structures needed\r
+> by gmime before using it.\r
+> ---\r
+>  lib/database.cc |    5 +++++\r
+>  1 files changed, 5 insertions(+), 0 deletions(-)\r
+\r
+I can confirm this patch (alone) fixes the segfault for me. and doesn't\r
+cause in test failures when applied against the release branch.  I'm\r
+considering pushing it into the 0.11 release. Any comments on that?\r
+\r
+d\r