[MPlayer-cygwin] crash

Goodwu goodwu at 21cn.com
Thu Nov 18 12:34:38 CET 2004


Crash while trying to play a rmvb file, the following is the debug information:
mplayer is the newest cvs version, compiled by gcc 3.4.2(I tried gcc 3.2 some days ago and had the same result)

GNU gdb 6.0
Copyright 2003 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 "i686-pc-mingw32"...
(gdb) r -v CD1.rmvb
Starting program: c:\mplayer\mplayer_debug.exe -v CD1.rmvb
MPlayer dev-CVS-041118-18:14-3.4.2 (C) 2000-2004 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.

CommandLine: '-v' 'CD1.rmvb'
init_freetype
get_path('font/font.desc') -> 'c:/mplayer/mplayer/font/font.desc'
font: can't open file: c:/mplayer/mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Windows native timing
get_path('input.conf') -> 'c:/mplayer/mplayer/input.conf'
Parsing input config file c:/mplayer/mplayer/input.conf
Input config file c:/mplayer/mplayer/input.conf parsed: 54 binds
get_path('menu.conf') -> 'c:/mplayer/mplayer/menu.conf'
Menu inited: c:/mplayer/mplayer/menu.conf
get_path('CD1.rmvb.conf') -> 'c:/mplayer/mplayer/CD1.rmvb.conf'
Playing CD1.rmvb.
WINSOCK2 init: 0
[file] File size is 332758364 bytes
STREAM: [file] CD1.rmvb
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for Nullsoft Streaming Video
Checking for NuppelVideo
Checking for REAL
REAL file format detected.
real: Header size: 18
real: Header object version: 1
real: File version: 0
Chunk: PROP (504f5250) (size: 0x32, offset: 0x12)
First index chunk offset: 0x13d169cc
First data chunk offset: 0x3f0
Flags (9): [save allowed] 
Chunk: CONT (544e4f43) (size: 0x40, offset: 0x44)
Chunk: MDPR (5250444d) (size: 0x9f, offset: 0x84)
Found new stream (id: 0)
skip_str: 12 bytes skipped
skip_str: 20 bytes skipped
==> Found audio stream: 0
Found audio stream!
version: 5
 00 00
 2E 72 61 35
 00 00 00 10
 00 05
header size: 65
 00 00 00 00
 00 07 53 00
 00 00 00 00
frame_size: 256
sub_packet_size: 256
 00 00
 00 00 7D 00 00 00
 00 00
samplerate: 32000, channels: 2
 76 62 72 66
 01 07 00
 00
 02
======= WAVE Format =======
Format Tag: 20557 (0x504D)
Channels: 2
Samplerate: 32000
avg byte/sec: 64000
Block align: 256
bits/sample: 16
cbSize: 0
===========================
### skipping 0 bytes of codec info
Chunk: MDPR (5250444d) (size: 0x70, offset: 0x123)
Found new stream (id: 1)
skip_str: 12 bytes skipped
skip_str: 20 bytes skipped
==> Found video stream: 1
video fourcc: RV40 (30345652)
H.263 ID: 40003000
unknown id: 40003000
### skipping 0 bytes of codec info
Chunk: MDPR (5250444d) (size: 0x253, offset: 0x193)
Found new stream (id: 2)
skip_str: 0 bytes skipped
skip_str: 16 bytes skipped
Not audio/video stream or unsupported!
### skipping 4 bytes of codec info
Chunk: DATA (41544144) (size: 0x13d165e6, offset: 0x3e6)
Packets in file: 183018
Reading index table from index chunk (332491212)
size: 262520 bytes
entries: 18750
stream_id: 0
next_header_pos: 332753732
Index table for stream 0
i: 0, pos: 1016, timestamp: 0
.............................................................
.............................................................
i: 327, pos: 331972725, timestamp: 3272414
Reading index table from index chunk (332758344)
size: 20 bytes
entries: 0
stream_id: 2
next_header_pos: 0

packet#0: pos: 0x3f8, len: 1168, id: 0, pts: 0, flags: 2 rvd:0
Auto-selected RM audio ID = 0

Program received signal SIGTRAP, Trace/breakpoint trap.
0x7c921231 in ntdll!DbgUiConnectToDbg () from ntdll.dll
(gdb) warning: HEAP[mplayer_debug.exe]: 
warning: HEAP: Free Heap block 1f88d50 modified at 1fa9730 after it was freed

