[gstreamer-bugs] [Bug 453369] New: Deadlock involving repeated state changes

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Tue Jul 3 05:52:56 PDT 2007


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

  GStreamer | gstreamer (core) | Ver: HEAD CVS
           Summary: Deadlock involving repeated state changes
           Product: GStreamer
           Version: HEAD CVS
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: critical
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: tim at ngus.net
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: 2.17/2.18
   GNOME milestone: Unspecified


Steps to reproduce:
1. Use a playbin to play a file with more than 1 stream.
2. Enact lots of state changes.
3. Goto 2.

See attached test program to reproduce easily.

Stack trace:
Starting program: /home/tim/tmp/gst-test file:///home/tim/Desktop/sync_s.avi
[Thread debugging using libthread_db enabled]
[New Thread -1213531600 (LWP 15586)]
0 [New Thread -1215665264 (LWP 15590)]
[New Thread -1224623216 (LWP 15591)]
[New Thread -1233171568 (LWP 15592)]
EOS
1 EOS
2 EOS
3 
Program received signal SIGINT, Interrupt.
[Switching to Thread -1213531600 (LWP 15586)]
0xffffe410 in __kernel_vsyscall ()
(gdb) thread apply all bt

Thread 4 (Thread -1233171568 (LWP 15592)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7c365c6 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb79460e5 in gst_queue_loop (pad=0x8116278) at gstqueue.c:983
#3  0xb7ebb466 in gst_task_func (task=0xb58f59a8, tclass=0x8092218)
    at gsttask.c:192
#4  0xb7c914d8 in g_thread_pool_thread_proxy (data=0x80922a8)
    at gthreadpool.c:265
#5  0xb7c8fb7f in g_thread_create_proxy (data=0x8187698) at gthread.c:591
#6  0xb7c3231b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0xb7bbb57e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 3 (Thread -1224623216 (LWP 15591)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7c365c6 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb791073f in gst_base_sink_wait_preroll (sink=0x81141c0)
    at gstbasesink.c:1234
#3  0xb791375e in gst_base_sink_render_object (basesink=0x81141c0, 
    pad=0x8156050, obj=0xb5e20140) at gstbasesink.c:1328
#4  0xb7914ec5 in gst_base_sink_queue_object_unlocked (basesink=0x81141c0, 
---Type <return> to continue, or q <return> to quit---
    pad=0x8156050, obj=0xb5e20140, prerollable=1) at gstbasesink.c:1870
#5  0xb7915526 in gst_base_sink_chain_unlocked (basesink=0x81141c0, 
    pad=0x8156050, buf=0xb5e20140) at gstbasesink.c:2149
#6  0xb7915ade in gst_base_sink_chain (pad=0x8156050, buf=0xb5e20140)
    at gstbasesink.c:2183
#7  0xb7ea0fd9 in gst_pad_chain_unchecked (pad=0x8156050, buffer=0xb5e20140)
    at gstpad.c:3453
#8  0xb7ea16bb in gst_pad_push (pad=0x814ce38, buffer=0xb5e20140)
    at gstpad.c:3621
#9  0xb79216e5 in gst_base_transform_chain (pad=0x8116038, buffer=0xb5e20140)
    at gstbasetransform.c:1605
#10 0xb7ea0fd9 in gst_pad_chain_unchecked (pad=0x8116038, buffer=0xb5e20140)
    at gstpad.c:3453
#11 0xb7ea16bb in gst_pad_push (pad=0x817f598, buffer=0xb5e20140)
    at gstpad.c:3621
#12 0xb79216e5 in gst_base_transform_chain (pad=0x817f418, buffer=0xb5e20140)
    at gstbasetransform.c:1605
#13 0xb7ea0fd9 in gst_pad_chain_unchecked (pad=0x817f418, buffer=0xb5e20140)
    at gstpad.c:3453
#14 0xb7ea16bb in gst_pad_push (pad=0x81163f8, buffer=0xb5e20140)
    at gstpad.c:3621
#15 0xb79216e5 in gst_base_transform_chain (pad=0x814ccb8, buffer=0xb5e20140)
    at gstbasetransform.c:1605
---Type <return> to continue, or q <return> to quit---
#16 0xb7ea0fd9 in gst_pad_chain_unchecked (pad=0x814ccb8, buffer=0xb5e20140)
    at gstpad.c:3453
