[gstreamer-bugs] [Bug 300736] Plug a bunch of leaks in the registry code

bugzilla-daemon at bugzilla.gnome.org bugzilla-daemon at bugzilla.gnome.org
Fri Apr 15 15:08:41 PDT 2005


Please DO NOT reply to this by email. All additional comments should be made in
the comments box of this bug report.

 http://bugzilla.gnome.org/show_bug.cgi?id=300736
 GStreamer | gstreamer (core) | Ver: 0.8.9





------- Additional Comments From Kjartan Maraas  2005-04-15 18:08 -------
There's something not quite right about that patch. It caused totem to segfault
when opening an mpeg file. Attaching backtraces for the leaks that the patch was
supposed to fix, this time from running totem.

==31516== 5769 bytes in 316 blocks are definitely lost in loss record 181 of 206
==31516==    at 0x3414E222: malloc (vg_replace_malloc.c:130)
==31516==    by 0x34927E4E: xmlStrndup (xmlstring.c:45)
==31516==    by 0x34927EAD: xmlStrdup (xmlstring.c:71)
==31516==    by 0x34928536: xmlStrcat (xmlstring.c:519)
==31516==    by 0x348DF659: xmlNodeListGetString (tree.c:1614)
==31516==    by 0x348E25A8: xmlGetProp (tree.c:6045)
==31516==    by 0x34953B37: xmlTextReaderGetAttribute (xmlreader.c:2237)
==31516==    by 0x34392650: load_plugin (gstlibxmlregistry.c:703)
==31516==    by 0x34392E21: gst_xml_registry_load (gstlibxmlregistry.c:922)
==31516==    by 0x3438905B: gst_registry_load (gstregistry.c:125)
==31516==    by 0x34389B55: _registry_load_func (gstregistrypool.c:110)
==31516==    by 0x34CDC953: g_list_foreach (glist.c:670)
==31516==    by 0x34389B7F: gst_registry_pool_load_all (gstregistrypool.c:125)
==31516==    by 0x3434E7B4: init_post (gst.c:638)
==31516==    by 0x3434ED4C: init_popt_callback (gst.c:807)
==31516==    by 0x34C74464: (within /usr/lib/libpopt.so.0.0.0)
==31516==    by 0x34C74478: (within /usr/lib/libpopt.so.0.0.0)
==31516==    by 0x34C74478: (within /usr/lib/libpopt.so.0.0.0)
==31516==    by 0x34C76219: poptGetNextOpt (in /usr/lib/libpopt.so.0.0.0)
==31516==    by 0x342BA170: gnome_program_parse_args (gnome-program.c:1457)
==31516==    by 0x342BA801: gnome_program_init_common (gnome-program.c:1865)
==31516==    by 0x342BAACC: gnome_program_init (gnome-program.c:1684)
==31516==    by 0x805F1D2: main (totem.c:3344)

and another one:

==31516== 1577 (1453 direct, 124 indirect) bytes in 99 blocks are definitely
lost in loss record 162 of 206
==31516==    at 0x3414E222: malloc (vg_replace_malloc.c:130)
==31516==    by 0x34CE5585: g_malloc (gmem.c:137)
==31516==    by 0x34CF5869: g_strdup (gstrfuncs.c:91)
==31516==    by 0x3439238D: read_string (gstlibxmlregistry.c:590)
==31516==    by 0x34392B0F: load_plugin (gstlibxmlregistry.c:759)
==31516==    by 0x34392E21: gst_xml_registry_load (gstlibxmlregistry.c:922)
==31516==    by 0x3438905B: gst_registry_load (gstregistry.c:125)
==31516==    by 0x34389B55: _registry_load_func (gstregistrypool.c:110)
==31516==    by 0x34CDC953: g_list_foreach (glist.c:670)
==31516==    by 0x34389B7F: gst_registry_pool_load_all (gstregistrypool.c:125)
==31516==    by 0x3434E7B4: init_post (gst.c:638)
==31516==    by 0x3434ED4C: init_popt_callback (gst.c:807)
==31516==    by 0x34C74464: (within /usr/lib/libpopt.so.0.0.0)
==31516==    by 0x34C74478: (within /usr/lib/libpopt.so.0.0.0)
==31516==    by 0x34C74478: (within /usr/lib/libpopt.so.0.0.0)
==31516==    by 0x34C76219: poptGetNextOpt (in /usr/lib/libpopt.so.0.0.0)
==31516==    by 0x342BA170: gnome_program_parse_args (gnome-program.c:1457)
==31516==    by 0x342BA801: gnome_program_init_common (gnome-program.c:1865)
==31516==    by 0x342BAACC: gnome_program_init (gnome-program.c:1684)
==31516==    by 0x805F1D2: main (totem.c:3344)


------- You are receiving this mail because: -------
You are the assignee for the bug.
You are the QA contact for the bug.




More information about the Gstreamer-bugs mailing list