c
Continuing.

packet#1: pos: 0x888, len: 2247, id: 1, pts: 94, flags: 2 rvd:0
Auto-selected RM video ID = 1

packet#2: pos: 0x114f, len: 715, id: 1, pts: 94, flags: 2 rvd:0

TS: base=FFFFFFE6

TS: 0000005E -> 00000000 (0078) 0 05 28 1E 2E     0

TS: 0000005E -> 0000005E (00F0) 2 4A 20 3C 20    94

TS: 0000005E -> 00000086 (00A0) 3 6A 20 28 20    40

TS: 0000005E -> 000000D6 (0168) 2 48 28 5A 20    80

TS: 0000005E -> 000000FE (0118) 3 69 20 46 20    40

TS: 0000005E -> 0000014E (01E0) 2 46 28 78 20    80

TS: 0000005E -> 00000176 (0190) 3 6A 20 64 20    40

TS: 0000005E -> 000001C6 (0258) 2 44 28 96 20    80

TS: 0000005E -> 000001EE (0208) 3 6A 20 82 20    40

TS: 0000005E -> 0000023E (02D0) 2 44 28 B4 20    80

TS: 0000005E -> 00000266 (0280) 3 69 20 A0 20    40

TS: 0000005E -> 000002B6 (0348) 2 46 28 D2 20    80

TS: 0000005E -> 000002DE (02F8) 3 6A 20 BE 20    40

TS: 0000005E -> 0000032E (0398) 2 46 28 E6 20    80

TS: 0000005E -> 00000356 (0370) 3 6C 20 DC 20    40
VIDEO:  RV40 [40003000,01481020]  640x360  (aspect 0.00)  24.00 fps
VIDEO:  [RV40]  640x360  24bpp  24.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:11  fourcc:0x30345652  size:640x360  fps:24.00  ftime:=0.0417
Clip info:
 author: 三日语视频小组 www.3rybbs.com
 comment: 
get_path('sub/') -> 'c:/mplayer/mplayer/sub/'
get_path('default.sub') -> 'c:/mplayer/mplayer/default.sub'
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
dec_audio: Allocating 4608 bytes for input buffer.
dec_audio: Allocating 49152 + 65536 = 114688 bytes for output buffer.
FAAD: Decoder init done (0Bytes)!
FAAD: Negotiated samplerate: 32000Hz  channels: 2
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 32000 Hz, 2 ch, 16 bit (0x10), ratio: 16000->128000 (128.0 kbit)
Selected audio codec: [faad] afm:faad (FAAD AAC (MPEG2/MPEG4 Audio) decoder)
==========================================================================
<vo_directx><INFO>checking primary surface
<vo_directx><FORMAT PRIMARY>13 BGR32 supported
<vo_directx><INFO>testing supported overlay pixelformats
<vo_directx><FORMAT OVERLAY>0 YV12  supported
<vo_directx><FORMAT OVERLAY>1 I420  not supported
<vo_directx><FORMAT OVERLAY>2 IYUV  not supported
<vo_directx><FORMAT OVERLAY>3 YVU9  supported
<vo_directx><FORMAT OVERLAY>4 YUY2  supported
<vo_directx><FORMAT OVERLAY>5 UYVY  supported
<vo_directx><FORMAT OVERLAY>6 RGB15 supported
<vo_directx><FORMAT OVERLAY>7 BGR15 supported
<vo_directx><FORMAT OVERLAY>8 RGB16 supported
<vo_directx><FORMAT OVERLAY>9 BGR16 supported
<vo_directx><FORMAT OVERLAY>10 RGB24 not supported
<vo_directx><FORMAT OVERLAY>11 BGR24 not supported
<vo_directx><FORMAT OVERLAY>12 RGB32 supported
<vo_directx><FORMAT OVERLAY>13 BGR32 supported
<vo_directx><INFO>Your card supports 10 of 14 overlayformats
<vo_directx><INFO>hardware supports overlay
==========================================================================
Opening video decoder: [realvid] RealVideo decoder
realvideo codec id: 0x40003000  sub-id: 0x01481020
opening win32 dll 'drv4.so.6.0'
win32 real codec handle=00000000  
Error loading dll
ERROR: Could not open required DirectShow codec drv4.so.6.0.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Opening video decoder: [realvid] RealVideo decoder
realvideo codec id: 0x40003000  sub-id: 0x01481020
opening win32 dll 'drv43260.dll'
win32 real codec handle=00000000  
Error loading dll
ERROR: Could not open required DirectShow codec drv43260.dll.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Opening video decoder: [realvid] RealVideo decoder
realvideo codec id: 0x40003000  sub-id: 0x01481020
opening win32 dll 'drvc.bundle/Contents/MacOS/drvc'
win32 real codec handle=00000000  
Error loading dll
ERROR: Could not open required DirectShow codec drvc.bundle/Contents/MacOS/drvc.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Cannot find codec matching selected -vo and video format 0x30345652.
Read DOCS/HTML/en/codecs.html!
==========================================================================
Checking audio filter chain for 32000Hz/2ch/16bit -> 32000Hz/2ch/16bit...
[libaf] Adding filter dummy 
[dummy] Was reinitialized, rate=32000Hz, nch = 2, format = 0x00000001 and bps = 2
AF_pre: af format: 2 bps, 2 ch, 32000 hz, little endian signed int 
AF_pre: 32000Hz 2ch Signed 16-bit (Little-Endian)
ao_dsound: DirectSound initialized
ao_dsound: Samplerate:32000Hz Channels:2 Format:Signed 16-bit (Little-Endian)
ao_dsound: Buffersize:128000 bytes (1000 msec)
ao_dsound: primary buffer created
ao_dsound: secondary (stream)buffer created
AO: [dsound] 32000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
AO: Description: Windows DirectSound audio output
AO: Author: Gabor Szecsi <deje at miki.hu>
Building audio filter chain for 32000Hz/2ch/16bit -> 32000Hz/2ch/16bit...
[dummy] Was reinitialized, rate=32000Hz, nch = 2, format = 0x00000001 and bps = 2
[dummy] Was reinitialized, rate=32000Hz, nch = 2, format = 0x00000001 and bps = 2
Video: no video
Freeing 14 unused video chunks.
Starting playback...

