[Mplayer-advusers] [BUG?] MPlayer segfaulting without reason (at start)
Lucas Vergnettes
lucas at thinko.net
Wed Mar 20 22:51:25 CET 2002
Dear MPlayer users,
I used to compile the CVS version of MPlayer regularly, but when I tried
yesterday (interrested by divx5 support), it compiled but didn't run. It
segfaults at start, with or without arguments.
Following is some info about my environment, thanks for your kind help.
Lucas Vergnettes.
--
CVS from 20/3/2002
% ./mplayer
zsh: segmentation fault ./mplayer
I tried compilation with gcc 2.95.4 and gcc 3.0.4, with and without
processor auto detection.
I'm on debian unstable, kernel 2.4.18 jp6 (preempt + xfs)
### Long hardware/software report following :
% cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 4
model name : AMD Athlon(tm) Processor
stepping : 2
cpu MHz : 998.956
cache size : 256 KB
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow
% uname -a
Linux insomnia 2.4.18-jp6 #1 lun mar 4 11:43:14 CET 2002 i686 unknown
% ls -l /lib/libc[.-]*
-rwxr-xr-x 1 root root 1170812 fév 4 08:03
/lib/libc-2.2.5.so
lrwxr-xr-x 1 root root 13 fév 5 17:37 /lib/libc.so.6
-> libc-2.2.5.so
XFree86 Version 4.1.0.1 / X Window System
GNU ld version 2.12.90.0.1 20020307 Debian/GNU Linux
% gcc -v && gcc-3.0 -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)
Reading specs from /usr/lib/gcc-lib/i386-linux/3.0.4/specs
gcc version 3.0.4
% as --version
Assembleur GNU 2.12.90.0.1 20020307 Debian/GNU Linux
##########
And the gdb trace :
(gdb) run -v
Starting program: /s/CompileFarm/Mplayer/main/./mplayer -v
Program received signal SIGSEGV, Segmentation fault.
0x40008ee3 in ?? ()
(gdb) bt
#0 0x40008ee3 in ?? ()
#1 0x40003668 in ?? ()
#2 0x4000c8f9 in ?? ()
#3 0x4000244a in ?? ()
#4 0x400023bb in ?? ()
(gdb) disass $eip-32 $eip+32
Dump of assembler code from 0x40008ec3 to 0x40008f03:
0x40008ec3: (bad)
0x40008ec4: add %eax,(%eax)
0x40008ec6: add %cl,0xffdeb783(%ebp)
0x40008ecc: call *0xffffff8d(%eax)
0x40008ecf: adc $0xffffffde,%esp
0x40008ed2: (bad)
0x40008ed3: call *0xffffffe8(%eax)
0x40008ed6: es
0x40008ed7: dec %ecx
0x40008ed8: add %al,(%eax)
0x40008eda: lea 0x0(%esi),%esi
0x40008ee0: mov 0xffffff94(%ebp),%esi
0x40008ee3: add %esi,(%eax)
0x40008ee5: add $0x8,%edx
0x40008ee8: cmp %ecx,%edx
0x40008eea: jb 0x40008eb0
0x40008eec: mov 0xffffffa4(%ebp),%edx
0x40008eef: mov 0xdc(%edx),%eax
0x40008ef5: test %eax,%eax
0x40008ef7: je 0x400091d5
0x40008efd: mov 0x4(%eax),%eax
0x40008f00: mov %eax,0xffffff8c(%ebp)
End of assembler dump.
### And some lines of strace
open("/lib/libslang.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\302\0"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0644, st_size=337648, ...}) = 0
old_mmap(NULL, 394304, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x40622000
mprotect(0x40670000, 74816, PROT_NONE) = 0
old_mmap(0x40670000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x4d000) = 0x40670000
old_mmap(0x40676000, 50240, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40676000
close(3) = 0
open("/usr/lib/libgpm.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\32"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0644, st_size=18596, ...}) = 0
old_mmap(NULL, 22520, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x40683000
mprotect(0x40688000, 2040, PROT_NONE) = 0
old_mmap(0x40688000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x4000) = 0x40688000
close(3) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40689000
mprotect(0x403ec000, 335872, PROT_READ|PROT_WRITE) = 0
mprotect(0x403ec000, 335872, PROT_READ|PROT_EXEC) = 0
mprotect(0x402ea000, 389120, PROT_READ|PROT_WRITE) = 0
mprotect(0x402ea000, 389120, PROT_READ|PROT_EXEC) = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
More information about the MPlayer-advusers
mailing list