[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xine-devel
Subject:    [xine-devel] Xine 1.1.0 thread bug  wont't xine_stop
From:       Barry Scott <barry.scott () onelan ! co ! uk>
Date:       2005-09-27 10:09:50
Message-ID: 43391A6E.8010008 () onelan ! co ! uk
[Download RAW message or body]

I'm seeing an intermittent problem with xine_stop failing to return.
I'm running a play list that contains mpeg2, v4l, mpeg2 dvbt in
a loop. This is on FC4 with xine compiled with gcc32.

thread 1 has called xine_stop and its stuck in pthread_cond_wait.
Which thread is not responding and blocking the stop? What can
check for to help debug this problem?

Barry

(gdb) thrad apply all bt

Thread 8 (Thread 114547632 (LWP 4758)):
#0  0x005b5402 in ?? ()
#1  0x00b6ba1c in pthread_cond_timedwait@@GLIBC_2.3.2 () from 
/lib/libpthread.so.0
#2  0x004b0280 in metronom_sync_loop (this=0x9611130) at metronom.c:873
#3  0x00b69b80 in start_thread () from /lib/libpthread.so.0
#4  0x008eadee in clone () from /lib/libc.so.6

Thread 7 (Thread 30972848 (LWP 4759)):
#0  0x005b5402 in ?? ()
#1  0x00b6e8f6 in __nanosleep_nocancel () from /lib/libpthread.so.0
#2  0x004cfc82 in xine_usec_sleep (usec=30970816) at utils.c:428
#3  0x004bb655 in paused_loop (this=0x9613cc0, vpts=1815098799) at 
video_out.c:1014
#4  0x004bb886 in video_out_loop (this_gen=0x9613cc0) at video_out.c:1122
#5  0x00b69b80 in start_thread () from /lib/libpthread.so.0
#6  0x008eadee in clone () from /lib/libc.so.6

Thread 6 (Thread 97401776 (LWP 4760)):
#0  0x005b5402 in ?? ()
#1  0x00b6e8f6 in __nanosleep_nocancel () from /lib/libpthread.so.0
#2  0x004cfc82 in xine_usec_sleep (usec=97399744) at utils.c:428
#3  0x004bdf88 in ao_loop (this_gen=0x9a2a9a0) at audio_out.c:1007
#4  0x00b69b80 in start_thread () from /lib/libpthread.so.0
#5  0x008eadee in clone () from /lib/libc.so.6

Thread 5 (Thread 41462704 (LWP 4761)):
#0  0x005b5402 in ?? ()
#1  0x00b6b7a6 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/libpthread.so.0
#2  0x004aaf42 in ticket_renew (this=0x96112b0, irrevocable=0) at xine.c:169
#3  0x004b8cb6 in video_decoder_loop (stream_gen=0x9b4a2a0) at 
video_decoder.c:388
#4  0x00b69b80 in start_thread () from /lib/libpthread.so.0
#5  0x008eadee in clone () from /lib/libc.so.6

Thread 4 (Thread 51952560 (LWP 4762)):
#0  0x005b5402 in ?? ()
#1  0x00b6b7a6 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/libpthread.so.0
#2  0x004b2b20 in fifo_buffer_get (fifo=0x9b5bc28) at buffer.c:233
#3  0x004b942d in audio_decoder_loop (stream_gen=0x9b4a2a0) at 
audio_decoder.c:68
#4  0x00b69b80 in start_thread () from /lib/libpthread.so.0
#5  0x008eadee in clone () from /lib/libc.so.6

Thread 3 (Thread 62442416 (LWP 4763)):
#0  0x005b5402 in ?? ()
#1  0x00b6b7a6 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/libpthread.so.0
#2  0x004c07f2 in xine_event_wait (queue=0x9b78fc0) at events.c:56
#3  0x004c0bdb in listener_loop (queue_gen=0x9b78fc0) at events.c:199
#4  0x00b69b80 in start_thread () from /lib/libpthread.so.0
#5  0x008eadee in clone () from /lib/libc.so.6

Thread 2 (Thread 72932272 (LWP 13732)):
#0  0x0073c98c in v4l_event_handler (this=0x9c2b6b0) at input_v4l.c:1504
#1  0x0073c263 in v4l_plugin_read_block (this_gen=0x9beacf0, fifo=0x0, 
todo=0) at input_v4l.c:1235
#2  0x004cc048 in cache_plugin_read_block (this_gen=0x9c2b6b0, 
fifo=0x9b4af88, todo=0) at input_cache.c:194
#3  0x00531863 in demux_yuv_frames_send_chunk (this_gen=0x9bea9f0) at 
demux_yuv_frames.c:116
#4  0x004c4b03 in demux_loop (stream_gen=0x9b4a2a0) at demux.c:258
#5  0x00b69b80 in start_thread () from /lib/libpthread.so.0
#6  0x008eadee in clone () from /lib/libc.so.6
Current language:  auto; currently c

Thread 1 (Thread -1208596800 (LWP 4748)):
#0  0x005b5402 in ?? ()
#1  0x00b6b7a6 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/libpthread.so.0
#2  0x004aade9 in ticket_acquire (this=0x96112b0, irrevocable=1) at 
xine.c:134
#3  0x004ab35a in xine_stop (stream=0x9b4a2a0) at xine.c:306
#4  0x08065fbf in ONELAN::XinePlayer::stopPlayingUrl (this=0xbfc6bc68, 
action=@0x9bea170)
    at player_xine.cpp:1493
#5  0x0806b266 in ONELAN::ActionStart::execute (this=0x9bea170) at 
player_xine.cpp:225
#6  0x08062ba0 in ONELAN::XinePlayer::startNextAction (this=0xbfc6bc68) 
at player_xine.cpp:1686
#7  0x08065c62 in ONELAN::XinePlayer::handleAction (this=0xbfc6bc68, 
action=@0x9bea170)
    at player_xine.cpp:1641
#8  0x0805c79a in ONELAN::PlayerProtocolSlave::foundTerminator 
(this=0xbfc6bcb8)
    at ../Common/player_protocol_slave.cpp:127
#9  0x08059e65 in ONELAN::Connection::handleIoRead (this=0xbfc6bcb8) at 
../Common/player_connection.cpp:212
#10 0x08055f59 in ONELAN::AsyncIoScheduler::scheduleOnce (this=0xbfc6bec4)
    at ../../Common/async_scheduler.cpp:351
#11 0x08056525 in ONELAN::AsyncIoScheduler::scheduleUntilQuit 
(this=0xbfc6bec4)
    at ../../Common/async_scheduler.cpp:418
#12 0x08060899 in main (argc=1, argv=0xbfc6c094) at player_xine_main.cpp:180



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
xine-devel mailing list
xine-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xine-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic