[mythtv] MPEG decoder crash

Hamish Moffatt hamish at cloud.net.au
Mon Mar 1 16:30:01 EST 2004


Here's a report for a crash. It looks like mythbackend was running
post-recording commercial flagging when it happened. The log ends:

2004-03-02 01:40:00 Changing from RecordingOnly to None
2004-03-02 01:40:00 Closing DVB recorder
2004-03-02 01:40:00 Found changes in the todo list.
2004-03-02 01:40:01 DVB#0 ERROR - Poll failed while waiting for Section
          (4) Interrupted system call
2004-03-02 01:40:01 DVB#1 ERROR - Poll failed while waiting for Section
          (4) Interrupted system call
Input #0, mpeg, from '/video/recordings//1001_20040302002700_20040302013000.nuv':
  Stream #0.0: Video: mpeg2video, 720x576, 25.00 fps
  Stream #0.1: Audio: mp2, 48000 Hz, stereo, 256 kb/s
[mpeg2video @ 0x8100098]concealing errors
[mpeg2video @ 0x8100098]Warning MVs not available
[mpeg2video @ 0x8100098]invalid mb type in I Frame at 35 14
[mpeg2video @ 0x8100098]concealing errors
[mpeg2video @ 0x8100098]slice mismatch
[mpeg2video @ 0x8100098]concealing errors
[mpeg2video @ 0x8100098]ac-tex damaged at 40 25
[mpeg2video @ 0x8100098]ac-tex damaged at 3 26
[mpeg2video @ 0x8100098]concealing errors
[mpeg2video @ 0x8100098]00 motion_type at 33 11
[mpeg2video @ 0x8100098]concealing errors
[mpeg2video @ 0x8100098]Warning MVs not available
[mpeg2video @ 0x8100098]ac-tex damaged at 23 33
[mpeg2video @ 0x8100098]concealing errors
[mpeg2video @ 0x8100098]mb incr damaged
[mpeg2video @ 0x8100098]concealing errors
[mpeg2video @ 0x8100098]00 motion_type at 9 6
[mpeg2video @ 0x8100098]concealing errors
[mpeg2video @ 0x8100098]Warning MVs not available
[mpeg2video @ 0x8100098]00 motion_type at 32 18
[mpeg2video @ 0x8100098]concealing errors
[mpeg2video @ 0x8100098]00 motion_type at 24 24
[mpeg2video @ 0x8100098]concealing errors
[mpeg2video @ 0x8100098]invalid cbp at 21 22
[mpeg2video @ 0x8100098]concealing errors
[mpeg2video @ 0x8100098]ac-tex damaged at 39 17
[mpeg2video @ 0x8100098]concealing errors
[mpeg2video @ 0x8100098]00 motion_type at 29 15
[mpeg2video @ 0x8100098]concealing errors
[mpeg2video @ 0x8100098]00 motion_type at 43 16
[mpeg2video @ 0x8100098]concealing errors
[mpeg2video @ 0x8100098]ac-tex damaged at 9 14
[mpeg2video @ 0x8100098]concealing errors
[mpeg2video @ 0x8100098]00 motion_type at 17 25
[mpeg2video @ 0x8100098]concealing errors
[mpeg2video @ 0x8100098]ac-tex damaged at 11 0
[mpeg2video @ 0x8100098]concealing errors

gdb shows:

mythtv at tv:~$ gdb /usr/bin/mythbackend
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...
(gdb) set args --logfile /var/log/mythtv/mythbackend.log
(gdb) run
Starting program: /usr/bin/mythbackend --logfile /var/log/mythtv/mythbackend.log
[New Thread 16384 (LWP 1637)]
[New Thread 32769 (LWP 1647)]
[New Thread 16386 (LWP 1648)]
[New Thread 32771 (LWP 1649)]
[New Thread 49156 (LWP 1652)]
[New Thread 65541 (LWP 1653)]
[New Thread 81926 (LWP 1654)]
[New Thread 98311 (LWP 1655)]
[New Thread 114696 (LWP 1656)]
[New Thread 131081 (LWP 1657)]
[New Thread 147466 (LWP 1658)]
[New Thread 163851 (LWP 1659)]
[New Thread 180236 (LWP 1660)]
[New Thread 196621 (LWP 1661)]
[New Thread 213006 (LWP 1697)]
[New Thread 229391 (LWP 1698)]
[New Thread 245776 (LWP 1716)]
[New Thread 262161 (LWP 1718)]
[New Thread 278546 (LWP 1758)]
[New Thread 294931 (LWP 1759)]
[New Thread 311316 (LWP 1760)]
[New Thread 327701 (LWP 1761)]
[New Thread 344086 (LWP 1794)]
[New Thread 360471 (LWP 1796)]
[New Thread 376856 (LWP 1825)]
[New Thread 393241 (LWP 1827)]
[New Thread 409626 (LWP 1859)]
[New Thread 426011 (LWP 1860)]
[New Thread 442396 (LWP 1893)]
[New Thread 458781 (LWP 1895)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 442396 (LWP 1893)]
0x40647d04 in put_pixels16_y2_mmx2 (
    block=0x42398068 "\n\031\021\026\023\024\023\017\025\023\022\021\021\020\016\r\016\f\023\017\024\024\031\025\024\023\023\023\024\024\025\024\025\024\026\025\023\017\024\024\020\023\023\021\026\026\022\027\017\022\026\020\027\023\023\017\017\025\027\022\024\024\023\022\025\027\022\030\025\023\023\017\024\022\023\022\023\022\021\025\016\r\f\f\f\f\f\f\f\r\016\r\016\016\016\r\017\017\017\016\016\017\017\017\v\f\r\r\016\017\017\016\016\016\016\016\016\r\016\017\016\016\017\r\016\017\017\017\017\016\016\r\017\016\016\r\021\021\r\r\017\020\r\r\r\017\023\024\022\024\024\026\017\022\023\024\026\023\023\022\023\022\023\024\020\020\016\016\022\023\017\020\020\017\r\r\017\022\024\016\r\r\016\020\r\016\020\016\021\020\020\017\v\f\r\016\020\022\020\f"..., pixels=0x422ffd98 "", line_size=720, h=16)
    at dsputil_mmx_avg.h:196
196     dsputil_mmx_avg.h: No such file or directory.
        in dsputil_mmx_avg.h
Current language:  auto; currently c

And the backtrace:

Thread 30 (Thread 458781 (LWP 1895)):
#0  0x41341c36 in nanosleep () from /lib/libc.so.6