#17 0xb7ea16bb in gst_pad_push (pad=0x81473f8, buffer=0xb5e20140)
    at gstpad.c:3621
#18 0xb7e925da in gst_proxy_pad_do_chain (pad=0x81568e0, buffer=0xb5e20140)
    at gstghostpad.c:191
#19 0xb7ea0fd9 in gst_pad_chain_unchecked (pad=0x81568e0, buffer=0xb5e20140)
    at gstpad.c:3453
#20 0xb7ea16bb in gst_pad_push (pad=0x8145e40, buffer=0xb5e20140)
    at gstpad.c:3621
#21 0xb79465a8 in gst_queue_loop (pad=0x8145e40) at gstqueue.c:932
#22 0xb7ebb466 in gst_task_func (task=0xb561b280, tclass=0x8092218)
    at gsttask.c:192
#23 0xb7c914d8 in g_thread_pool_thread_proxy (data=0x80922a8)
    at gthreadpool.c:265
#24 0xb7c8fb7f in g_thread_create_proxy (data=0x806eb40) at gthread.c:591
#25 0xb7c3231b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#26 0xb7bbb57e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread -1215665264 (LWP 15590)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7c365c6 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
---Type <return> to continue, or q <return> to quit---
#2  0xb7947a8f in gst_queue_chain (pad=0x814c838, buffer=0xb556cca8)
    at gstqueue.c:876
#3  0xb7ea0fd9 in gst_pad_chain_unchecked (pad=0x814c838, buffer=0xb556cca8)
    at gstpad.c:3453
#4  0xb7ea16bb in gst_pad_push (pad=0x817f118, buffer=0xb556cca8)
    at gstpad.c:3621
#5  0xb7991a75 in gst_stream_selector_chain (pad=0x8116338, buf=0xb556cca8)
    at gststreamselector.c:408
#6  0xb7ea0fd9 in gst_pad_chain_unchecked (pad=0x8116338, buffer=0xb556cca8)
    at gstpad.c:3453
#7  0xb7ea16bb in gst_pad_push (pad=0x81469c0, buffer=0xb556cca8)
    at gstpad.c:3621
#8  0xb7e925da in gst_proxy_pad_do_chain (pad=0x81471a0, buffer=0xb556cca8)
    at gstghostpad.c:191
#9  0xb7ea0fd9 in gst_pad_chain_unchecked (pad=0x81471a0, buffer=0xb556cca8)
    at gstpad.c:3453
#10 0xb7ea16bb in gst_pad_push (pad=0x817f058, buffer=0xb556cca8)
    at gstpad.c:3621
#11 0xb78ea562 in gst_avi_demux_stream_data (avi=0xb5ef7800)
    at gstavidemux.c:3422
#12 0xb78ed018 in gst_avi_demux_loop (pad=0x8145b40) at gstavidemux.c:3697
#13 0xb7ebb466 in gst_task_func (task=0x8128d90, tclass=0x8092218)
    at gsttask.c:192
---Type <return> to continue, or q <return> to quit---
#14 0xb7c914d8 in g_thread_pool_thread_proxy (data=0x80922a8)
    at gthreadpool.c:265
#15 0xb7c8fb7f in g_thread_create_proxy (data=0x8092cd8) at gthread.c:591
#16 0xb7c3231b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#17 0xb7bbb57e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread -1213531600 (LWP 15586)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7c365c6 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb7e011c1 in g_cond_timed_wait_posix_impl (cond=0xb58f6ba8, 
    entered_mutex=0x0, abs_time=0x3) at gthread-posix.c:231
#3  0xb7e8c523 in gst_element_get_state_func (element=0x81631d0, state=0x0, 
    pending=0x0, timeout=18446744073709551615) at gstelement.c:1877
#4  0xb7e773f9 in gst_bin_get_state_func (element=0x81631d0, state=0x0, 
    pending=0x0, timeout=18446744073709551615) at gstbin.c:1517
#5  0xb7e88604 in gst_element_get_state (element=0x81631d0, state=0x0, 
    pending=0x0, timeout=18446744073709551615) at gstelement.c:1980
#6  0x08048bf3 in main (argc=2, argv=0xbfb1a4c4) at gst-test.c:77
(gdb) 

Other information:


-- 
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=453369.




More information about the Gstreamer-bugs mailing list