[mythtv] recording crash with trace

Hamish Moffatt hamish at cloud.net.au
Thu Feb 26 08:50:03 EST 2004


I got the following crash while recording tonight.

I tried to record two programs from 8:30-9:30 pm. For one of the
programs it seems it could not tune the card, and the log is full of:

2004-02-26 20:34:11 DVB#0 WARNING - No data from card in 1 second.
2004-02-26 20:34:12 DVB#0 WARNING - No data from card in 1 second.
2004-02-26 20:34:13 DVB#0 WARNING - No data from card in 1 second.
2004-02-26 20:34:14 DVB#0 WARNING - No data from card in 1 second.
2004-02-26 20:34:15 DVB#0 WARNING - No data from card in 1 second.
2004-02-26 20:34:16 DVB#0 WARNING - Uncorrectable error in packet, dropped.
2004-02-26 20:34:16 DVB#0 WARNING - Uncorrectable error in packet, dropped.
2004-02-26 20:34:16 DVB#0 WARNING - Uncorrectable error in packet, dropped.
2004-02-26 20:34:16 DVB#0 WARNING - Uncorrectable error in packet, dropped.
2004-02-26 20:34:16 DVB#0 WARNING - Uncorrectable error in packet, dropped.
2004-02-26 20:34:17 DVB#0 WARNING - Uncorrectable error in packet, dropped.
2004-02-26 20:34:17 DVB#0 WARNING - Uncorrectable error in packet, dropped.
2004-02-26 20:34:18 DVB#0 WARNING - No data from card in 1 second.

The 9:30 program finished OK and the post-recording commercial flagging 
ran. The DVB#0 errors continue until it dies at 22:10; it should've
stopped that recording much earlier.

Here's what gdb says:

[Lots of New Thread messages]

[New Thread 1032256 (LWP 1390)]
[New Thread 1048641 (LWP 1391)]
[New Thread 1065026 (LWP 1392)]
[New Thread 1081411 (LWP 1393)]
[New Thread 1097796 (LWP 1426)]
[New Thread 1114181 (LWP 1428)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1097796 (LWP 1426)]
0x40648373 in put_pixels8_mmx (
    block=0x817ab38 "\203\202\201\200\200\201\202\204", pixels=0x424c7f70 "",
    line_size=360, h=8) at i386/dsputil_mmx.c:339
