[MPlayer-users] Segfault in mplayer
qsd at rogers.com
qsd at rogers.com
Sun Mar 11 03:04:30 CET 2007
Hi,
I just tried to watch one movie, and mplayer keeps getting segfaults
during playback... It only happens with this particular movie, rarely at
the same position in the movie, but I haven't been able to watch more
than about 15 min without mplayer crashing... And it works just fine
with all the other movies.
It _could_ be a problem with the movie, but still, it's not supposed to
crash... And since it crashes at random positions, playing it just fine
on the next run, or playing any part after skipping to it, I'm pretty
sure that's a bug in mplayer.
The system is amd64 debian, kernel 2.6.17.7, nvidia video, alsa sound.
Debug info from gdb is included below. I checked out the latest mplayer
version just before running this.
Thanks in advance for any help.
======================================================
(gdb) run '/data/movies/The Departed.mkv' -subfont-text-scale 2
Starting program: /home/qsd/downloads/mplayer/mplayer/mplayer '/data/movies/The Departed.mkv' -subfont-text-scale 2
[Thread debugging using libthread_db enabled]
[New Thread 47174546336048 (LWP 1577)]
MPlayer dev-SVN-r22505-4.1.2 (C) 2000-2007 MPlayer Team
CPU: AMD Opteron(tm) Processor 148 (Family: 15, Model: 39, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
Playing /data/movies/The Departed.mkv.
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: audio (A_AC3), -aid 0, -alang eng
[mkv] Track ID 3: subtitles (S_TEXT/UTF8), -sid 0, -slang eng
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO: [avc1] 1280x528 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 6 ch, s16le, 448.0 kbit/9.72% (ratio: 56000->576000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
AO: [oss] 48000Hz 6ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 1280 x 528 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 2.42:1 - prescaling to correct movie aspect.
VO: [xv] 1280x528 => 1280x528 Planar YV12
[Mixer] No hardware mixing, inserting volume filter. 1% 0.7% 0 0
A:5096.2 V:5096.2 A-V: 0.001 ct: -0.203 1094/1094 28% 1% 0.8% 0 0
A:5108.1 V:5108.1 A-V: 0.001 ct: -0.203 1379/1379 27% 1% 0.8% 0 0
A:5120.8 V:5120.8 A-V: 0.001 ct: -0.203 1684/1684 26% 1% 0.8% 0 0
A:5137.0 V:5137.0 A-V: 0.001 ct: -0.203 2071/2071 26% 1% 0.8% 0 0
A:5140.8 V:5140.8 A-V: -0.000 ct: -0.203 2162/2162 26% 1% 0.8% 0 0
A:5155.0 V:5155.0 A-V: -0.000 ct: -0.203 2504/2504 26% 1% 0.8% 0 0
A:5160.7 V:5160.7 A-V: 0.000 ct: -0.203 2639/2639 26% 1% 0.8% 0 0
A:5164.7 V:5164.7 A-V: 0.001 ct: -0.203 2736/2736 26% 1% 0.8% 0 0
A:5169.8 V:5169.8 A-V: 0.000 ct: -0.203 2857/2857 26% 1% 0.8% 0 0
A:5193.2 V:5193.2 A-V: 0.001 ct: -0.203 3418/3418 26% 1% 0.8% 0 0
A:5208.7 V:5208.7 A-V: 0.000 ct: -0.203 3791/3791 25% 1% 0.8% 0 0
A:5262.1 V:5262.1 A-V: 0.001 ct: -0.203 5072/5072 26% 1% 0.8% 0 0
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47174546336048 (LWP 1577)]
0x00000000006e8e3e in put_h264_chroma_mc4_mmx (
dst=0x2aaaabb19004 "~~~~}}}}}}}}", '~' <repeats 40 times>, "\177\177\177\177", '~' <repeats 15 times>, '\177' <repeats 28 times>, "\200\200\177\200\200\200\177\200\200", '\177' <repeats 24 times>, '~' <repeats 15 times>, '\177' <repeats 12 times>, "\201\201\200\200\200\200\200\201\201\201\201\201\201\201\201\200\200\200\200\200\200\201\201\201\201\200\200\200\200\177\177\177\177\200\200\200\200\200\200\200\201"...,
src=0x2aaaab356005 <Address 0x2aaaab356005 out of bounds>, stride=656, h=2, x=7, y=0) at i386/dsputil_h264_template_mmx.c:187
187 asm volatile(
(gdb) bt
#0 0x00000000006e8e3e in put_h264_chroma_mc4_mmx (
dst=0x2aaaabb19004 "~~~~}}}}}}}}", '~' <repeats 40 times>, "\177\177\177\177", '~' <repeats 15 times>, '\177' <repeats 28 times>, "\200\200\177\200\200\200\177\200\200", '\177' <repeats 24 times>, '~' <repeats 15 times>, '\177' <repeats 12 times>, "\201\201\200\200\200\200\200\201\201\201\201\201\201\201\201\200\200\200\200\200\200\201\201\201\201\200\200\200\200\177\177\177\177\200\200\200\200\200\200\200\201"...,
src=0x2aaaab356005 <Address 0x2aaaab356005 out of bounds>, stride=656, h=2, x=7, y=0) at i386/dsputil_h264_template_mmx.c:187
#1 0x0000000000755280 in mc_part (h=0x2aaaaab31010, n=4, square=0, chroma_height=8, delta=10496, dest_y=<value optimized out>,
dest_cb=0x2aaaabb17e10 '~' <repeats 186 times>, "}}", '~' <repeats 12 times>...,
dest_cr=0x2aaaabb44e10 '}' <repeats 16 times>, '\200' <repeats 184 times>..., x_offset=4, y_offset=0, qpix_put=0x2aaaaab32670,
chroma_put=0x6e8db0 <put_h264_chroma_mc4_mmx>, qpix_avg=0x2aaaaab32870, chroma_avg=0x6e90c0 <avg_h264_chroma_mc4_mmx2>,
weight_op=0x2aaaaab32e00, weight_avg=0x2aaaaab32e50, list0=8192, list1=0) at h264.c:2801
#2 0x0000000000756162 in hl_motion (h=0x2aaaaab31010,
dest_y=0x2aaaabadb310 "\"\"\"\"\"\"\"\"\033\033\033\033\033\032\033\033", '\037' <repeats 16 times>, '\027' <repeats 23 times>, "\030\030\030\030\027\027\030\030\027\027\030\030", '\027' <repeats 32 times>, "\026\026", '\027' <repeats 24 times>, "\026\026\027\030\030\027\027\027\030", '\027' <repeats 18 times>, "\026\026\027\027\027\027\027\026\027\027\026\026\026\026\026", '\027' <repeats 20 times>, "\026\026\027\027\027\027\027\027\027\027\027\027\026"..., dest_cb=0x2aaaabb17e10 '~' <repeats 186 times>, "}}", '~' <repeats 12 times>...,
dest_cr=0x2aaaabb44e10 '}' <repeats 16 times>, '\200' <repeats 184 times>..., qpix_put=0x2aaaaab325f0, chroma_put=0x2aaaaab325a8,
qpix_avg=0x2aaaaab327f0, chroma_avg=0x2aaaaab325d8, weight_op=0x2aaaaab32df0, weight_avg=0x2aaaaab32e40) at h264.c:2976
#3 0x0000000000757da1 in hl_decode_mb (h=0x2aaaaab31010) at h264.c:3669
#4 0x00000000007592de in decode_slice (h=0x2aaaabb19004) at h264.c:7411
#5 0x0000000000759a77 in decode_nal_units (h=0x2aaaaab31010, buf=0xf8ddb0 "", buf_size=52207) at h264.c:8209
#6 0x000000000075a99d in decode_frame (avctx=0xdd1b60, data=0xdd1a40, data_size=0x7fff010aa9bc, buf=0xf8ddb0 "", buf_size=52207) at h264.c:8354
#7 0x00000000005d5163 in avcodec_decode_video (avctx=0xdd1b60, picture=0xdd1a40, got_picture_ptr=0x7fff010aa9bc, buf=0xf8ddb0 "", buf_size=52207)
at utils.c:897
#8 0x00000000004da1ef in decode (sh=0xdcabd0, data=0xf8ddb0, len=52207, flags=0) at vd_ffmpeg.c:784
#9 0x00000000004a4089 in decode_video (sh_video=0xdcabd0, start=0xf8ddb0 "", in_size=52207, drop_frame=0, pts=5262.18212890625) at dec_video.c:369
#10 0x000000000044adba in main (argc=0, argv=0x7fff010abc48) at mplayer.c:2040
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x6e8e1e to 0x6e8e5e:
0x00000000006e8e1e <put_h264_chroma_mc4_mmx+110>: movq %mm1,%mm0
0x00000000006e8e21 <put_h264_chroma_mc4_mmx+113>: pmullw %mm5,%mm6
0x00000000006e8e24 <put_h264_chroma_mc4_mmx+116>: pmullw %mm3,%mm1
0x00000000006e8e27 <put_h264_chroma_mc4_mmx+119>: paddw 3046546(%rip),%mm6 # 0x9d0ac0 <ff_pw_32>
0x00000000006e8e2e <put_h264_chroma_mc4_mmx+126>: paddw %mm6,%mm1
0x00000000006e8e31 <put_h264_chroma_mc4_mmx+129>: psrlw $0x6,%mm1
0x00000000006e8e35 <put_h264_chroma_mc4_mmx+133>: packuswb %mm1,%mm1
0x00000000006e8e38 <put_h264_chroma_mc4_mmx+136>: movd %mm1,(%rdi)
0x00000000006e8e3b <put_h264_chroma_mc4_mmx+139>: add %rdx,%rdi
0x00000000006e8e3e <put_h264_chroma_mc4_mmx+142>: movd (%rsi),%mm6
0x00000000006e8e41 <put_h264_chroma_mc4_mmx+145>: movd 0x1(%rsi),%mm1
0x00000000006e8e45 <put_h264_chroma_mc4_mmx+149>: add %rdx,%rsi
0x00000000006e8e48 <put_h264_chroma_mc4_mmx+152>: punpcklbw %mm7,%mm6
0x00000000006e8e4b <put_h264_chroma_mc4_mmx+155>: punpcklbw %mm7,%mm1
0x00000000006e8e4e <put_h264_chroma_mc4_mmx+158>: pmullw %mm4,%mm6
0x00000000006e8e51 <put_h264_chroma_mc4_mmx+161>: pmullw %mm2,%mm1
0x00000000006e8e54 <put_h264_chroma_mc4_mmx+164>: paddw %mm6,%mm1
0x00000000006e8e57 <put_h264_chroma_mc4_mmx+167>: movq %mm1,%mm6
0x00000000006e8e5a <put_h264_chroma_mc4_mmx+170>: pmullw %mm5,%mm0
0x00000000006e8e5d <put_h264_chroma_mc4_mmx+173>: pmullw %mm3,%mm1
End of assembler dump.
(gdb) info all-registers
rax 0x2aaaab434705 46912506119941
rbx 0x2aaaaab648e8 46912496879848
rcx 0x2 2
rdx 0x290 656
rsi 0x2aaaab356005 46912505208837
rdi 0x2aaaabb19004 46912513347588
rbp 0x2aaaaab31010 0x2aaaaab31010
rsp 0x7fff010aa248 0x7fff010aa248
r8 0x7 7
r9 0x0 0
r10 0x290 656
r11 0x520 1312
r12 0xe 14
r13 0x26d 621
r14 0x108 264
r15 0x2aaaab45eb85 46912506293125
rip 0x6e8e3e 0x6e8e3e <put_h264_chroma_mc4_mmx+142>
eflags 0x10202 [ IF RF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
st0 -nan(0x3f003f003f003f0) (raw 0xffff03f003f003f003f0)
st1 -nan(0x7e7e7e7e7e7e7e7e) (raw 0xffff7e7e7e7e7e7e7e7e)
st2 -nan(0x7000700070007) (raw 0xffff0007000700070007)
st3 <invalid float value> (raw 0xffff0000000000000000)
st4 -nan(0x1000100010001) (raw 0xffff0001000100010001)
st5 -nan(0x8000800080008) (raw 0xffff0008000800080008)
st6 -nan(0x1fa01fa01fa01fa0) (raw 0xffff1fa01fa01fa01fa0)
st7 <invalid float value> (raw 0xffff0000000000000000)
fctrl 0x37f 895
fstat 0x20 32
ftag 0xaaaa 43690
fiseg 0x0 0
fioff 0x0 0
foseg 0x0 0
fooff 0x0 0
fop 0x0 0
xmm0 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x16, 0x1, 0x0, 0x0, 0x16, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x116, 0x0, 0x116, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x116, 0x116, 0x0, 0x0}, v2_int64 = {0x11600000116,
0x0}, uint128 = 0x00000000000000000000011600000116}
xmm1 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm2 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm3 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm4 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0xb3, 0xe1, 0x1f, 0xb9, 0x68, 0x22, 0x5e, 0x3c, 0x77, 0xb4,
0x1e, 0xbc, 0x6f, 0x1f, 0x1b, 0x3c}, v8_int16 = {0xe1b3, 0xb91f, 0x2268, 0x3c5e, 0xb477, 0xbc1e, 0x1f6f, 0x3c1b}, v4_int32 = {0xb91fe1b3,
0x3c5e2268, 0xbc1eb477, 0x3c1b1f6f}, v2_int64 = {0x3c5e2268b91fe1b3, 0x3c1b1f6fbc1eb477}, uint128 = 0x3c1b1f6fbc1eb4773c5e2268b91fe1b3}
xmm5 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x86, 0xcc, 0x5d, 0xbc, 0xe1, 0xcb, 0x13, 0xb9, 0x2b, 0x80,
0x1b, 0xbc, 0xb3, 0x9a, 0x1e, 0xbc}, v8_int16 = {0xcc86, 0xbc5d, 0xcbe1, 0xb913, 0x802b, 0xbc1b, 0x9ab3, 0xbc1e}, v4_int32 = {0xbc5dcc86,
0xb913cbe1, 0xbc1b802b, 0xbc1e9ab3}, v2_int64 = {0xb913cbe1bc5dcc86, 0xbc1e9ab3bc1b802b}, uint128 = 0xbc1e9ab3bc1b802bb913cbe1bc5dcc86}
xmm6 {v4_float = {0x1, 0xffffffff, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0, 0x0, 0x80, 0x3f, 0x0, 0x0, 0x80, 0xbf, 0xf3, 0x4,
0x35, 0x3f, 0xf3, 0x4, 0x35, 0xbf}, v8_int16 = {0x0, 0x3f80, 0x0, 0xbf80, 0x4f3, 0x3f35, 0x4f3, 0xbf35}, v4_int32 = {0x3f800000, 0xbf800000,
0x3f3504f3, 0xbf3504f3}, v2_int64 = {0xbf8000003f800000, 0xbf3504f33f3504f3}, uint128 = 0xbf3504f33f3504f3bf8000003f800000}
xmm7 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf3, 0x4, 0x35,
0x3f, 0xf3, 0x4, 0x35, 0xbf}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x4f3, 0x3f35, 0x4f3, 0xbf35}, v4_int32 = {0x0, 0x0, 0x3f3504f3, 0xbf3504f3},
v2_int64 = {0x0, 0xbf3504f33f3504f3}, uint128 = 0xbf3504f33f3504f30000000000000000}
xmm8 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0xb9, 0x89, 0x71, 0xba, 0x0 <repeats 12 times>}, v8_int16 = {
0x89b9, 0xba71, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0xba7189b9, 0x0, 0x0, 0x0}, v2_int64 = {0xba7189b9, 0x0},
uint128 = 0x000000000000000000000000ba7189b9}
xmm9 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x8f, 0x3c, 0xa, 0x3c, 0x0 <repeats 12 times>}, v8_int16 = {
0x3c8f, 0x3c0a, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x3c0a3c8f, 0x0, 0x0, 0x0}, v2_int64 = {0x3c0a3c8f, 0x0},
uint128 = 0x0000000000000000000000003c0a3c8f}
xmm10 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x3a, 0x68, 0xb9, 0xbb, 0x0 <repeats 12 times>}, v8_int16 = {
0x683a, 0xbbb9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0xbbb9683a, 0x0, 0x0, 0x0}, v2_int64 = {0xbbb9683a, 0x0},
uint128 = 0x000000000000000000000000bbb9683a}
xmm11 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0xd5, 0x4a, 0x63, 0xba, 0x0 <repeats 12 times>}, v8_int16 = {
0x4ad5, 0xba63, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0xba634ad5, 0x0, 0x0, 0x0}, v2_int64 = {0xba634ad5, 0x0},
uint128 = 0x000000000000000000000000ba634ad5}
xmm12 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0xb4, 0x3e, 0x53, 0x3d, 0x0 <repeats 12 times>}, v8_int16 = {
---Type <return> to continue, or q <return> to quit---
0x3eb4, 0x3d53, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x3d533eb4, 0x0, 0x0, 0x0}, v2_int64 = {0x3d533eb4, 0x0},
uint128 = 0x0000000000000000000000003d533eb4}
xmm13 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x4, 0x6f, 0x12, 0xbc, 0x0 <repeats 12 times>}, v8_int16 = {
0x6f04, 0xbc12, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0xbc126f04, 0x0, 0x0, 0x0}, v2_int64 = {0xbc126f04, 0x0},
uint128 = 0x000000000000000000000000bc126f04}
xmm14 {v4_float = {0x180, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0, 0x0, 0xc0, 0x43, 0x0 <repeats 12 times>}, v8_int16 = {
0x0, 0x43c0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x43c00000, 0x0, 0x0, 0x0}, v2_int64 = {0x43c00000, 0x0},
uint128 = 0x00000000000000000000000043c00000}
xmm15 {v4_float = {0x0, 0x4b, 0x0, 0x0}, v2_double = {0x5ffffffffff, 0x0}, v16_int8 = {0x2c, 0xfd, 0xff, 0xff, 0xff, 0xff, 0x97, 0x42,
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0xfd2c, 0xffff, 0xffff, 0x4297, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0xfffffd2c, 0x4297ffff,
0x0, 0x0}, v2_int64 = {0x4297fffffffffd2c, 0x0}, uint128 = 0x00000000000000004297fffffffffd2c}
mxcsr 0x1fa0 [ PE IM DM ZM OM UM PM ]
More information about the MPlayer-users
mailing list