Thread 29 (Thread 442396 (LWP 1893)):
#0  0x40647d04 in put_pixels16_y2_mmx2 (block=0x42398068 "\n\031\021\026\023\024\023\017\025\023\022\021\021\020\016\r\016\f\023\017\024\024\031\025\024\023\023\023\024\024\025\024\025\024\026\025\023\017\024\024\020\023\023\021\026\026\022\027\017\022\026\020\027\023\023\017\017\025\027\022\024\024\023\022\025\027\022\030\025\023\023\017\024\022\023\022\023\022\021\025\016\r\f\f\f\f\f\f\f\r\016\r\016\016\016\r\017\017\017\016\016\017\017\017\v\f\r\r\016\017\017\016\016\016\016\016\016\r\016\017\016\016\017\r\016\017\017\017\017\016\016\r\017\016\016\r\021\021\r\r\017\020\r\r\r\017\023\024\022\024\024\026\017\022\023\024\026\023\023\022\023\022\023\024\020\020\016\016\022\023\017\020\020\017\r\r\017\022\024\016\r\r\016\020\r\016\020\016\021\020\020\017\v\f\r\016\020\022\020\f"..., pixels=0x422ffd98 "", line_size=720, h=16) at dsputil_mmx_avg.h:196
#1  0x405098ac in mpeg_motion (s=0x8125b00, dest_y=0x42398068 "\n\031\021\026\023\024\023\017\025\023\022\021\021\020\016\r\016\f\023\017\024\024\031\025\024\023\023\023\024\024\025\024\025\024\026\025\023\017\024\024\020\023\023\021\026\026\022\027\017\022\026\020\027\023\023\017\017\025\027\022\024\024\023\022\025\027\022\030\025\023\023\017\024\022\023\022\023\022\021\025\016\r\f\f\f\f\f\f\f\r\016\r\016\016\016\r\017\017\017\016\016\017\017\017\v\f\r\r\016\017\017\016\016\016\016\016\016\r\016\017\016\016\017\r\016\017\017\017\017\016\016\r\017\016\016\r\021\021\r\r\017\020\r\r\r\017\023\024\022\024\024\026\017\022\023\024\026\023\023\022\023\022\023\024\020\020\016\016\022\023\017\020\020\017\r\r\017\022\024\016\r\r\016\020\r\016\020\016\021\020\020\017\v\f\r\016\020\022\020\f"..., dest_cb=0x423fd438 "\200yxzxxyy{wvuvvvyvxvxuzwyy{{zzyurtwyyyzxvyyywxwxwwwwxxxxxyxxxxwxwzyzzyyxxxzxwvyxyvvvvvuvuwwwwvwxy{||||}|{xxyyyyzzzywwwvwvstvvvvuutttttuuuttttuuuusuttttttvwwvvvwwwuuuuvvvwwvuuuuuuutttuuuuuuvvvwwsuuvwwwx"..., dest_cr=0x42416938 "\204\205\206\207\210\207\207\206\207\207\206\205\204\204\203\202\206\205\203\204\210\202\202\203\204\205\204\203\203\202\204\206\203\202\203\204\202\201\204\205\204\205\205\205\205\205\205\205\206\206\206\205\205\205\205\206\206\206\206\206\207\207\207\207\203\203\203\203\204\204\206\207\204\204\206\206\207\206\207\207\211\211\210\210\210\205\205\205\207\206\204\204\204\205\205\205\203\203\205\204\206\205\206\205\203\203\204\204\204\204\205\205\205\206\207\211\213\215\206\206\212\212\212\212\212\212\212\212\213\213\213\212\211\212\213\212\212\213\212\211\212\213\212\213\211\212\212\212\212\212\212\212\212\207\206\210\214\215\213\212\214\214\214\213\213\213\212\212\212\212\211\212\212\213\212\212\211\212\213\213\213\213\213\213\214\213\213\213\213\213\212\212\214\213\213\212\212\211\210\207"..., dest_offset=0, ref_picture=0x8125bdc, src_offset=0, field_based=0, pix_op=0x812621c, motion_x=0, motion_y=-1, h=16) at mpegvideo.c:2354
#2  0x40505151 in MPV_motion (s=0x8125b00, dest_y=0x42398068 "\n\031\021\026\023\024\023\017\025\023\022\021\021\020\016\r\016\f\023\017\024\024\031\025\024\023\023\023\024\024\025\024\025\024\026\025\023\017\024\024\020\023\023\021\026\026\022\027\017\022\026\020\027\023\023\017\017\025\027\022\024\024\023\022\025\027\022\030\025\023\023\017\024\022\023\022\023\022\021\025\016\r\f\f\f\f\f\f\f\r\016\r\016\016\016\r\017\017\017\016\016\017\017\017\v\f\r\r\016\017\017\016\016\016\016\016\016\r\016\017\016\016\017\r\016\017\017\017\017\016\016\r\017\016\016\r\021\021\r\r\017\020\r\r\r\017\023\024\022\024\024\026\017\022\023\024\026\023\023\022\023\022\023\024\020\020\016\016\022\023\017\020\020\017\r\r\017\022\024\016\r\r\016\020\r\016\020\016\021\020\020\017\v\f\r\016\020\022\020\f"..., dest_cb=0x423fd438 "\200yxzxxyy{wvuvvvyvxvxuzwyy{{zzyurtwyyyzxvyyywxwxwwwwxxxxxyxxxxwxwzyzzyyxxxzxwvyxyvvvvvuvuwwwwvwxy{||||}|{xxyyyyzzzywwwvwvstvvvvuutttttuuuttttuuuusuttttttvwwvvvwwwuuuuvvvwwvuuuuuuutttuuuuuuvvvwwsuuvwwwx"..., dest_cr=0x42416938 "\204\205\206\207\210\207\207\206\207\207\206\205\204\204\203\202\206\205\203\204\210\202\202\203\204\205\204\203\203\202\204\206\203\202\203\204\202\201\204\205\204\205\205\205\205\205\205\205\206\206\206\205\205\205\205\206\206\206\206\206\207\207\207\207\203\203\203\203\204\204\206\207\204\204\206\206\207\206\207\207\211\211\210\210\210\205\205\205\207\206\204\204\204\205\205\205\203\203\205\204\206\205\206\205\203\203\204\204\204\204\205\205\205\206\207\211\213\215\206\206\212\212\212\212\212\212\212\212\213\213\213\212\211\212\213\212\212\213\212\211\212\213\212\213\211\212\212\212\212\212\212\212\212\207\206\210\214\215\213\212\214\214\214\213\213\213\212\212\212\212\211\212\212\213\212\212\211\212\213\213\213\213\213\213\214\213\213\213\213\213\212\212\214\213\213\212\212\211\210\207"..., dir=0, ref_picture=0x8125bdc, pix_op=0x812621c, qpix_op=0x8126334) at mpegvideo.c:2779
#3  0x404ff474 in MPV_decode_mb (s=0x8125b00, block=0x80d9650) at mpegvideo.c:3145
#4  0x405f2847 in guess_mv (s=0x8125b00) at error_resilience.c:38
#5  0x405f0161 in ff_er_frame_end (s=0x8125b00) at error_resilience.c:909
#6  0x405d5499 in slice_end (avctx=0x5a0, pict=0xbc3df884) at mpeg12.c:2311
#7  0x405d35cc in mpeg_decode_frame (avctx=0x8100098, data=0xbc3df884, data_size=0xbc3df83c, buf=0x421d3008 "", buf_size=45823) at mpeg12.c:2644
#8  0x404f86e7 in avcodec_decode_video (avctx=0x8100098, picture=0x5a0, got_picture_ptr=0xbc3df83c, buf=0x5a0 <Address 0x5a0 out of bounds>, buf_size=1440) at utils.c:466
#9  0x402963ee in AvFormatDecoder::GetFrame(int) (this=0x80d3240, onlyvideo=1) at avformatdecoder.cpp:1156
#10 0x40182728 in NuppelVideoPlayer::GetFrame(int, bool) (this=0x81081d8, onlyvideo=1, unsafe=true) at NuppelVideoPlayer.cpp:650
#11 0x4018bcb4 in NuppelVideoPlayer::FlagCommercials(bool, bool) (this=0x81081d8, showPercentage=false, fullSpeed=false) at NuppelVideoPlayer.cpp:3241
#12 0x4031d5a0 in TVRec::DoFlagCommercialsThread() (this=0x0) at tv_rec.cpp:2088
#13 0x4031d7bf in TVRec::FlagCommercialsThread(void*) (param=0x5a0) at tv_rec.cpp:2105
#14 0x4116be51 in pthread_start_thread () from /lib/libpthread.so.0
#15 0x4116becf in pthread_start_thread_event () from /lib/libpthread.so.0
#16 0x4137164a in clone () from /lib/libc.so.6

Thread 14 (Thread 196621 (LWP 1661)):
#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 1660)):
#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 1659)):
#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 1658)):
#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 1657)):
#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 1656)):
#0  0x41341c36 in nanosleep () from /lib/libc.so.6

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

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

Thread 6 (Thread 65541 (LWP 1653)):
#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 1652)):
#0  0x41341c36 in nanosleep () from /lib/libc.so.6

Thread 4 (Thread 32771 (LWP 1649)):
#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 1648)):
#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 1647)):
#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 1637)):
#0  0x4136ade1 in select () from /lib/libc.so.6
#1  0x41082504 in ?? () from /usr/lib/libqt-mt.so.3


Is any additional information required? How can I help to debug this?

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


More information about the mythtv-dev mailing list