Ticket #4341: threads

File threads, 4.5 KB (added by mythtv@…, 16 years ago)

Backtrace of two threads when mythfrontend deadlocks, fixed by deadlock.patch

Line 
1(gdb) info threads
2  8 process 16595  0xffffe410 in __kernel_vsyscall ()
3  7 process 16596  0xffffe410 in __kernel_vsyscall ()
4  6 process 16623  0xffffe410 in __kernel_vsyscall ()
5  5 process 16624  0xffffe410 in __kernel_vsyscall ()
6  4 process 16625  0xffffe410 in __kernel_vsyscall ()
7  3 process 16626  0xffffe410 in __kernel_vsyscall ()
8  2 process 16627  0xffffe410 in __kernel_vsyscall ()
9* 1 process 16590  0xffffe410 in __kernel_vsyscall ()
10(gdb) t 2
11[Switching to thread 2 (process 16627)]#0  0xffffe410 in __kernel_vsyscall ()
12(gdb) bt
13#0  0xffffe410 in __kernel_vsyscall ()
14#1  0xb7f734ce in __lll_mutex_lock_wait ()
15   from /usr/local/lib/libpthread_ptt.so.0
16#2  0xb7f6e260 in _L_mutex_lock_230 () from /usr/local/lib/libpthread_ptt.so.0
17#3  0xb7f6da2b in __pthread_mutex_lock (mutex=0x854dd64)
18    at pthread_mutex_lock.c:135
19#4  0xb66d1f87 in QRecursiveMutexPrivate::lock () from /usr/lib/libqt-mt.so.3
20#5  0xb66d1ad2 in QMutex::lock () from /usr/lib/libqt-mt.so.3
21#6  0xb7af9a34 in VideoBuffers::begin_lock (this=0x8506014,
22    type=kVideoBuffer_displayed) at videobuffers.cpp:578
23#7  0xb7b256a2 in VideoOutputXv::CheckFrameStates (this=0x8505f18)
24    at videoout_xv.cpp:3196
25#8  0xb7b2a99d in VideoOutputXv::ShowXvMC (this=0x8505f18,
26    scan=kScan_Progressive) at videoout_xv.cpp:2403
27#9  0xb7b2ac43 in VideoOutputXv::Show (this=0x8505f18, scan=kScan_Progressive)
28    at videoout_xv.cpp:2473
29#10 0xb7a63c30 in NuppelVideoPlayer::AVSync (this=0x860f818)
30    at NuppelVideoPlayer.cpp:2152
31#11 0xb7a66255 in NuppelVideoPlayer::DisplayNormalFrame (this=0x860f818)
32    at NuppelVideoPlayer.cpp:2519
33#12 0xb7a66a57 in NuppelVideoPlayer::OutputVideoLoop (this=0x860f818)
34    at NuppelVideoPlayer.cpp:2648
35#13 0xb7a66b5e in NuppelVideoPlayer::kickoffOutputVideoLoop (player=0x860f818)
36    at NuppelVideoPlayer.cpp:2727
37#14 0xb7f6b505 in start_thread (arg=0xadfcbb90) at pthread_create.c:296
38#15 0xb5cf56de in clone () from /lib/tls/i686/cmov/libc.so.6
39(gdb) t 5
40[Switching to thread 5 (process 16624)]#0  0xffffe410 in __kernel_vsyscall ()
41(gdb) bt
42#0  0xffffe410 in __kernel_vsyscall ()
43#1  0xb7f734ce in __lll_mutex_lock_wait ()
44   from /usr/local/lib/libpthread_ptt.so.0
45#2  0xb7f6e260 in _L_mutex_lock_230 () from /usr/local/lib/libpthread_ptt.so.0
46#3  0xb7f6da2b in __pthread_mutex_lock (mutex=0x97f9634)
47    at pthread_mutex_lock.c:135
48#4  0xb66d1f87 in QRecursiveMutexPrivate::lock () from /usr/lib/libqt-mt.so.3
49#5  0xb66d1ad2 in QMutex::lock () from /usr/lib/libqt-mt.so.3
50#6  0xb7afc396 in VideoBuffers::LockFrame (this=0x8506014, frame=0x84829a8,
51    owner=0xafd94424 "š)H\b9ÊÌٯDaP\b\204EÙ¯tšÎP\bðb\024`P\byɯ·\024`P\bš)H\b\204Eٯ³ãÀٯ") at videobuffers.cpp:786
52#7  0xb7afc85a in VideoBuffers::PastFrame (this=0x8506014, frame=0x84829a8)
53    at videobuffers.cpp:1029
54#8  0xb7afc979 in VideoBuffers::AddInheritence (this=0x8506014,
55    frame=0x84829a8) at videobuffers.cpp:911
56#9  0xb7b28995 in VideoOutputXv::DrawSlice (this=0x8505f18, frame=0x84829a8,
57    x=0, y=0, w=352, h=16) at videoout_xv.cpp:2609
58#10 0xb7a50571 in NuppelVideoPlayer::DrawSlice (this=0x860f818,
59    frame=0x84829a8, x=0, y=0, w=352, h=16) at NuppelVideoPlayer.cpp:1171
60#11 0xb7a9515c in render_slice_xvmc (s=0xfffffe00, src=0x0, offset=0xafd946dc,
61    y=159356468, type=3, height=159356468) at avformatdecoder.cpp:1666
62#12 0xb71358e6 in ff_draw_horiz_band (s=0x854a480, y=0, h=16)
63    at mpegvideo.c:4211
64#13 0xb71f23bb in mpeg_decode_slice (s1=<value optimized out>, mb_y=0,
65    buf=0xafd94838, buf_size=2292) at mpeg12.c:2658
66#14 0xb71f2b79 in mpeg_decode_frame (avctx=0x85498d0, data=0xafd94ac0,
67    data_size=0xafd949f4, buf=0x97fa010 "", buf_size=2348) at mpeg12.c:3253
68#15 0xb712f7e9 in avcodec_decode_video (avctx=0x85498d0, picture=0xafd94ac0,
69    got_picture_ptr=0xafd949f4, buf=0x97fa010 "", buf_size=2348) at utils.c:971
70#16 0xb7a9e49b in AvFormatDecoder::GetFrame (this=0x8746630, onlyvideo=0)
71    at avformatdecoder.cpp:2933
72#17 0xb7a98f23 in AvFormatDecoder::SeekReset (this=0x8746630, newKey=41877,
73    skipFrames=12, doflush=true, discardFrames=true) at avformatdecoder.cpp:538
74#18 0xb7a97516 in AvFormatDecoder::DoFastForward (this=0x8746630,
75    desiredFrame=41894, discardFrames=true) at avformatdecoder.cpp:452
76#19 0xb7a61821 in NuppelVideoPlayer::DoPause (this=0x860f818)
77    at NuppelVideoPlayer.cpp:3706
78#20 0xb7a6f42c in NuppelVideoPlayer::StartPlaying (this=0x860f818)
79    at NuppelVideoPlayer.cpp:3211
80#21 0xb7a40685 in SpawnDecode (param=0x860f818) at tv_play.cpp:259
81#22 0xb7f6b505 in start_thread (arg=0xafd95b90) at pthread_create.c:296
82#23 0xb5cf56de in clone () from /lib/tls/i686/cmov/libc.so.6