339         __asm __volatile(
Current language:  auto; currently c
(gdb) thread apply all bt

Thread 70 (Thread 1114181 (LWP 1428)):
#0  0x41341c36 in nanosleep () from /lib/libc.so.6

Thread 69 (Thread 1097796 (LWP 1426)):
#0  0x40648373 in put_pixels8_mmx (block=0x817ab38 "\203\202\201\200\200\201\202\204", pixels=0x424c7f70 "", line_size=360, h=8) at i386/dsputil_mmx.c:339
#1  0x40509a56 in mpeg_motion (s=0x820078c, dest_y=0x8177e30 '\200' <repeats 16 times>, dest_cb=0x817ab30 "\200\200\200\200\200\200\200\200\203\202\201\200\200\201\202\204", dest_cr=0x817ab38 "\203\202\201\200\200\201\202\204", dest_offset=0, ref_picture=0x820014c, src_offset=0, field_based=0, pix_op=0x820078c, motion_x=65535, motion_y=65535, h=16) at mpegvideo.c:2431
#2  0x40505151 in MPV_motion (s=0x8200070, dest_y=0x8177e30 '\200' <repeats 16 times>, dest_cb=0x817ab30 "\200\200\200\200\200\200\200\200\203\202\201\200\200\201\202\204", dest_cr=0x817ab38 "\203\202\201\200\200\201\202\204", dir=0, ref_picture=0x820014c, pix_op=0x820078c, qpix_op=0x82008a4) at mpegvideo.c:2779
#3  0x404ff474 in MPV_decode_mb (s=0x8200070, block=0x80e7dc0) at mpegvideo.c:3145
#4  0x405d4ddb in mpeg_decode_slice (avctx=0x80f7de8, pict=0xb73df884, start_code=14, buf=0xb73df770, buf_size=720) at mpeg12.c:2227
#5  0x405d316d in mpeg_decode_frame (avctx=0x80f7de8, data=0xb73df884, data_size=0xb73df83c, buf=0x8110e80 "", buf_size=22224) at mpeg12.c:2694
#6  0x404f86e7 in avcodec_decode_video (avctx=0x80f7de8, picture=0x2d0, got_picture_ptr=0xb73df83c, buf=0x2d0 <Address 0x2d0 out of bounds>, buf_size=720) at utils.c:466
#7  0x402963ee in AvFormatDecoder::GetFrame(int) (this=0x81075c0, onlyvideo=1) at avformatdecoder.cpp:1156
#8  0x40182728 in NuppelVideoPlayer::GetFrame(int, bool) (this=0x80da4f8, onlyvideo=1, unsafe=true) at NuppelVideoPlayer.cpp:650
#9  0x4018bcb4 in NuppelVideoPlayer::FlagCommercials(bool, bool) (this=0x80da4f8, showPercentage=false, fullSpeed=false) at NuppelVideoPlayer.cpp:3241
#10 0x4031d5a0 in TVRec::DoFlagCommercialsThread() (this=0x0) at tv_rec.cpp:2088
#11 0x4031d7bf in TVRec::FlagCommercialsThread(void*) (param=0x2d0) at tv_rec.cpp:2105
#12 0x4116be51 in pthread_start_thread () from /lib/libpthread.so.0
#13 0x4116becf in pthread_start_thread_event () from /lib/libpthread.so.0
#14 0x4137164a in clone () from /lib/libc.so.6

Thread 68 (Thread 1081411 (LWP 1393)):
#0  0x4136881a in poll () from /lib/libc.so.6
#1  0x403342ea in DVBRecorder::StartRecording() (this=0x8107710) at dvbrecorder.cpp:430
#2  0x4030d401 in SpawnEncode(void*) (param=0xfffffffc) at tv_rec.cpp:39
#3  0x4116be51 in pthread_start_thread () from /lib/libpthread.so.0
#4  0x4116becf in pthread_start_thread_event () from /lib/libpthread.so.0
#5  0x4137164a in clone () from /lib/libc.so.6

Thread 67 (Thread 1065026 (LWP 1392)):
#0  0x41341c36 in nanosleep () from /lib/libc.so.6

Thread 14 (Thread 196621 (LWP 875)):
#0  0x4116e5f4 in __pthread_sigsuspend () from /lib/libpthread.so.0
#1  0x4116e3b8 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
#2  0x00000020 in ?? ()
#3  0xbe1ff968 in ?? ()
#4  0xffffffff in ?? ()

Thread 13 (Thread 180236 (LWP 874)):
#0  0x4116e5f4 in __pthread_sigsuspend () from /lib/libpthread.so.0
#1  0x4116e3b8 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
#2  0x00000020 in ?? ()
#3  0xbe3ff968 in ?? ()
#4  0xffffffff in ?? ()

Thread 12 (Thread 163851 (LWP 873)):
#0  0x4116e5f4 in __pthread_sigsuspend () from /lib/libpthread.so.0
#1  0x4116e3b8 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
#2  0x00000020 in ?? ()
#3  0xbe5ff968 in ?? ()
#4  0xffffffff in ?? ()

Thread 11 (Thread 147466 (LWP 872)):
#0  0x4116e5f4 in __pthread_sigsuspend () from /lib/libpthread.so.0
#1  0x4116e3b8 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
#2  0x00000020 in ?? ()
#3  0xbe7ff968 in ?? ()
#4  0xffffffff in ?? ()

Thread 10 (Thread 131081 (LWP 871)):
#0  0x4116e5f4 in __pthread_sigsuspend () from /lib/libpthread.so.0
#1  0x4116e3b8 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
#2  0x00000020 in ?? ()
#3  0xbe9ff968 in ?? ()

Thread 9 (Thread 114696 (LWP 870)):
#0  0x41341c36 in nanosleep () from /lib/libc.so.6

Thread 8 (Thread 98311 (LWP 869)):
#0  0x41341c36 in nanosleep () from /lib/libc.so.6

Thread 7 (Thread 81926 (LWP 868)):
#0  0x41341c36 in nanosleep () from /lib/libc.so.6

Thread 6 (Thread 65541 (LWP 867)):
#0  0x41341c36 in nanosleep () from /lib/libc.so.6
#1  0x00000014 in ?? ()
#2  0x4136b6ba in usleep () from /lib/libc.so.6
#3  0x403135a6 in TVRec::RunTV() (this=0x80cfa60) at tv_rec.cpp:794
#4  0x4031354f in TVRec::EventThread(void*) (param=0xfffffffc) at tv_rec.cpp:776
#5  0x4116be51 in pthread_start_thread () from /lib/libpthread.so.0
#6  0x4116becf in pthread_start_thread_event () from /lib/libpthread.so.0
#7  0x4137164a in clone () from /lib/libc.so.6

Thread 5 (Thread 49156 (LWP 866)):
#0  0x4136881a in poll () from /lib/libc.so.6
#1  0x4034e268 in DVBSections::ThreadLoop() (this=0x80d2d08) at dvbsections.cpp:189
#2  0x4034e1df in DVBSections::ThreadHelper(void*) (cls=0xfffffffc) at dvbsections.cpp:174
#3  0x4116be51 in pthread_start_thread () from /lib/libpthread.so.0
#4  0x4116becf in pthread_start_thread_event () from /lib/libpthread.so.0
#5  0x4137164a in clone () from /lib/libc.so.6

Thread 4 (Thread 32771 (LWP 863)):
#0  0x41341c36 in nanosleep () from /lib/libc.so.6
#1  0x00000014 in ?? ()
#2  0x4136b6ba in usleep () from /lib/libc.so.6
#3  0x403135a6 in TVRec::RunTV() (this=0x80ca550) at tv_rec.cpp:794
#4  0x4031354f in TVRec::EventThread(void*) (param=0xfffffffc) at tv_rec.cpp:776
#5  0x4116be51 in pthread_start_thread () from /lib/libpthread.so.0
#6  0x4116becf in pthread_start_thread_event () from /lib/libpthread.so.0
#7  0x4137164a in clone () from /lib/libc.so.6

Thread 3 (Thread 16386 (LWP 862)):
#0  0x4136881a in poll () from /lib/libc.so.6
#1  0x4034e268 in DVBSections::ThreadLoop() (this=0x80cb140) at dvbsections.cpp:189
#2  0x4034e1df in DVBSections::ThreadHelper(void*) (cls=0xfffffffc) at dvbsections.cpp:174
#3  0x4116be51 in pthread_start_thread () from /lib/libpthread.so.0
#4  0x4116becf in pthread_start_thread_event () from /lib/libpthread.so.0
#5  0x4137164a in clone () from /lib/libc.so.6

Thread 2 (Thread 32769 (LWP 861)):
#0  0x4136881a in poll () from /lib/libc.so.6
#1  0x4116bb50 in __pthread_manager () from /lib/libpthread.so.0
#2  0x4116bd57 in __pthread_manager_event () from /lib/libpthread.so.0
#3  0x4137164a in clone () from /lib/libc.so.6

Thread 1 (Thread 16384 (LWP 851)):
#0  0x4136ade1 in select () from /lib/libc.so.6
#1  0x41082504 in ?? () from /usr/lib/libqt-mt.so.3
0x40648373      339         __asm __volatile(

It looks like it might have crashed doing the commercial flagging. There
was some DVB packet errors in the log and I've seen those cause MPEG
corruption which crashes the decoder before.

Is this trace useful?

Thanks
Hamish
-- 
Hamish Moffatt VK3SB <hamish at debian.org> <hamish at cloud.net.au>


More information about the mythtv-dev mailing list