[PATCH] lib: call g_mime_init() from notmuch_database_open()
authorKazuo Teramoto <kaz.rag@gmail.com>
Sat, 31 Dec 2011 04:37:40 +0000 (02:37 +2200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:41:27 +0000 (09:41 -0800)
e5/23435cf1df76c54d5eefa06bc62a85ad9bc86e [new file with mode: 0644]

diff --git a/e5/23435cf1df76c54d5eefa06bc62a85ad9bc86e b/e5/23435cf1df76c54d5eefa06bc62a85ad9bc86e
new file mode 100644 (file)
index 0000000..b58dcbb
--- /dev/null
@@ -0,0 +1,74 @@
+Return-Path: <kaz.rag@gmail.com>\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 A313D431FD0\r
+       for <notmuch@notmuchmail.org>; Fri, 30 Dec 2011 20:37:56 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 tkETmh3hwblz for <notmuch@notmuchmail.org>;\r
+       Fri, 30 Dec 2011 20:37:56 -0800 (PST)\r
+Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com\r
+       [209.85.216.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 1C21E431FB6\r
+       for <notmuch@notmuchmail.org>; Fri, 30 Dec 2011 20:37:56 -0800 (PST)\r
+Received: by qcha6 with SMTP id a6so11114857qch.26\r
+       for <notmuch@notmuchmail.org>; Fri, 30 Dec 2011 20:37:55 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+       h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
+       bh=x4oSS2KqqqjwIk2JG3uqvZ0tg+QIpANEQnAYeiFzNWo=;\r
+       b=r1aPkFRK95waQRRoNGSjRWS2+t1QV2ZhCughuFuyI94PKodeBD9vwMykkKHV40Cx0t\r
+       lPf7UlIkmBjwdwjWSb4cTcaLfyeOez8eeRhnfgVlUR/kipgI70/PKCW19J62Cckd2TDb\r
+       upjsYoDEVlSJ0sDIxkHjlEyL2ZFKA3ult/nDk=\r
+Received: by 10.229.78.143 with SMTP id l15mr15372170qck.84.1325306275321;\r
+       Fri, 30 Dec 2011 20:37:55 -0800 (PST)\r
+Received: from localhost.localdomain (201-1-35-143.dsl.telesp.net.br.\r
+       [201.1.35.143])\r
+       by mx.google.com with ESMTPS id r10sm76863833qaz.7.2011.12.30.20.37.53\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Fri, 30 Dec 2011 20:37:54 -0800 (PST)\r
+From: Kazuo Teramoto <kaz.rag@gmail.com>\r
+To: david@tethera.net,\r
+       notmuch@notmuchmail.org\r
+Subject: [PATCH] lib: call g_mime_init() from notmuch_database_open()\r
+Date: Sat, 31 Dec 2011 02:37:40 -0200\r
+Message-Id: <1325306261-21444-1-git-send-email-kaz.rag@gmail.com>\r
+X-Mailer: git-send-email 1.7.8.1\r
+In-Reply-To: <87hb0h5tps.fsf@zancas.localnet>\r
+References: <87hb0h5tps.fsf@zancas.localnet>\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 04:37:56 -0000\r
+\r
+I'm resending the PATCH 2/2 as a standalone, leaving the matter of\r
+removing the checks for the future. I added a more detailed commit too.\r
+\r
+This is the only patch needed to fix the segfault I reported.\r
+\r
+Kazuo Teramoto (1):\r
+  lib: call g_mime_init() from notmuch_database_open()\r
+\r
+ lib/database.cc |    9 +++++++++\r
+ 1 files changed, 9 insertions(+), 0 deletions(-)\r
+\r
+-- \r
+1.7.8.1\r
+\r