Re: segfault: g_type_init() missing

Subject: Re: segfault: g_type_init() missing

Date: Sat, 23 Jul 2011 22:51:32 -0700

To: Aaron Ecay, notmuch@notmuchmail.org

Cc:

From: Jameson Graef Rollins


On Sun, 24 Jul 2011 00:32:39 -0400, Aaron Ecay <aaronecay@gmail.com> 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.
part-000.sig (application/pgp-signature)

Thread: