[MPlayer-users] BUG: mp3lib in latest cvs segfaults

Arwed von Merkatz v.merkatz at gmx.net
Thu Oct 23 23:04:11 CEST 2003


Hi,

latest cvs version of mplayer segfaults for all mp3 audio streams here.
Reverting mp3lib/* to the version of 20031020 fixes it, somehow the
changes in the last two days seem to cause it.

Sysinfo:
Sourcemage GNU/Linux
Kernel 2.4.19
glibc 2.3.2
XFree86 4.3.0.1
gcc 3.3.2
ld 2.14
as 2.14

arwed at Otherland:~/MPlayer-cvs-head$ cat /proc/cpuinfo 
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 1
model name      : AMD-K7(tm) Processor
stepping        : 2
cpu MHz         : 599.537
cache size      : 512 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 pse tsc msr pae mce cx8 sep mtrr pge mca
cmov pat mmx syscall mmxext 3dnowext 3dnow
bogomips        : 1196.03

NVidia xfree drivers 1.0-4496
Creative SB 128PCI with ALSA OSS emulation

The attached gdb output is from an mplayer build without debugging
turned on, built with --enable-debug=3 it doesn't crash.

-- 
Arwed v. Merkatz
Grimoire Guru for video
Grimoire Guru for xfce
Sourcemage GNU/Linux
http://www.sourcemage.org
-------------- next part --------------
arwed at Otherland:~/MPlayer-cvs-head$ gdb ./mplayer
GNU gdb 5.3
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 "i686-pc-linux-gnu"...
(gdb) run -v -ao oss:/dev/dsp1 ~/Music/diverse/19\ Krieger.mp3
Starting program: /home/arwed/MPlayer-cvs-head/mplayer -v -ao oss:/dev/dsp1 ~/Music/diverse/19\ Krieger.mp3
[New Thread 16384 (LWP 27120)]
MPlayer dev-CVS-031023-21:16-3.3.2 (C) 2000-2003 MPlayer Team

CPU: Advanced Micro Devices Athlon K7 599.9 MHz (Family: 6, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/arwed/.mplayer/config
Reading /home/arwed/.mplayer/codecs.conf: Can't open '/home/arwed/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
CommandLine: '-v' '-ao' 'oss:/dev/dsp1' '/home/arwed/Music/diverse/19 Krieger.mp3'
get_path('font/font.desc') -> '/home/arwed/.mplayer/font/font.desc'
font: can't open file: /home/arwed/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Linux hardware RTC timing (1024Hz).
get_path('input.conf') -> '/home/arwed/.mplayer/input.conf'
Parsing input config file /home/arwed/.mplayer/input.conf
Input config file /home/arwed/.mplayer/input.conf parsed: 51 binds
get_path('19 Krieger.mp3.conf') -> '/home/arwed/.mplayer/19 Krieger.mp3.conf'

Playing /home/arwed/Music/diverse/19 Krieger.mp3.
[file] File size is 6349763 bytes
STREAM: [file] /home/arwed/Music/diverse/19 Krieger.mp3
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x8414460  
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x8414460  
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x8414460  
Checking for REAL
DEMUXER: freeing demuxer at 0x8414460  
Checking for SMJPEG
DEMUXER: freeing demuxer at 0x8414460  
DEMUXER: freeing demuxer at 0x8414cc8  
DEMUXER: freeing demuxer at 0x8414cc8  
Searching demuxer type for filename /home/arwed/Music/diverse/19 Krieger.mp3 ext: .mp3
Trying demuxer 17 based on filename extension
==> Found audio stream: 0
demux_audio: audio data 0x19D - 0x0  
Audio file detected.
Clip info:
 Title: Krieger                       
 Artist: Die Fantastischen Vier        
 Album: Lauschgift                    
 Year:     
 Comment:                               
 Genre: Hip-Hop
==========================================================================
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 16384 (LWP 27120)]
0x0813e610 in synth_1to1_MMX_s ()
(gdb) bt
#0  0x0813e610 in synth_1to1_MMX_s ()
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x813e5f0 to 0x813e630:
0x813e5f0 <synth_1to1_MMX_s+96>:        push   %edx
0x813e5f1 <synth_1to1_MMX_s+97>:        push   %ecx
0x813e5f2 <synth_1to1_MMX_s+98>:        call   *0x83e5380
0x813e5f8 <synth_1to1_MMX_s+104>:       add    $0xc,%esp
0x813e5fb <synth_1to1_MMX_s+107>:       lea    0x1(%ebx),%ecx
0x813e5fe <synth_1to1_MMX_s+110>:       sub    (%edx),%ebx
0x813e600 <synth_1to1_MMX_s+112>:       push   %ecx
0x813e601 <synth_1to1_MMX_s+113>:       lea    0x83e5440(%ebx,%ebx,1),%edx
0x813e608 <synth_1to1_MMX_s+120>:       shr    %ecx
0x813e60a <synth_1to1_MMX_s+122>:       lea    0x0(%esi),%esi
0x813e610 <synth_1to1_MMX_s+128>:       movq   (%edx),%mm0
0x813e613 <synth_1to1_MMX_s+131>:       movq   0x40(%edx),%mm4
0x813e617 <synth_1to1_MMX_s+135>:       pmaddwd (%esi),%mm0
0x813e61a <synth_1to1_MMX_s+138>:       pmaddwd 0x20(%esi),%mm4
0x813e61e <synth_1to1_MMX_s+142>:       movq   0x8(%edx),%mm1
0x813e622 <synth_1to1_MMX_s+146>:       movq   0x48(%edx),%mm5
0x813e626 <synth_1to1_MMX_s+150>:       pmaddwd 0x8(%esi),%mm1
0x813e62a <synth_1to1_MMX_s+154>:       pmaddwd 0x28(%esi),%mm5
0x813e62e <synth_1to1_MMX_s+158>:       movq   0x10(%edx),%mm2
End of assembler dump.
(gdb) info all-registers
eax            0x0      0
ecx            0x8      8
edx            0x8c78ab30       -1938248912
ebx            0xc21d2b78       -1038275720
esp            0xbfffde88       0xbfffde88
ebp            0x0      0x0
esi            0x8383aa0        137902752
edi            0x8415550        138499408
eip            0x813e610        0x813e610
eflags         0x210213 2163219
cs             0x23     35
ss             0x2b     43
ds             0x2b     43
es             0x2b     43
fs             0x0      0
gs             0x7      7
st0            -0e+4922 (raw 0xffff0000000000000000)
st1            -0e+4922 (raw 0xffff0000000000000000)
st2            -0e+4922 (raw 0xffff0000000000000000)
st3            -0e+4922 (raw 0xffff0000000000000000)
st4            -0e+4922 (raw 0xffff0000000000000000)
st5            -0e+4922 (raw 0xffff0000000000000000)
st6            -0e+4922 (raw 0xffff0000000000000000)
st7            -0e+4922 (raw 0xffff0000000000000000)
fctrl          0x37f    895
fstat          0x4025   16421
ftag           0xffff   65535
fiseg          0x23     35
fioff          0x813bd32        135511346
foseg          0x2b     43
fooff          0x8382434        137897012
fop            0x118    280
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 = {
    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 = {
    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
orig_eax       0xffffffff       -1
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 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 
    0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm6            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 
    0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm7            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 
    0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}



More information about the MPlayer-users mailing list