[MPlayer-users] mencoder/mplayer crash

Steven M. Schultz sms at 2BSD.COM
Sun Nov 10 05:50:02 CET 2002


Hi -

	mencoder coredumps when encoding a raw DV file to divx using:

	(MPlayer also crashes at the same location when playing the raw DV
	file - it's not a type 2 file).

-----
#!/bin/sh

mencoder -vop scale=640:480,crop=696:474:8:0 \
	 -ovc lavc -lavcopts vcodec=mpeg4:vqscale=2:v4mv:vhq \
	 -oac mp3lame -lameopts br=128:abr \
	 bugs8.dv -o test.avi
------

	Backtrace and disassbled instructions requested in the DOCS/bugreports
	are below.

Script started on Sat Nov  9 20:37:23 2002
moe.1-> gdb /usr/local/bin/mencoder mencoder.core
GNU gdb 
Copyright 1998 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-unknown-bsdi4.3"...
Core was generated by `mencoder'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libdvdread.so.2...done.
Reading symbols from /usr/local/lib/libvorbis.so.0...done.
Reading symbols from /usr/local/lib/libogg.so.0...done.
Reading symbols from /usr/local/lib/libdv.so.2...done.
Reading symbols from /usr/local/lib/libfaad.so.0...done.
Reading symbols from /usr/local/lib/libxvidcore.so...done.
Reading symbols from /usr/lib/libpng.so.0...done.
Reading symbols from /usr/lib/libz.so...done.
Reading symbols from /usr/lib/libjpeg.so62...done.
Reading symbols from /shlib/libncurses.so.5...done.
Reading symbols from /usr/local/lib/libmp3lame.so.0...done.
Reading symbols from /shlib/libdl.so...done.
Reading symbols from /usr/local/lib/libdvd.so...done.
Reading symbols from /usr/local/lib/libiconv.so.2...done.
Reading symbols from /shlib/libm.so.0.0...done.
Reading symbols from /shlib/libgcc.so.1...done.
Reading symbols from /shlib/libc.so.2...done.
Reading symbols from /usr/local/lib/libpopt.so.0...done.
Reading symbols from /usr/local/lib/libgnugetopt.so.1...done.
Reading symbols from /shlib/ld-bsdi.so...done.
#0  0x818e853 in put_pixels_clamped_mmx (block=0x86485c0, 
    pixels=0x8d37e60 <Address 0x8d37e60 out of bounds>, line_size=360)
    at i386/dsputil_mmx.c:254
254             __asm __volatile(
(gdb) where
#0  0x818e853 in put_pixels_clamped_mmx (block=0x86485c0, 
    pixels=0x8d37e60 <Address 0x8d37e60 out of bounds>, line_size=360)
    at i386/dsputil_mmx.c:254
#1  0x8196729 in ff_simple_idct_put_mmx (
    dest=0x8d37e60 <Address 0x8d37e60 out of bounds>, line_size=360, 
    block=0x86485c0) at i386/simple_idct_mmx.c:1304
#2  0x8187354 in dvvideo_decode_frame (avctx=0x8447400, data=0x80465e4, 
    data_size=0x80465b4, buf=0x87ad000 "\037\a", buf_size=120000) at dv.c:479
#3  0x8124507 in avcodec_decode_video (avctx=0x8447400, picture=0x80465e4, 
    got_picture_ptr=0x80465b4, buf=0x87ad000 "\037\a", buf_size=120000)
    at utils.c:139
#4  0x808617d in decode (sh=0x8293300, data=0x87ad000, len=120000, flags=0)
    at vd_ffmpeg.c:537
#5  0x807dd06 in decode_video (sh_video=0x8293300, start=0x87ad000 "\037\a", 
    in_size=120000, drop_frame=0) at dec_video.c:266
#6  0x805cfe2 in main (argc=14, argv=0x8047a68) at mencoder.c:1021
#7  0x805ab43 in __start ()

(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x818e833 to 0x818e873:
0x818e833 <put_pixels_clamped_mmx+27>:  movq   0x18(%edx),%mm3
0x818e837 <put_pixels_clamped_mmx+31>:  movq   0x20(%edx),%mm4
0x818e83b <put_pixels_clamped_mmx+35>:  movq   0x28(%edx),%mm5
0x818e83f <put_pixels_clamped_mmx+39>:  movq   0x30(%edx),%mm6
0x818e843 <put_pixels_clamped_mmx+43>:  movq   0x38(%edx),%mm7
0x818e847 <put_pixels_clamped_mmx+47>:  packuswb %mm1,%mm0
0x818e84a <put_pixels_clamped_mmx+50>:  packuswb %mm3,%mm2
0x818e84d <put_pixels_clamped_mmx+53>:  packuswb %mm5,%mm4
0x818e850 <put_pixels_clamped_mmx+56>:  packuswb %mm7,%mm6
0x818e853 <put_pixels_clamped_mmx+59>:  movq   %mm0,(%ecx)
0x818e856 <put_pixels_clamped_mmx+62>:  movq   %mm2,(%ecx,%eax,1)
0x818e85a <put_pixels_clamped_mmx+66>:  movq   %mm4,(%ecx,%eax,2)
0x818e85e <put_pixels_clamped_mmx+70>:  movq   %mm6,(%ecx,%ebx,1)
0x818e862 <put_pixels_clamped_mmx+74>:  lea    (%ecx,%eax,4),%ecx
0x818e865 <put_pixels_clamped_mmx+77>:  add    $0x40,%edx
0x818e868 <put_pixels_clamped_mmx+80>:  movq   (%edx),%mm0
0x818e86b <put_pixels_clamped_mmx+83>:  movq   0x8(%edx),%mm1
0x818e86f <put_pixels_clamped_mmx+87>:  movq   0x10(%edx),%mm2
End of assembler dump.

(gdb) info all-registers
eax            0x168    360
ecx            0x8d37e60        148078176
edx            0x86485c0        140805568
ebx            0x438    1080
esp            0x8045f30        0x8045f30
ebp            0x8045f34        0x8045f34
esi            0x168    360
edi            0x8d37e60        148078176
eip            0x818e853        0x818e853
ps             0x210217 2163223
cs             0x1f     31
ss             0x27     39
ds             0x27     39
es             0x27     39
fs             0x27     39
gs             0x27     39

(gdb) moe.2-> exit

Script done on Sat Nov  9 20:38:19 2002




More information about the MPlayer-users mailing list