GNOME Bugzilla – Bug 594209
Need to be able to call custom initialization code before g_irepository_dump()
Last modified: 2015-02-07 16:52:58 UTC
while adding gobject-introspection support for the GStreamer CDDA library I noticed that it's impossible add custom code before g_irepository_dump() is called from the autogenerated dump application.
For the case of GStreamer I need to be able to call gst_init() before any other GStreamer function.
Without this the dump application segfaults because it accesses uninitialized stuff.
Just for completeness, the backtrace of the dump application (gst_value_table is initialized by gst_init()):
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff620c2ff in gst_value_deserialize (dest=0x7fffffffc2c8,
src=0x608614 "BYTE_ORDER") at gstvalue.c:3419
3419 len = gst_value_table->len;
(gdb) print gst_value_table
$1 = (GArray *) 0x0
*** This bug has been marked as a duplicate of bug 605778 ***
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]