[Bug 750397] CRITICAL: Race condition in GstBus

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Jun 29 17:07:18 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=750397

--- Comment #75 from Matt Gruenke <mgruenke at tycoint.com> ---
(In reply to Sebastian Dröge (slomo) from comment #74)
> I've updated your patch now to set EBADF as errno if something goes wrong on
> Windows. That's probably the closest that makes sense (write() and read()
> can both return that, unlike the previous EACCES).

Okay, so do you need anything more from me?


(In reply to Sebastian Dröge (slomo) from comment #72)

> And then hopefully get rid of the mutex once it's all
> working, at least for Linux. Somehow.

Well, the non-atomic conversion and conditional update of control_pending will
impede that effort.  I think it's possible to revert it back to being atomic,
but I haven't been paying attention to whether we'd get burned by anything
else.

At this point, I think it's safer to leave the mutex in there.  It should be
cheap, especially by comparison with calls to select() and when we actually
read() and write().

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list