[Bug 758285] glib: Don't store CF run loop to avoid racy cleanup
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Wed Nov 18 06:18:02 PST 2015
https://bugzilla.gnome.org/show_bug.cgi?id=758285
--- Comment #1 from Heinrich Fink <hfink at toolsonair.com> ---
Created attachment 315827
--> https://bugzilla.gnome.org/attachment.cgi?id=315827&action=edit
glib: Don't store CF run loop to avoid racy cleanup
After polling for file descriptors, the Cocoa select thread did wake up
the main run loop instance that has been stored in a static variable.
This variable might have already been set to NULL by
g_main_context_release, resulting in a segfault of CFRunLoopWakeUp. This
race is fixed by this commit by simply not storing the main run loop in
a variable, but instead calling CFRunLoopGetMain locally where needed.
Within a single process, the main run loop is always the same, and
always accessible. It is therefore not necessary anyway to remember the
run loop instance when acquiring the context.
--
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