[Bug 750397] CRITICAL: Race condition in GstBus

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Jun 29 04:22:29 UTC 2016


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

--- Comment #62 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
So what I think has to happen here is that:
1) If FALSE is returned in release because the counter is already 0, errno
should be set to EWOULDBLOCK
2) If RELEASE_EVENT() or WAKE_EVENT() returns FALSE and EAGAIN/EINTR, or
RELEASE_EVENT() reads 0 bytes, or WAKE_EVENT() writes 0 bytes, the counter
should either be set to the previous value or we need to loop. Both seems
acceptable.
3) If RELEASE_EVENT() or WAKE_EVENT() fail otherwise, the counter should be set
to its previous value, FALSE should be returned (and errno contain the error).
This should probably also cause a g_warning().

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