GNOME Bugzilla – Bug 752320
g_mem_set_vtable with glib / gobject under MinGW
Last modified: 2015-07-13 11:39:21 UTC
if app links to gobject and glib, it crashes if calling g_mem_set_vtable at start iin main function. The reason is that gobject dll already calls g_malloc inside dllmain startup, so it does not call original free / realloc functions.
Thanks for taking the time to report this. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. In particular, this isn't something limited to MingW, and we're thinking of deprecating the whole memory vtable override because it's impossible to support reliably — see bug 751592. *** This bug has been marked as a duplicate of bug 701694 ***