[Bug 784382] Debug logging output on Windows sometimes hangs

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Apr 11 22:33:33 UTC 2018


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

Tim-Philipp Müller <t.i.m at zen.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|git master                  |1.14.1
            Summary|Debug-Output hangs          |Debug logging output on
                   |                            |Windows sometimes hangs

--- Comment #3 from Tim-Philipp Müller <t.i.m at zen.co.uk> ---
This should fix it:

commit ae612551fa0a2378bfb71eb03611dc6c0861ee7a
Author: Tim-Philipp Müller <tim at centricular.com>
Date:   Wed Apr 11 19:56:01 2018 +0100

    gstdebug: fix occasional deadlocks on windows when outputting debug logging

    When outputting debug logs on Windows, some sections are protected
    with a non-recursive lock. Turns out though that gst_debug_message_get()
    might indirectly, via our printf format extensions, call code which
    in turn would try to log something when it can't handle something. If
    that happens we end up in gst_debug_log_default() again recursively and
    try to again take the lock that's already taken, thus deadlocking.

    Format the debug message string outside of the critical section
    instead to avoid this.

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

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