Re: segfault: g_type_init() missing
authorJameson Graef Rollins <jrollins@finestructure.net>
Sun, 24 Jul 2011 05:51:32 +0000 (22:51 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:39:12 +0000 (09:39 -0800)
15/17d2ebcb4dd3c9c405657058796b67645775e2 [new file with mode: 0644]

diff --git a/15/17d2ebcb4dd3c9c405657058796b67645775e2 b/15/17d2ebcb4dd3c9c405657058796b67645775e2
new file mode 100644 (file)
index 0000000..1428a20
--- /dev/null
@@ -0,0 +1,98 @@
+Return-Path: <jrollins@finestructure.net>\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 95601431FD0\r
+       for <notmuch@notmuchmail.org>; Sat, 23 Jul 2011 22:51:44 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.29\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] 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 baNMo-uW03Mj for <notmuch@notmuchmail.org>;\r
+       Sat, 23 Jul 2011 22:51:44 -0700 (PDT)\r
+Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
+       [131.215.239.19])\r
+       by olra.theworths.org (Postfix) with ESMTP id 0F0E5431FB6\r
+       for <notmuch@notmuchmail.org>; Sat, 23 Jul 2011 22:51:44 -0700 (PDT)\r
+Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+       by earth-doxen-postvirus (Postfix) with ESMTP id 83EF266E01FB;\r
+       Sat, 23 Jul 2011 22:51:43 -0700 (PDT)\r
+X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new\r
+Received: from finestructure.net (cpe-98-149-172-122.socal.res.rr.com\r
+       [98.149.172.122]) (Authenticated sender: jrollins)\r
+       by earth-doxen-submit (Postfix) with ESMTP id 670C766E01E9;\r
+       Sat, 23 Jul 2011 22:51:35 -0700 (PDT)\r
+Received: by finestructure.net (Postfix, from userid 1000)\r
+       id CD9AF7F4; Sat, 23 Jul 2011 22:51:34 -0700 (PDT)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: Aaron Ecay <aaronecay@gmail.com>, notmuch@notmuchmail.org\r
+Subject: Re: segfault: g_type_init() missing\r
+In-Reply-To:\r
+ <CAFcZrT1V-33BgUbrasznk4rAYC-UtiTFu=p=_4=FfUuDWjowLA@mail.gmail.com>\r
+References:\r
+ <CAFcZrT1V-33BgUbrasznk4rAYC-UtiTFu=p=_4=FfUuDWjowLA@mail.gmail.com>\r
+User-Agent: Notmuch/0.5-353-gb44d56e (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Sat, 23 Jul 2011 22:51:32 -0700\r
+Message-ID: <87ipqsfcpn.fsf@servo.factory.finestructure.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha256; protocol="application/pgp-signature"\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: Sun, 24 Jul 2011 05:51:44 -0000\r
+\r
+--=-=-=\r
+\r
+On Sun, 24 Jul 2011 00:32:39 -0400, Aaron Ecay <aaronecay@gmail.com> wrote:\r
+> According to the Glib docs\r
+> (http://developer.gnome.org/gobject/unstable/gobject-Type-Information.html#g-type-init),\r
+> the g_type_init() function must be called before using any GType\r
+> stuff, which notmuch_filter_discard_uuencode_new does.  There are no\r
+> grep hits for g_type_init in the notmuch sources, though.  The code on\r
+> the error path looks pretty old, so I'm not sure why this bug hasn't\r
+> hit someone else before.  Adding a call to g_type_init() to main()\r
+> (right after g_mime_init(0)) fixes the problem.\r
+\r
+Hey, Aaron.  Since you've found a suitable fix, would you mind providing\r
+a patch (from git send-email for instance)?  Simple bug fixes tend to\r
+get applied fairly quickly if well formatted patches are included.\r
+Thanks.\r
+\r
+jamie.\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+\r
+iQIcBAEBCAAGBQJOK7LkAAoJEO00zqvie6q8T/UP/0W5FN/onZ3qsNiXzkkTj1aq\r
+pDXRxiQVbSsMKHcp1VCeMrCv4UjbeFhWH8W+pjsPH63DbFxX/4dAfk61fIgXM+dV\r
+rDz1CNgNRxOdFRrzkMjpCauLNFFv+7KBH8kZxqsqycjkyOGvil8DOSmEsOwIuvH2\r
+y47OLBQ1CKtlWMt3VNdGnlkCOS4JnZlcVZUC9aO5slXwwhWNrEZvTEUyGBYEB5o9\r
+HVXCQJtYtZuewLji51CnO/EPX6yPd+6JqmOWtZvoYl0cOxgVx/c2Kccz847ZMOZk\r
+541CaIhHQplcleUCF95urITO2r8lhNjpCZP7+4/dW5Fc3QL4tf7gRTuMta9V9gj2\r
+vFnI7TO5yhlOKmFHBuuGIdoxojrvOR5QSfjq7q+4FQZuyEVBM8+COOlV4T01mBmL\r
+y8fYbpBVXuK1vIX6oXLhp1eyd/m9ChABrguvhYGYY6tksYYuihe/QPuQRhoVGTTa\r
+IaqbJa1+QOLLih/5PHWwwOUJ0vW7roND4M8DMnvGmXj4x9LR6D9U8zuyuPufKB9t\r
+P+5O8QK6cPwz5uIqoL2YRJg5z+HgV/gPzA5UmH1VZr/c3rZLbPqZQBRhxX9HdeU1\r
+F9FKuBvfBw6SatApj/7LGFxe3GaOWnciwd+/6FuSWvtbZI0Q5DbkpVFOhgcFHs3/\r
+GGA6Hfgha/VP2Br6Z35E\r
+=WG6I\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r