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