After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 706599 - g_object_new() causes segfault with glib_mem_profiler_table
g_object_new() causes segfault with glib_mem_profiler_table
Status: RESOLVED DUPLICATE of bug 705303
Product: glib
Classification: Platform
Component: general
2.36.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2013-08-22 16:58 UTC by Dmitry Balakshin
Modified: 2013-08-25 16:17 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dmitry Balakshin 2013-08-22 16:58:04 UTC
The following simple program crashes with segfault:

int main(void)
{
    GObject *obj;

    g_mem_set_vtable(glib_mem_profiler_table);

    obj = g_object_new(G_TYPE_OBJECT, NULL);
    g_object_unref(obj);
    g_mem_profile();
    return 0;
}

But if you comment out g_mem_set_vtable(...) line, everything works fine.
Comment 1 Dmitry Balakshin 2013-08-24 12:14:03 UTC
I think it is a duplicate of
    https://bugzilla.gnome.org/show_bug.cgi?id=705303
Comment 2 Matthias Clasen 2013-08-25 16:17:29 UTC

*** This bug has been marked as a duplicate of bug 705303 ***