GNOME Bugzilla – Bug 378184
g-s-p crash due to incorrect free from do_toggle_element
Last modified: 2007-04-15 03:01:59 UTC
That bug has been opened on https://launchpad.net/distros/ubuntu/+source/control-center/+bug/72096 "I was trying to get my mic to work and it crashed http://librarian.launchpad.net/5088761/_usr_bin_gnome-sound-properties.1000.crash just crashed Package: gnome-control-center 1:2.16.1-0ubuntu4"
Debug backtrace:
+ Trace 88551
Created attachment 78117 [details] [review] gconfaudiosrc: remove gconf notify when source is freed Does this fix it?
The crash looks like like something that happened once to that user and not easy to trigger, if you think that the patch is correct feel free to mark the bug as fixed
Ah, I thought maybe you could reproduce it. I think this fixes it, I can't see anything wrong with the g_free stuff (it's not really thread-safe, but this shouldn't be an issue here since the gconf notify is always called from the same thread as the app here). 2006-12-11 Tim-Philipp Müller <tim at centricular dot net> * ext/gconf/gstgconfaudiosrc.c: (gst_gconf_audio_src_init), (gst_gconf_audio_src_dispose), (do_toggle_element): * ext/gconf/gstgconfaudiosrc.h: Remove gconf notify hook when the gconfaudiosrc element is destroyed, otherwise the callback may be called on an already-destroyed instance and bad things happen. Should fix #378184. Also ignore gconf key changes when the source is already running.
*** Bug 362021 has been marked as a duplicate of this bug. ***
*** Bug 409848 has been marked as a duplicate of this bug. ***
*** Bug 411545 has been marked as a duplicate of this bug. ***
*** Bug 411561 has been marked as a duplicate of this bug. ***
*** Bug 414999 has been marked as a duplicate of this bug. ***
*** Bug 416127 has been marked as a duplicate of this bug. ***
*** Bug 416524 has been marked as a duplicate of this bug. ***
*** Bug 417098 has been marked as a duplicate of this bug. ***
*** Bug 417549 has been marked as a duplicate of this bug. ***
*** Bug 420354 has been marked as a duplicate of this bug. ***
*** Bug 420392 has been marked as a duplicate of this bug. ***
*** Bug 422227 has been marked as a duplicate of this bug. ***
*** Bug 422441 has been marked as a duplicate of this bug. ***
*** Bug 422578 has been marked as a duplicate of this bug. ***
*** Bug 423049 has been marked as a duplicate of this bug. ***
*** Bug 423363 has been marked as a duplicate of this bug. ***
*** Bug 424392 has been marked as a duplicate of this bug. ***
*** Bug 424942 has been marked as a duplicate of this bug. ***
*** Bug 425205 has been marked as a duplicate of this bug. ***
*** Bug 425255 has been marked as a duplicate of this bug. ***
*** Bug 426649 has been marked as a duplicate of this bug. ***
*** Bug 427429 has been marked as a duplicate of this bug. ***
*** Bug 428085 has been marked as a duplicate of this bug. ***
*** Bug 429836 has been marked as a duplicate of this bug. ***