[MPlayer-dvb] SEGV in libmpeg2, r31395.

Bill Pringlemeir bpringle at sympatico.ca
Wed Jun 23 17:19:05 CEST 2010


There is a segfault when playing certain 'TS' atsc captures.  It
appears to be related to motion compensation.

Current directory is /home/src/mplayer/
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) set args /dtv/cut/AmericanWoodshop-0619-1030.ts 
(gdb) r
Starting program: /home/src/mplayer/mplayer /dtv/cut/AmericanWoodshop-0619-1030.ts 
[Thread debugging using libthread_db enabled]
MPlayer SVN-r31528-4.3.2 (C) 2000-2010 MPlayer Team

Playing /dtv/cut/AmericanWoodshop-0619-1030.ts.
Cache fill:  0.00% (0 bytes)   
TS file format detected.
VIDEO MPEG2(pid=65) AUDIO A52(pid=68) NO SUBS (yet)!  PROGRAM N. 4
VIDEO:  MPEG2  704x480  (aspect 2)  29.970 fps  15000.0 kbps (1875.0 kbyte/s)
==========================================================================
Trying to force video codec driver family libmpeg2...
Opening video decoder: [libmpeg2] libmpeg2 MPEG 1/2 Video decoder
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
==========================================================================
Forced audio codec: ffac3
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
[New Thread 0xb4d408f0 (LWP 7031)]
[New Thread 0xb44b2b90 (LWP 7039)]
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 704x480 => 704x528 Planar YV12  [fs]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb4d408f0 (LWP 7031)]
MC_put_o_16_mmxext (dest=0xb3948020 "", ref=0x0, stride=704, height=16) at libmpeg2/motion_comp_mmx.c:544
(gdb) where
#0  MC_put_o_16_mmxext (dest=0xb3948020 "", ref=0x0, stride=704, height=16) at libmpeg2/motion_comp_mmx.c:544
#1  0x0826bec9 in motion_fr_frame_420 (decoder=0xa9adac0, motion=0xa9adb38, table=0x8e48100) at libmpeg2/slice.c:1508
#2  0x08275255 in mpeg2_slice (decoder=0xa9adac0, code=1, buffer=0xb46f3040 "\"X\b\v,") at libmpeg2/slice.c:1917
#3  0x08265972 in mpeg2_parse (mpeg2dec=0xa9adac0) at libmpeg2/decode.c:188
#4  0x082648bd in decode (sh=0xa97fca0, data=0xb481e008, len=1416, flags=0) at libmpcodecs/vd_libmpeg2.c:179
#5  0x0815441b in decode_video (sh_video=0xa97fca0, start=0xb481e008 "", in_size=1412, drop_frame=0, pts=39468.6484375) at libmpcodecs/dec_video.c:412
#6  0x080a4261 in update_video (blit_frame=0xbfdeb4a4) at mplayer.c:2440
#7  0x080a8a4e in main (argc=2, argv=0xbfdeb564) at mplayer.c:3861

The macros within libmpeg2/slice.c have me thrown off.  Recently there
was a merge in mplayer with the upstream libmpeg2 code.  I think this
was the problem.  I will retry with r31354 and see if that is helpful.

Regards,
Bill Pringlemeir.


More information about the MPlayer-dvb mailing list