Hi, I found this avi file (tdf_sig11.avi) which crashes mplayer. The file plays back fine in aviplay, xine, and windoze media player. If I use `-ac ffmp3`, the file plays back. Below is output of `mplayer -v` and gdb as well as system info. Thank you, Michael Waters stonin@rogers.com ------------------------------------------------------------------ mplayer.log: ------------------------------------------------------------------ Using GNU internationalization Original domain: messages Original dirname: /usr/share/locale Current domain: mplayer Current dirname: /usr/local/share/locale MPlayer CVS-030110-11:52-2.95.4 (C) 2000-2002 Arpad Gereoffy (see DOCS) CPU: Advanced Micro Devices Athlon 4 PM Palomino/Athlon MP Multiprocessor/Athlon XP eXtreme Performance (Family: 6, Stepping: 2) 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: No such file or directory Reading config file /home/msh/.mplayer/config Reading /home/msh/.mplayer/codecs.conf: can't open '/home/msh/.mplayer/codecs.conf': No such file or directory Reading /usr/local/etc/mplayer/codecs.conf: 49 audio & 125 video codecs CommandLine: '-v' 'tdf_sig11.avi' get_path('font/font.desc') -> '/home/msh/.mplayer/font/font.desc' Font /home/msh/.mplayer/font/font.desc loaded successfully! (206 chars) Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay Using Linux hardware RTC timing (1024Hz). get_path('input.conf') -> '/home/msh/.mplayer/input.conf' Parsing input config file /home/msh/.mplayer/input.conf Input config file /home/msh/.mplayer/input.conf parsed : 51 binds get_path('tdf_sig11.avi.conf') -> '/home/msh/.mplayer/tdf_sig11.avi.conf' Playing tdf_sig11.avi Not an URL! File size is 4874556 bytes AVI file format detected. list_end=0x20A0 ======= AVI Header ======= us/frame: 41708 (fps=23.976) max bytes/sec: 0 padding: 0 MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED frames total: 1315 initial: 0 streams: 2 Suggested BufferSize: 0 Size: 704 x 384 list_end=0x107C ==> Found video stream: 0 ======= STREAM Header ======= Type: vids FCC: DIVX (58564944) Flags: 0 Priority: 0 Language: 0 InitialFrames: 0 Rate: 239759/10000 = 23.976 Start: 0 Len: 1315 Suggested BufferSize: 101529 Quality 0 Sample size: 0 found 'bih', 40 bytes of 40 ======= VIDEO Format ====== biSize 40 biWidth 704 biHeight 384 biPlanes 1 biBitCount 24 biCompression 1482049860='DIVX' biSizeImage 811008 =========================== Regenerating keyframe table for DIVX 4 video list_end=0x20A0 ==> Found audio stream: 1 ======= STREAM Header ======= Type: auds FCC: (0) Flags: 0 Priority: 0 Language: 0 InitialFrames: 1 Rate: 48000/1152 = 41.667 Start: 0 Len: 264453 Suggested BufferSize: 8000 Quality -1 Sample size: 0 found 'wf', 32 bytes of 18 ======= WAVE Format ======= Format Tag: 85 (0x55) Channels: 2 Samplerate: 48000 avg byte/sec: 12367 Block align: 1152 bits/sample: 16 cbSize: 12 mp3.wID=1 mp3.fdwFlags=0x2 mp3.nBlockSize=296 mp3.nFramesPerBlock=1 mp3.nCodecDelay=0 list_end=0x498024 Found movie at 0x20AC - 0x498024 Reading INDEX block, 3601 chunks for 1315 frames (fpos=0x49802c) AVI index offset: 0x20A8 (movi=0x20AC idx0=0x4 idx1=0x932C) Auto-selected AVI video ID = 0 Auto-selected AVI audio ID = 1 AVI: Searching for audio stream (id:1) XXX initial v_pts=0.000 a_pos=0 (0.000) AVI video size=4160569 (1315) audio size=618500 (2286) VIDEO: [DIVX] 704x384 24bpp 23.98 fps 606.9 kbps (74.1 kbyte/s) [V] filefmt:3 fourcc:0x58564944 size:704x384 fps:23.98 ftime:=0.0417 get_path('sub/') -> '/home/msh/.mplayer/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 MPlayer interrupted by signal 11 in module: init_audio_codec - MPlayer crashed by bad usage of CPU/FPU/RAM. Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and disassembly. For details, see DOCS/bugreports.html section 5.b. - MPlayer crashed. This shouldn't happen. It can be a bug in the MPlayer code _or_ in your drivers _or_ in your gcc version. If you think it's MPlayer's fault, please read DOCS/bugreports.html and follow instructions there. We can't and won't help unless you provide these informations when reporting a possible bug. DEMUXER: freeing demuxer at 0x8bfdd88 vo: x11 uninit called but X11 not inited.. ---------------------------------------------------------------------- gdb output: ---------------------------------------------------------------------- $ gdb /usr/local/src/temp/main/mplayer gdb: Symbol `emacs_ctlx_keymap' has different size in shared object, consider re-linking GNU gdb 2002-04-01-cvs Copyright 2002 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-linux"... (gdb) run -v tdf_sig11.avi Starting program: /usr/local/src/temp/main/mplayer -v tdf_sig11.avi [New Thread 1024 (LWP 6370)] Using GNU internationalization Original domain: messages Original dirname: /usr/share/locale Current domain: mplayer Current dirname: /usr/local/share/locale MPlayer CVS-030110-11:52-2.95.4 (C) 2000-2002 Arpad Gereoffy (see DOCS) CPU: Advanced Micro Devices Athlon 4 PM Palomino/Athlon MP Multiprocessor/Athlon XP eXtreme Performance (Family: 6, Stepping: 2) 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: No such file or directory Reading config file /home/msh/.mplayer/config Reading /home/msh/.mplayer/codecs.conf: can't open '/home/msh/.mplayer/codecs.conf': No such file or directory Reading /usr/local/etc/mplayer/codecs.conf: 49 audio & 125 video codecs CommandLine: '-v' 'tdf_sig11.avi' get_path('font/font.desc') -> '/home/msh/.mplayer/font/font.desc' Font /home/msh/.mplayer/font/font.desc loaded successfully! (206 chars) Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay Using Linux hardware RTC timing (1024Hz). get_path('input.conf') -> '/home/msh/.mplayer/input.conf' Parsing input config file /home/msh/.mplayer/input.conf Input config file /home/msh/.mplayer/input.conf parsed : 51 binds get_path('tdf_sig11.avi.conf') -> '/home/msh/.mplayer/tdf_sig11.avi.conf' Playing tdf_sig11.avi Not an URL! File size is 4874556 bytes AVI file format detected. list_end=0x20A0 ======= AVI Header ======= us/frame: 41708 (fps=23.976) max bytes/sec: 0 padding: 0 MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED frames total: 1315 initial: 0 streams: 2 Suggested BufferSize: 0 Size: 704 x 384 list_end=0x107C ==> Found video stream: 0 ======= STREAM Header ======= Type: vids FCC: DIVX (58564944) Flags: 0 Priority: 0 Language: 0 InitialFrames: 0 Rate: 239759/10000 = 23.976 Start: 0 Len: 1315 Suggested BufferSize: 101529 Quality 0 Sample size: 0 found 'bih', 40 bytes of 40 ======= VIDEO Format ====== biSize 40 biWidth 704 biHeight 384 biPlanes 1 biBitCount 24 biCompression 1482049860='DIVX' biSizeImage 811008 =========================== Regenerating keyframe table for DIVX 4 video list_end=0x20A0 ==> Found audio stream: 1 ======= STREAM Header ======= Type: auds FCC: (0) Flags: 0 Priority: 0 Language: 0 InitialFrames: 1 Rate: 48000/1152 = 41.667 Start: 0 Len: 264453 Suggested BufferSize: 8000 Quality -1 Sample size: 0 found 'wf', 32 bytes of 18 ======= WAVE Format ======= Format Tag: 85 (0x55) Channels: 2 Samplerate: 48000 avg byte/sec: 12367 Block align: 1152 bits/sample: 16 cbSize: 12 mp3.wID=1 mp3.fdwFlags=0x2 mp3.nBlockSize=296 mp3.nFramesPerBlock=1 mp3.nCodecDelay=0 list_end=0x498024 Found movie at 0x20AC - 0x498024 Reading INDEX block, 3601 chunks for 1315 frames (fpos=0x49802c) AVI index offset: 0x20A8 (movi=0x20AC idx0=0x4 idx1=0x932C) Auto-selected AVI video ID = 0 Auto-selected AVI audio ID = 1 AVI: Searching for audio stream (id:1) XXX initial v_pts=0.000 a_pos=0 (0.000) AVI video size=4160569 (1315) audio size=618500 (2286) VIDEO: [DIVX] 704x384 24bpp 23.98 fps 606.9 kbps (74.1 kbyte/s) [V] filefmt:3 fourcc:0x58564944 size:704x384 fps:23.98 ftime:=0.0417 get_path('sub/') -> '/home/msh/.mplayer/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 Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 6370)] 0x080d62c3 in II_step_one (bit_alloc=0xbfffe14c, scale=0xbfffde4c, fr=0x834fc60) at layer2.c:85 85 *bita++ = (char) getbits(step=alloc1->bits); (gdb) bt #0 0x080d62c3 in II_step_one (bit_alloc=0xbfffe14c, scale=0xbfffde4c, fr=0x834fc60) at layer2.c:85 #1 0x080d71fe in do_layer2 (fr=0x834fc60, outmode=-1) at layer2.c:279 #2 0x080deab5 in MP3_DecodeFrame (hova=0x8c5d5f0 "", single=-1) at sr1.c:517 #3 0x080a7dac in init (sh=0x8bfae80) at ad_mp3lib.c:49 #4 0x080a6d5e in init_audio_codec (sh_audio=0x8bfae80) at dec_audio.c:105 #5 0x080a6f88 in init_audio (sh_audio=0x8bfae80, codecname=0x0, afm=0x0, status=1) at dec_audio.c:195 #6 0x080a7117 in init_best_audio_codec (sh_audio=0x8bfae80, audio_codec_list=0xbfffe798, audio_fm_list=0x0) at dec_audio.c:240 #7 0x0806cb12 in main (argc=3, argv=0xbffffa74) at mplayer.c:1382 (gdb) disass $pc-32 $pc+32 Dump of assembler code from 0x80d62a3 to 0x80d62e3: 0x80d62a3 : je 0x80d6510 0x80d62a9 : mov %edx,0xfffffff0(%ebp) 0x80d62ac : mov %ebx,%ecx 0x80d62ae : sub %edx,%ecx 0x80d62b0 : mov %ecx,0xffffffe4(%ebp) 0x80d62b3 : test %edx,%edx 0x80d62b5 : je 0x80d63dc 0x80d62bb : nop 0x80d62bc : lea 0x0(%esi,1),%esi 0x80d62c0 : mov 0xfffffff4(%ebp),%ebx 0x80d62c3 : movswl (%ebx),%ebx 0x80d62c6 : mov %ebx,0xffffffe8(%ebp) 0x80d62c9 : mov 0x834fc48,%eax 0x80d62ce : mov %ebx,%esi 0x80d62d0 : sub %esi,%eax 0x80d62d2 : mov %eax,0x834fc48 0x80d62d7 : js 0x80d62e0 0x80d62d9 : cmpw $0x0,0xffffffe8(%ebp) 0x80d62de : jne 0x80d62e4 0x80d62e0 : xor %ebx,%ebx 0x80d62e2 : jmp 0x80d6330 End of assembler dump. (gdb) quit A debugging session is active. Do you still want to close the debugger?(y or n) y --------------------------------------------------------------- system info -------------------------------------------------------------------- debian testing $ uname -a Linux bach 2.4.19-m1 #1 Mon Dec 30 04:48:16 EST 2002 i686 AMD Athlon(TM) XP 1900+ AuthenticAMD GNU/Linux $ ls -l /lib/libc[.-]* -rwxr-xr-x 1 root root 1145456 2002-09-17 22:50 /lib/libc-2.2.5.so* lrwxrwxrwx 1 root root 14 2002-02-22 01:27 /lib/libc.so.5 -> libc.so.5.4.46 -rw-r--r-- 1 root root 563068 2002-02-04 16:30 /lib/libc.so.5.4.46 lrwxrwxrwx 1 root root 13 2002-10-05 00:27 /lib/libc.so.6 -> libc-2.2.5.so* $ X -version XFree86 Version 4.2.1 (Debian 4.2.1-3 20021016191246 branden@deadbeast.net) / X Window System (protocol Version 11, revision 0, vendor release 6600) Release Date: 3 September 2002 If the server is older than 6-12 months, or if your card is newer than the above date, look for a newer version before reporting problems. (See http://www.XFree86.Org/) Build Operating System: Linux 2.4.18 i686 [ELF] Module Loader present $ gcc -v Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs gcc version 2.95.4 20011002 (Debian prerelease) $ ld -v GNU ld version 2.13.90.0.10 20021010 Debian GNU/Linux $ as --version GNU assembler 2.13.90.0.10 20021010 Debian GNU/Linux Copyright 2002 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. This assembler was configured for a target of `i386-linux'. $ cat /proc/cpuinfo processor : 0 vendor_id : AuthenticAMD cpu family : 6 model : 6 model name : AMD Athlon(TM) XP 1900+ stepping : 2 cpu MHz : 1599.599 cache size : 256 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow bogomips : 3191.60 video card: matrox g400 video driver: X built-in driver sound card: SB live! 5.1 with kernel OSS drivers