[MPlayer-advusers] segfault while encoding with libdv

Dominik 'Rathann' Mierzejewski dominik at rangers.eu.org
Wed May 17 23:47:49 CEST 2006


Recompiling libpostproc with -O0 instead of -O2 makes the crash go away. :(

$ cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 47
model name      : AMD Sempron(tm) Processor 3000+
stepping        : 2
cpu MHz         : 1800.000
cache size      : 128 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt lm 3dnowext 3dnow pni lahf_lm
bogomips        : 3622.65
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc

Running Fedora Core 5 64bit

kernel-2.6.16-1.2111_FC5.x86_64
glibc-2.4-8.x86_64
libdv-0.104-2.fc5.x86_64 

./configure --enable-debug=3 --prefix=/usr --bindir=/usr/bin
--libdir=/usr/lib64 --with-x11libdir=/usr/lib64
--datadir=/usr/share/mplayer --mandir=/usr/share/man --confdir=/etc/mplayer
--language=all --disable-codec=mp3lame --enable-largefiles --disable-aa
--disable-arts --disable-caca --disable-cdparanoia --disable-dga
--disable-directfb --disable-divx4linux --disable-dshow --disable-dvb
--disable-dvbhead --disable-dxr3 --disable-enca --disable-esd
--disable-faac --disable-internal-faad --disable-fribidi --disable-ggi
--disable-jack --disable-joystick --disable-ladspa --disable-lirc
--disable-mad --enable-menu --disable-openal --disable-polyp --disable-qtx
--disable-sdl --disable-smb --disable-speex --disable-svga
--disable-toolame --disable-twolame --disable-vm --disable-internal-tremor
--disable-win32 --disable-x264 --disable-theora --disable-libdts
--disable-directfb --disable-xvid --disable-gl --disable-internal-vidix

$ cat batch
run -v -ovc libdv -ffourcc DVSD -vf scale -oac pcm -o test.avi -dvd-device /dev/hdc dvd:// -noautoexpand
bt
disass $pc-32 $pc+32
info all-registers

$ gdb --batch --command=batch ./mencoder
Using host libthread_db library "/lib64/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 46912502348496 (LWP 28311)]
MEncoder dev-Fedora-GS-CVS-060517-22:47-4.1.0 (C) 2000-2006 MPlayer Team
CPU: Advanced Micro Devices Athlon 64 Newcastle,Winchester,San Diego,Venice; Sempron Palermo (Family: 15, Stepping: 2)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

init_freetype
get_path('font/font.desc') -> '/home/dominik/.mplayer/font/font.desc'
font: can't open file: /home/dominik/.mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
URL: dvd://
Reading disc structure, please wait...
There are 1 titles on this DVD.
There are 6 chapters in this DVD title.
There are 1 angles in this DVD title.
DVD successfully opened.
[open] audio stream: 0 audio format: ac3 (stereo) language: unknown aid: 128
[open] number of audio channels on disk: 1.
[open] number of subtitles on disk: 0
DVD start cell: 0  pack: 0x0-0x27A6  
DVD start=0 end=1100461  
STREAM: [null] dvd://
STREAM: Description: DVD stream
STREAM: Author: 
STREAM: Comment: 
success: format: 0  data: 0x0 - 0x86556800
DVD Seek! lba=0x0  cell=0  packs: 0x0-0x27A6  
Angle-seek synced by cell/vob IDN search!  
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename dvd:// ext: (null)
DVD Seek! lba=0x0  cell=0  packs: 0x0-0x27A6  
Angle-seek synced by cell/vob IDN search!  
Checking for Nullsoft Streaming Video
DVD Seek! lba=0x0  cell=0  packs: 0x0-0x27A6  
Angle-seek synced by cell/vob IDN search!  
Checking for MOV
Checking for VIVO
header block 1 size: 0
Checking for PVA
Checking for MPEG-TS...
TRIED UP TO POSITION 69581, FOUND 47, packet_size= 0, SEEMS A TS? 0
DVD Seek! lba=0x21  cell=0  packs: 0x0-0x27A6  
Angle-seek synced by cell/vob IDN search!  
DVD Seek! lba=0x0  cell=0  packs: 0x0-0x27A6  
Angle-seek synced by cell/vob IDN search!  
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream: ch=0 size=1140851708
LMLM4 Stream Format not found
system stream synced at 0xD (13)!
==> Found video stream: 0
DVD Seek! lba=0x864DC  cell=54  packs: 0x85D8B-0x88533  
Angle-seek synced by cell/vob IDN search!  
DVD Seek! lba=0x10C9B8  cell=108  packs: 0x10BB3F-0x10CAAD  
stream_seek: WARNING! Can't seek to 0x864DC6E0 !
DVD Seek! lba=0x0  cell=0  packs: 0x0-0x27A6  
Angle-seek synced by cell/vob IDN search!  
MPEG-PS file format detected.
==> Found audio stream: 128
Searching for sequence header... OK!
VIDEO:  MPEG2  720x576  (aspect 2)  25.000 fps  9200.0 kbps (1150.0 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
dec_audio: Allocating 3840 bytes for input buffer.
dec_audio: Allocating 6144 + 65536 = 71680 bytes for output buffer.
AC3: 2.0 (stereo)  48000 Hz  256.0 kbit/s
A52 flags before a52_frame: 0x2A
A52 flags after a52_frame: 0x2
AUDIO: 48000 Hz, 2 ch, s16le, 256.0 kbit/16.67% (ratio: 32000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
Trying filter chain: scale libdv
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
Forcing output FourCC to 44535644 [DVSD].
Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy 
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
Trying filter chain: scale libdv
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO Config (720x576->768x576,flags=0,'MPlayer',0x32315659)
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 5 -> 4

SwScaler: BICUBIC scaler, from Planar YV12 to Packed YUY2 using MMX2
SwScaler: using 4-tap MMX scaler for horizontal luminance scaling
SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling
SwScaler: using n-tap MMX scaler for vertical scaling (BGR)
SwScaler: 720x576 -> 720x576
REQ: flags=0x3  req=0x0  
*** [scale] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
Pos:   0.0s      1f ( 0%)   0fps Trem:   0min   0mb  A-V:0.000 [0:0] A/Vms 2/4 D/B/S 0/1/0 
*** [scale] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
Muxer frame buffer sending 2 frame(s) to the muxer.
Writing header...
ODML: vprp aspect is 4:3.
Writing header...
ODML: vprp aspect is 4:3.
Pos:   0.0s      2f ( 0%)   0fps Trem:   0min   0mb  A-V:0.004 [0:0] A/Vms 2/4 D/B/S 1/2/0 
*** [libdv] Allocating mp_image_t, 720x576x16bpp YUV packed, 829440 bytes

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912502348496 (LWP 28311)]
0x00000000005157ca in swScale_MMX2 (c=0xbf6840, src=0xc03b20, srcStride=0x7fffffe67e40, srcSliceY=0, srcSliceH=576, 
    dst=0xc1c440, dstStride=0x7fffffe67e50) at swscale_template.c:952
952				asm volatile(
#0  0x00000000005157ca in swScale_MMX2 (c=0xbf6840, src=0xc03b20, srcStride=0x7fffffe67e40, srcSliceY=0, 
    srcSliceH=576, dst=0xc1c440, dstStride=0x7fffffe67e50) at swscale_template.c:952
#1  0x000000000050ccf0 in sws_scale_ordered (c=) at swscale.c:2313
#2  0x00000000004620f8 in scale (sws1=) at vf_scale.c:310
#3  0x00000000004621fb in put_image (vf=0xc5dbe0, mpi=0xc03b00, pts=-9.2233720368547758e+18) at vf_scale.c:338
#4  0x000000000043ada8 in decode_video (sh_video=0xbf59d0, start=) at dec_video.c:338
#5  0x000000000040a982 in main (argc=) at mencoder.c:1323
Dump of assembler code from 0x5157aa to 0x5157ea:
0x00000000005157aa <swScale_MMX2+13194>:	jno    0x515790 <swScale_MMX2+13168>
0x00000000005157ac <swScale_MMX2+13196>:	add    (%rdi),%ecx
0x00000000005157ae <swScale_MMX2+13198>:	jno    0x515791 <swScale_MMX2+13169>
0x00000000005157b0 <swScale_MMX2+13200>:	add    (%rdi),%ecx
0x00000000005157b2 <swScale_MMX2+13202>:	jno    0x51579b <swScale_MMX2+13179>
0x00000000005157b4 <swScale_MMX2+13204>:	add    (%rdi),%ecx
0x00000000005157b6 <swScale_MMX2+13206>:	addr32 fisttpl (%edi)
0x00000000005157b9 <swScale_MMX2+13209>:	addr32 in $0xf,%al
0x00000000005157bc <swScale_MMX2+13212>:	addr32 iret 
0x00000000005157be <swScale_MMX2+13214>:	punpcklbw %mm4,%mm3
0x00000000005157c1 <swScale_MMX2+13217>:	movq   %mm1,%mm7
0x00000000005157c4 <swScale_MMX2+13220>:	punpcklbw %mm3,%mm1
0x00000000005157c7 <swScale_MMX2+13223>:	punpckhbw %mm3,%mm7
0x00000000005157ca <swScale_MMX2+13226>:	movntq %mm1,(%r10,%rax,2)
0x00000000005157cf <swScale_MMX2+13231>:	movntq %mm7,0x8(%r10,%rax,2)
0x00000000005157d5 <swScale_MMX2+13237>:	add    $0x8,%rax
0x00000000005157d9 <swScale_MMX2+13241>:	cmp    0x348(%rsp),%rax
0x00000000005157e1 <swScale_MMX2+13249>:	jb     0x515721 <swScale_MMX2+13057>
0x00000000005157e7 <swScale_MMX2+13255>:	jmpq   0x513b88 <swScale_MMX2+5992>
End of assembler dump.
rax            0x65fe0	417760
rbx            0xbf61c8	12542408
rcx            0xbf9550	12555600
rdx            0xbf95b8	12555704
rsi            0x0	0
rdi            0x20	32
rbp            0xbf67f8	0xbf67f8
rsp            0x7fffffe67a60	0x7fffffe67a60
r8             0xfffffffffffffd30	-720
r9             0xbfa5a8	12559784
r10            0x2aaaaed12040	46912565747776
r11            0x4	4
r12            0xbf6840	12544064
r13            0x0	0
r14            0xbf6908	12544264
r15            0x2d0	720
rip            0x5157ca	0x5157ca <swScale_MMX2+13226>
eflags         0x210246	2163270
cs             0x33	51
ss             0x2b	43
ds             0x0	0
es             0x0	0
fs             0x0	0
gs             0x0	0
st0            -nan(0xffc0ffc0ffc0ffc)	(raw 0xffff0ffc0ffc0ffc0ffc)
st1            -nan(0x7c00ea009c007700)	(raw 0xffff7c00ea009c007700)
st2            -nan(0xfde0fac8fd60f851)	(raw 0xfffffde0fac8fd60f851)
st3            -nan(0xffca7cea9c77)	(raw 0xffff0000ffca7cea9c77)
st4            -nan(0xff7c9c00ff7c9c)	(raw 0xffff00ff7c9c00ff7c9c)
st5            -nan(0xfb710635f83200a8)	(raw 0xfffffb710635f83200a8)
st6            -nan(0x2000200020002)	(raw 0xffff0002000200020002)
st7            -nan(0xc7ff00ca15)	(raw 0xffff000000c7ff00ca15)
fctrl          0x37f	895
fstat          0x0	0
ftag           0xaaaa	43690
fiseg          0x0	0
fioff          0x0	0
foseg          0x0	0
fooff          0x0	0
fop            0x0	0
xmm0           {f = {0x0, 0xfffffe40, 0x0, 0x0}}	{f = {0, -448, 0, 0}}
xmm1           {f = {0xfffffffe, 0x0, 0x0, 0x0}}	{f = {-2, 0.938999951, 0, 0}}
xmm2           {f = {0x0, 0x0, 0x0, 0x0}}	{f = {0.0799999982, 0, 0, 0}}
xmm3           {f = {0x2, 0x1, 0x0, 0x0}}	{f = {2, 1.28499997, 0, 0}}
xmm4           {f = {0xfffffffe, 0x0, 0x0, 0x0}}	{f = {-2, 0, 0, 0}}
xmm5           {f = {0x0, 0x0, 0x0, 0x0}}	{f = {0.0017241796, -1.25371134e-05, 0.00118732243, 0.00125386752}}
xmm6           {f = {0x1, 0xffffffff, 0x0, 0x0}}	{f = {1, -1, 0.707106769, -0.707106769}}
xmm7           {f = {0x0, 0x0, 0x0, 0x0}}	{f = {0, 0, 0.707106769, -0.707106769}}
xmm8           {f = {0x0, 0x0, 0x0, 0x0}}	{f = {2.87766611e-09, 0.0133291213, 0, 0}}
xmm9           {f = {0x0, 0x1, 0x0, 0x0}}	{f = {-2.83574902e+25, 1.92180574, 0, 0}}
xmm10          {f = {0x0, 0x1, 0x0, 0x0}}	{f = {0, 1.75, 0, 0}}
xmm11          {f = {0x53500000, 0x1, 0x0, 0x0}}	{f = {1.46601211e+13, 1.29166663, 0, 0}}
xmm12          {f = {0x0, 0x1, 0x0, 0x0}}	{f = {-3.20229453e+24, 1.00833321, 0, 0}}
xmm13          {f = {0x51500000, 0x1, 0x0, 0x0}}	{f = {1.46600876e+13, 1.54166663, 0, 0}}
xmm14          {f = {0x0, 0x0, 0x0, 0x0}}	{f = {0, 0, 0, 0}}
xmm15          {f = {0x0, 0x1, 0x0, 0x0}}	{f = {0, 1.875, 0, 0}}
mxcsr          0x1fa0	8096


-- 
MPlayer developer and RPMs maintainer: http://rpm.greysector.net/mplayer/
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
	-- from "Collected Sayings of Muad'Dib" by the Princess Irulan




More information about the MPlayer-advusers mailing list