segfault: g_type_init() missing
Jameson Graef Rollins
jrollins at finestructure.net
Sat Jul 23 22:51:32 PDT 2011
On Sun, 24 Jul 2011 00:32:39 -0400, Aaron Ecay <aaronecay at 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20110723/71a763e3/attachment.pgp>
More information about the notmuch
mailing list