[pulseaudio-tickets] [Bug 89672] PulseAudio crashes when remote device is unpaired during A2DP streaming
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Mar 20 04:21:47 PDT 2015
https://bugs.freedesktop.org/show_bug.cgi?id=89672
--- Comment #4 from Rakesh M K <rakesh.mk at samsung.com> ---
Created attachment 114486
--> https://bugs.freedesktop.org/attachment.cgi?id=114486&action=edit
Proposed Patch to avoid the PA crash due to stop_thread() recursive.
Proposed Patch to avoid the PA crash due to stop_thread() recursive.
When remote headset is unpaired or disconnected, blueZ
will call "ClearConfiguration" Dbus method. Which will update
the transport state to disconnected. Due to which the STOP thread
will be handled. When Stop thread handling is in progress, rendering
thread will post the "BLUETOOTH_MESSAGE_IO_THREAD_FAILED" due to
audio packet pa_write() fail. Since processing of message is done
inside the stop_thread() which internally calls the Stop_thread()
one more time. Further access pa msgQue memory which is already
freed will leads to the pulseAudio crash.
This patch with avoid the recursive call of stop thread.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20150320/394be868/attachment.html>
More information about the pulseaudio-bugs
mailing list