GNOME Bugzilla – Bug 636112
[pulsesink] deadlock in ringbuffer_open_device
Last modified: 2011-01-19 15:26:11 UTC
The pa_shared_ressource_mutex should be unlocked if we fail to create the context or the connection to PA fails.
Created attachment 175522 [details] [review] [pulsesink] avoid deadlock in ringbuffer_open_device Unlock the shared_ressource_mutex if we fail to create the PA context or if we fail to connect to PA.
Isn't that already done via the goto unlock_and_fail; ?
Comment on attachment 175522 [details] [review] [pulsesink] avoid deadlock in ringbuffer_open_device Ah yes, sorry.. What I see here is a sink changing state and attempting to lock the mutex while another sink is blocking in open_device with the mutex held in pa_threaded_mainloop_wait()
Unlocking the mutex before the loop waiting on the context state seems to work, but not sure it's an acceptable solution... PA is not running on the machine I use here.
Any news on this?
I can't reproduce this issue anymore. Closing this bug.