[pulseaudio-tickets] [Bug 99667] data race in pa_queue_pop/pa_queue_push reported by TSan

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Apr 3 09:54:35 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=99667

--- Comment #2 from Tanu Kaskinen <tanuk at iki.fi> ---
Actually, I think the other thread is not the thread where pulsesrc's
pa_context runs, it's just some internal thread of gstreamer. Empathy has some
callback running in that thread, and the callback incorrectly accesses the
pa_context object that is supposed to be used only from the main thread.

As a solution, I'd look into sending a message from the gstreamer thread to the
main thread (I'm not very familiar with glib, so I don't know exactly how that
is done), and do the pa_context access from the main thread. I suppose this
could also be solved by adding more locking, but I personally prefer message
passing over locks.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20170403/758b9c18/attachment-0001.html>


More information about the pulseaudio-bugs mailing list