[Bug 750397] CRITICAL: Race condition in GstBus

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Oct 30 18:10:08 PDT 2015


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

--- Comment #10 from Matt Gruenke <mgruenke at tycoint.com> ---
(In reply to Jan Schmidt from comment #5)
> it's not safe to write_control and read_control simultaneously from
> different threads when read_control can successfully decrement the
> control_pending atomic int to 0 and then fail to read a byte.

It's plausible even writing and reading from the same thread could leave
GstPoll in a bad state, depending on how a given platform implements
socketpair().  Clearing O_NONBLOCK on control_read_fd.fd fixes this.

-- 
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