Program received signal SIGSEGV, Segmentation fault.
0x004bd618 in add_index_item (demuxer=0x80, stream_id=0, timestamp=128, offset=5146)
    at demux_real.c:238
238	      if (index->timestamp >= timestamp || index->offset >= offset)
(gdb) bt
#0  0x004bd618 in add_index_item (demuxer=0x80, stream_id=0, timestamp=128, offset=5146)
    at demux_real.c:238
#1  0x004be568 in demux_real_fill_buffer (demuxer=0x1f82278) at demux_real.c:552
#2  0x004956a3 in ds_fill_buffer (ds=0x1aabe10) at demuxer.c:445
#3  0x0049595a in ds_get_packet (ds=0x1aabe10, start=0x23e7c8) at demuxer.c:519
#4  0x00479358 in decode_audio (sh=0x1aabc10, buf=0x1f8ea40 "", minlen=65536, maxlen=114688)
    at ad_faad.c:206
#5  0x00444cc6 in decode_audio (sh_audio=0x10000, buf=0x1c000 <Address 0x1c000 out of bounds>, 
    minlen=49152, maxlen=114688) at dec_audio.c:390
#6  0x01f8ea40 in ?? ()
#7  0x00010000 in ?? ()
#8  0x0001c000 in ?? ()
#9  0x0000c000 in ?? ()
#10 0x0001c000 in ?? ()
#11 0x73e7e62a in DirectSoundCaptureCreate () from C:\WINDOWS\system32\dsound.dll
#12 0x0023e81c in ?? ()
#13 0x0023e818 in ?? ()
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x4bd5f8 to 0x4bd638:
0x004bd5f8 <add_index_item+40>:	add    %al,(%eax)
0x004bd5fa <add_index_item+42>:	cmp    %edx,%ecx
0x004bd5fc <add_index_item+44>:	jge    0x4bd660 <add_index_item+144>
0x004bd5fe <add_index_item+46>:	mov    0x4(%esi,%ebx,4),%edi
0x004bd602 <add_index_item+50>:	test   %ecx,%ecx
0x004bd604 <add_index_item+52>:	jle    0x4bd628 <add_index_item+88>
0x004bd606 <add_index_item+54>:	lea    (%edi,%ecx,8),%eax
0x004bd609 <add_index_item+57>:	mov    %eax,0xfffffff0(%ebp)
0x004bd60c <add_index_item+60>:	mov    0xfffffff0(%ebp),%edx
0x004bd60f <add_index_item+63>:	sub    $0x8,%eax
0x004bd612 <add_index_item+66>:	mov    %eax,0xffffffec(%ebp)
0x004bd615 <add_index_item+69>:	mov    0x8(%ebp),%eax
0x004bd618 <add_index_item+72>:	cmp    %eax,0xfffffff8(%edx)
0x004bd61b <add_index_item+75>:	jge    0x4bd650 <add_index_item+128>
0x004bd61d <add_index_item+77>:	mov    0xffffffec(%ebp),%edx
0x004bd620 <add_index_item+80>:	mov    0xc(%ebp),%eax
0x004bd623 <add_index_item+83>:	cmp    %eax,0x4(%edx)
0x004bd626 <add_index_item+86>:	jge    0x4bd650 <add_index_item+128>
0x004bd628 <add_index_item+88>:	lea    0x1(%ecx),%eax
0x004bd62b <add_index_item+91>:	lea    (%edi,%ecx,8),%edi
0x004bd62e <add_index_item+94>:	mov    %eax,0x84(%esi,%ebx,4)
0x004bd635 <add_index_item+101>:	mov    0x8(%ebp),%eax
End of assembler dump.
(gdb) info all-registers
eax            0x80	128
ecx            0x493f	18751
edx            0x1ff7228	33518120
ebx            0x0	0
esp            0x23e680	0x23e680
ebp            0x23e6a8	0x23e6a8
esi            0x1aab990	27965840
edi            0x1fd2830	33368112
eip            0x4bd618	0x4bd618
eflags         0x10202	66050
cs             0x1b	27
ss             0x23	35
ds             0x23	35
es             0x23	35
fs             0x3b	59
gs             0x0	0
st0            419.90811157226562	(raw 0x4007d1f43d0000000000)
st1            34.209877014160156	(raw 0x400488d6ea0000000000)
st2            50.328365325927734	(raw 0x4004c9503f0000000000)
st3            34.209877014160156	(raw 0x400488d6ea0000000000)
st4            -32768	(raw 0xc00e8000000000000000)
st5            32767	(raw 0x400dfffe000000000000)
st6            -32768	(raw 0xc00e8000000000000000)
st7            32767	(raw 0x400dfffe000000000000)
fctrl          0xffff037f	-64641
fstat          0xffff0120	-65248
ftag           0xffffffff	-1
fiseg          0x1b	27
fioff          0x781322	7869218
foseg          0xffff0023	-65501
fooff          0x23e6b4	2352820
fop            0x1c9	457
mm0            {uint64 = 0xd1f43d0000000000, v2_int32 = {0x0, 0xd1f43d00}, v4_int16 = {0x0, 0x0, 
    0x3d00, 0xd1f4}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x3d, 0xf4, 0xd1}}
