[MPlayer-users] Mplayer seg fault
Eric Estabrooks
eric at urbanrage.com
Sun May 30 15:44:32 CEST 2004
I get a segmentation fault when I try to play an h.264 encoded file in
an avi wrapper.
(gdb) run -v /export/media/tv/angel/angel.h264
Starting program: /tmp/MPlayer-1.0pre4/mplayer -v
/export/media/tv/angel/angel.h264
[Thread debugging using libthread_db enabled]
[New Thread 1091723872 (LWP 14467)]
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale
MPlayer 1.0pre4-3.3.3 (C) 2000-2004 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred 1997 MHz (Family:
6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
Reading config file /usr/local/etc/mplayer/mplayer.conf
Reading config file /home/eric/.mplayer/config
Reading /home/eric/.mplayer/codecs.conf: Can't open
'/home/eric/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: 61 audio & 157 video codecs
CommandLine: '-v' '/export/media/tv/angel/angel.h264'
init_freetype
get_path('font/font.desc') -> '/home/eric/.mplayer/font/font.desc'
font: can't open file: /home/eric/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Failed to open /dev/rtc: No such file or directory (/dev/rtc should be
readable by the user.)
Using usleep() timing
get_path('input.conf') -> '/home/eric/.mplayer/input.conf'
Can't open input config file /home/eric/.mplayer/input.conf: No such
file or directory
Parsing input config file /usr/local/etc/mplayer/input.conf
Input config file /usr/local/etc/mplayer/input.conf parsed: 53 binds
get_path('angel.h264.conf') -> '/home/eric/.mplayer/angel.h264.conf'
Playing /export/media/tv/angel/angel.h264.
[file] File size is 9787736 bytes
STREAM: [file] /export/media/tv/angel/angel.h264
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Detaching after fork from child process 14470.
CACHE_PRE_INIT: 0 [0] 0 pre:0 eof:1040384
AVI file format detected.
list_end=0x146
======= AVI Header =======
us/frame: 33366 (fps=29.971)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (16) HAS_INDEX
frames total: 0 initial: 0
streams: 2
Suggested BufferSize: 0
Size: 640 x 480
==========================
list_end=0xD4
==> Found video stream: 0
====== STREAM Header =====
Type: vids FCC: h264 (34363268)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 27000000/900900 = 29.970
Start: 0 Len: 500
Suggested BufferSize: 0
Quality 0
Sample size: 0
==========================
found 'bih', 40 bytes of 40
======= VIDEO Format ======
biSize 40
biWidth 640
biHeight 480
biPlanes 1
biBitCount 24
biCompression 875967048='H264'
biSizeImage 0
===========================
list_end=0x146
==> Found audio stream: 1
====== STREAM Header =====
Type: auds FCC: (0)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 1
Rate: 24000/1 = 24000.000
Start: 0 Len: 0
Suggested BufferSize: 635
Quality -1
Sample size: 1
==========================
found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 44100
avg byte/sec: 24000
Block align: 1
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=626
mp3.nFramesPerBlock=1
mp3.nCodecDelay=1393
===========================
list_end=0x951260
Found movie at 0x800 - 0x951260
Reading INDEX block, 1135 chunks for 0 frames (fpos=0x951268)
AVI index offset: 0x7FC (movi=0x800 idx0=0x4 idx1=0x418)
Auto-selected AVI video ID = 0
Auto-selected AVI audio ID = 1
AVI: Searching for audio stream (id:1)
XXX initial v_pts=0.634 a_pos=0 (0.000)
AVI video size=9359813 (500) audio size=398063 (398063)
VIDEO: [H264] 640x480 24bpp 29.970 fps 4488.2 kbps (547.9 kbyte/s)
[V] filefmt:3 fourcc:0x34363248 size:640x480 fps:29.97 ftime:=0.0334
get_path('sub/') -> '/home/eric/.mplayer/sub/'
get_path('default.sub') -> '/home/eric/.mplayer/default.sub'
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: made decode tables with MMX optimization
mp3lib: using 3DNow!Ex optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer III, 44100 Hz 192 kbit Joint-Stereo, BPF: 627
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 24000->176400 (192.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
X11 opening display: :0.0
vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local
display)
[x11] Detected wm supports layers.
[x11] Detected wm supports NetWM.
[x11] Unknown wm type...
[x11] Current fstype setting doesn't honour any X atoms
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffh264] vfm:ffmpeg (FFmpeg H.264)
==========================================================================
Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
[libaf] Adding filter dummy
[dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000001
and bps = 2
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
SDL: Samplerate: 44100Hz Channels: Stereo Format Signed 16-bit
(Little-Endian)
SDL: Unable to open audio: No available audio device
Could not open/initialize audio device -> no sound.
Uninit audio filters...
[libaf] Removing filter dummy
uninit audio: mp3lib
Audio: no sound
Freeing 0 unused audio chunks
Starting playback...
[ffmpeg] aspect_ratio: nan
VDec: vo config request - 640 x 480 (preferred csp: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (640x480->640x480,flags=4,'MPlayer',0x32315659)
VO: [x11] 640x480 => 640x480 Planar YV12 [zoom]
VO: Description: X11 ( XImage/Shm )
VO: Author: Aaron Holtzman <aholtzma at ess.engr.uvic.ca>
Sharing memory.
SwScaler: using unscaled Planar YV12 -> BGR 32-bit special converter
*** [vo] Allocating mp_image_t, 640x480x12bpp YUV planar, 460800 bytes
get_path('subfont.ttf') -> '/home/eric/.mplayer/subfont.ttf'
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
*** [vo] Allocating mp_image_t, 640x480x12bpp YUV planar, 460800 bytes
DR1 failure 2 0% 0% 0.0% 0 0 98%
*** [vo] Exporting mp_image_t, 640x480x12bpp YUV planar, 460800 bytes
V: 0.1 5 0% 0% 0.0% 0 0 98%
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1091723872 (LWP 14467)]
release_buffer (avctx=0x853e030, pic=0x852c838) at vd_ffmpeg.c:647
647 if ((mpi->bpp == 8) && (mpi->planes[1] != NULL))
(gdb) bt
#0 release_buffer (avctx=0x853e030, pic=0x852c838) at vd_ffmpeg.c:647
#1 0x081d60a0 in MPV_frame_start (s=0x853e2c0, avctx=0x853e030)
at mpegvideo.c:1379
#2 0x082bafd9 in frame_start (h=0x853e2c0) at h264.c:2267
#3 0x082be291 in decode_slice_header (h=0x853e2c0) at h264.c:3045
#4 0x082c7545 in decode_nal_units (h=0x853e2c0, buf=0x852acb8 "",
buf_size=12)
at h264.c:5596
#5 0x082c783b in decode_frame (avctx=0x3, data=0x853df50,
data_size=0xbfffe5bc, buf=0x852acb8 "", buf_size=12) at h264.c:5716
#6 0x081d1867 in avcodec_decode_video (avctx=0x853e030, picture=0x3,
got_picture_ptr=0xbfffe5bc, buf=0x3 <Address 0x3 out of bounds>,
buf_size=3) at utils.c:487
#7 0x080c9c85 in decode (sh=0x85000e0, data=0x852acb8, len=12, flags=0)
at vd_ffmpeg.c:730
#8 0x080c3f33 in decode_video (sh_video=0x85000e0,
start=0x3 <Address 0x3 out of bounds>, in_size=3, drop_frame=0)
at dec_video.c:309
#9 0x080767ec in main (argc=3, argv=0xbffffa54) at mplayer.c:2091
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x80c9aaa to 0x80c9aea:
0x080c9aaa <release_buffer+26>: add %cl,0x908b704b(%ebx)
0x080c9ab0 <release_buffer+32>: movl %es,(%eax)
0x080c9ab2 <release_buffer+34>: add %al,(%eax)
0x080c9ab4 <release_buffer+36>: mov 0xb8(%edx),%eax
0x080c9aba <release_buffer+42>: cmp $0x2,%eax
0x080c9abd <release_buffer+45>: jg 0x80c9aca <release_buffer+58>
0x080c9abf <release_buffer+47>: mov 0xbc(%edx),%esi
0x080c9ac5 <release_buffer+53>: cmp $0x1,%esi
0x080c9ac8 <release_buffer+56>: jle 0x80c9b19 <release_buffer+137>
0x080c9aca <release_buffer+58>: cmpb $0x8,0x3(%ecx)
0x080c9ace <release_buffer+62>: je 0x80c9b08 <release_buffer+120>
0x080c9ad0 <release_buffer+64>: cmpl $0x2,0x94(%ebx)
0x080c9ad7 <release_buffer+71>: je 0x80c9aee <release_buffer+94>
0x080c9ad9 <release_buffer+73>: mov %ebx,0xc(%ebp)
0x080c9adc <release_buffer+76>: mov %edi,0x8(%ebp)
0x080c9adf <release_buffer+79>: mov 0xfffffff8(%ebp),%esi
0x080c9ae2 <release_buffer+82>: mov 0xfffffff4(%ebp),%ebx
0x080c9ae5 <release_buffer+85>: mov 0xfffffffc(%ebp),%edi
0x080c9ae8 <release_buffer+88>: leave
0x080c9ae9 <release_buffer+89>: jmp 0x81d1230
<avcodec_default_release_buffer>
End of assembler dump.
(gdb) info all-registers
eax 0x3 3
ecx 0x0 0
edx 0x853de88 139714184
ebx 0x852c838 139642936
esp 0xbfffe400 0xbfffe400
ebp 0xbfffe418 0xbfffe418
esi 0xc 12
edi 0x853e030 139714608
eip 0x80c9aca 0x80c9aca
eflags 0x10202 66050
cs 0x73 115
ss 0x7b 123
ds 0x7b 123
es 0x7b 123
fs 0x0 0
gs 0x33 51
st0 <invalid float value> (raw 0xffff0000000000000000)
st1 <invalid float value> (raw 0xffff0000000000000000)
st2 <invalid float value> (raw 0xffff0000000000000000)
st3 <invalid float value> (raw 0xffff0000000000000000)
st4 <invalid float value> (raw 0xffff0000000000000000)
st5 0.133466660976409912109375 (raw 0x3ffc88ab7c0000000000)
st6 0.16683332622051239013671875 (raw 0x3ffcaad65b0000000000)
---Type <return> to continue, or q <return> to quit---
st7 0.03746232204139232635498046875 (raw 0x3ffa9972178000000000)
fctrl 0x37f 895
fstat 0x321 801
ftag 0xffff 65535
fiseg 0x0 0
fioff 0x0 0
foseg 0x0 0
fooff 0x0 0
fop 0x0 0
xmm0 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {
0x8000000000000000, 0x8000000000000000}, v16_int8 = {
0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {0xffffffff, 0xffffffff,
0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff,
0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff}
xmm1 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {
0x8000000000000000, 0x8000000000000000}, v16_int8 = {
0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {0xffffffff, 0xffffffff,
0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff,
0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff}
xmm2 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {
0x8000000000000000, 0x8000000000000000}, v16_int8 = {
---Type <return> to continue, or q <return> to quit---
0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {0xffffffff, 0xffffffff,
0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff,
0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff}
xmm3 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {
0x8000000000000000, 0x8000000000000000}, v16_int8 = {
0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {0xffffffff, 0xffffffff,
0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff,
0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff}
xmm4 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {
0x8000000000000000, 0x8000000000000000}, v16_int8 = {
0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {0xffffffff, 0xffffffff,
0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff,
0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff}
xmm5 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {
0x8000000000000000, 0x8000000000000000}, v16_int8 = {
0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {0xffffffff, 0xffffffff,
0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff,
0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff}
xmm6 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {
---Type <return> to continue, or q <return> to quit---
0x8000000000000000, 0x8000000000000000}, v16_int8 = {
0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {0xffffffff, 0xffffffff,
0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff,
0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff}
xmm7 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {
0x8000000000000000, 0x8000000000000000}, v16_int8 = {
0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {0xffffffff, 0xffffffff,
0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff,
0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff}
mxcsr 0x1f80 8064
mm0 {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0,
0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm1 {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0,
0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm2 {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0,
0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm3 {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0,
0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm4 {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0,
0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm5 {uint64 = 0x88ab7c0000000000, v2_int32 = {0x0, 0x88ab7c00},
---Type <return> to continue, or q <return> to quit---
v4_int16 = {0x0, 0x0, 0x7c00, 0x88ab}, v8_int8 = {0x0, 0x0, 0x0, 0x0,
0x0,
0x7c, 0xab, 0x88}}
mm6 {uint64 = 0xaad65b0000000000, v2_int32 = {0x0, 0xaad65b00},
v4_int16 = {0x0, 0x0, 0x5b00, 0xaad6}, v8_int8 = {0x0, 0x0, 0x0, 0x0,
0x0,
0x5b, 0xd6, 0xaa}}
mm7 {uint64 = 0x9972178000000000, v2_int32 = {0x0, 0x99721780},
v4_int16 = {0x0, 0x0, 0x1780, 0x9972}, v8_int8 = {0x0, 0x0, 0x0, 0x0,
0x80,
0x17, 0x72, 0x99}}
More information about the MPlayer-users
mailing list