GNOME Bugzilla – Bug 346097
SIGSEGV when using --gst-plugin-load
Last modified: 2006-07-18 10:40:41 UTC
Steps to reproduce: 1. gst-inspect --load-with-plugin=whatever.so Stack trace: The crash is due to prepare_for_load_plugin_func() not using g_strdup() on its data before adding it to the preload_plugins list. This then causes load_plugin_func() to use freed memory, and then freeing this memory a second time... While looking at this I also noticed another case of duplicate memory freeing in split_and_iterate(). I have attached a patch which fixes both of these problems. Other information:
Created attachment 68115 [details] [review] Fix memory problems in gst.c
Committed, thanks for the patch! 2006-06-28 Tim-Philipp Müller <tim at centricular dot net> Patch by: Peter Kjellerstedt <pkj at axis com> * gst/gst.c: (prepare_for_load_plugin_func), (split_and_iterate): Fix missing g_strdup() and double free when using the --gst-plugin-load command line option (#346097).