mm1            {uint64 = 0x88d6ea0000000000, v2_int32 = {0x0, 0x88d6ea00}, v4_int16 = {0x0, 0x0, 
    0xea00, 0x88d6}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0xea, 0xd6, 0x88}}
mm2            {uint64 = 0xc9503f0000000000, v2_int32 = {0x0, 0xc9503f00}, v4_int16 = {0x0, 0x0, 
    0x3f00, 0xc950}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x3f, 0x50, 0xc9}}
mm3            {uint64 = 0x88d6ea0000000000, v2_int32 = {0x0, 0x88d6ea00}, v4_int16 = {0x0, 0x0, 
    0xea00, 0x88d6}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0xea, 0xd6, 0x88}}
mm4            {uint64 = 0x8000000000000000, v2_int32 = {0x0, 0x80000000}, v4_int16 = {0x0, 0x0, 
    0x0, 0x8000}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80}}
mm5            {uint64 = 0xfffe000000000000, v2_int32 = {0x0, 0xfffe0000}, v4_int16 = {0x0, 0x0, 
    0x0, 0xfffe}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xfe, 0xff}}
mm6            {uint64 = 0x8000000000000000, v2_int32 = {0x0, 0x80000000}, v4_int16 = {0x0, 0x0, 
    0x0, 0x8000}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80}}
mm7            {uint64 = 0xfffe000000000000, v2_int32 = {0x0, 0xfffe0000}, v4_int16 = {0x0, 0x0, 
    0x0, 0xfffe}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xfe, 0xff}}
(gdb) q



More information about the MPlayer-cygwin mailing list