<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - data race in pa_queue_pop/pa_queue_push reported by TSan"
href="https://bugs.freedesktop.org/show_bug.cgi?id=99667#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - data race in pa_queue_pop/pa_queue_push reported by TSan"
href="https://bugs.freedesktop.org/show_bug.cgi?id=99667">bug 99667</a>
from <span class="vcard"><a class="email" href="mailto:tanuk@iki.fi" title="Tanu Kaskinen <tanuk@iki.fi>"> <span class="fn">Tanu Kaskinen</span></a>
</span></b>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>