<div dir="ltr"><div>GLib's memory profiling seems incompatible with GStreamer. The snippet:</div><div><br></div><div>extern GMemVTable *glib_mem_profiler_table;</div><div><br></div><div>gint main (gint argn, gchar** args) {</div><div>    GError *e;</div><div>    g_mem_set_vtable (glib_mem_profiler_table);</div><div>    if (g_mem_is_system_malloc ())</div><div>        g_print ("system malloc is used\n");</div><div>    else</div><div>        g_print ("NOT system malloc is used\n");</div><div>    g_print ("********************* point 1\n");</div><div>    if (!gst_init_check (&argn, &args, &e)) { </div><div>        g_print ("failed gst_init_check: %s\n", e->message);</div><div>    }</div><div>    g_print ("********************* point 2\n");</div><div>    </div><div>    g_mem_profile ();</div><div><br></div><div>    ...</div><div><br></div><div>crashes at gst_init producing:</div><div><br></div><div><div>fl@nuc5:~/bin$ ./mp-v01.020 </div><div>NOT system malloc is used</div><div>********************* point 1</div><div><br></div><div>(mp-v01.020:15561): GLib-WARNING **: free(0x1b32fd0): memory has been freed 12297829382473034410 times already</div><div>*** Error in `./mp-v01.020': realloc(): invalid pointer: 0x0000000001b35e80 ***</div><div>Aborted (core dumped)</div></div><div><br></div><div>(it does not happen if I don't call gst_init; although I need to call it at some point...)</div><div><br></div><div>Any recipes? I use lots of GLib's memory de/allocations...</div><div>Thanks!</div></div>