[gstreamer-bugs] [Bug 537540] New: Causes a deadlock when the pulseserver dies

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Tue Jun 10 01:36:10 PDT 2008


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=537540

  GStreamer | gst-plugins-good | Ver: HEAD CVS
           Summary: Causes a deadlock when the pulseserver dies
           Product: GStreamer
           Version: HEAD CVS
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-good
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: slomo at circular-chaos.org
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


Moved from http://pulseaudio.org/ticket/251:

If the pulseserver dies the sinks _write calls GST_ELEMENT_ERROR inside a
section with the pulseaudio mainloop mutex locked.. GST_ELEMENT_ERROR locks the
element

The _reset function is called with the element locked and wants to lock the the
mainloop mutex..

So one thread locks A, B and the other B, A.. Obvious deadlock ensues :( 


--------------------------------------------------------------------------

03/04/08 12:28:31 changed by coling

Just for completeness this does not require pa to "die", the stream just needs
to be terminated (e.g. via pavucontrol) to deadlock the application - tested
here with rhythmbox.

I think this may also be causing some applications to "go into a memory/cpu
cyle eating loop". I've seen problems with e.g. gnome-power-manager and pidgin
when I've had to kill PA or the streams after a resume form STR where the alsa
driver has hiccuped and not allowed me to play sounds. Reloading the alsa
driver "fixes" it but to do so I have to kill PA as it's "hogging" the device
due to some frozen gstreamer streams.

Gstreamer streams seem to just sit there when the pa server gets into this
state but e.g. paplay will play and quit as usual.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=537540.




More information about the Gstreamer-bugs mailing list