>s> I tryed to emerge mplayer many times. >s> With default, und non default CFALGS, CHOST ... # emerge mplayer # CFLAGS= CHOST= CXXFLAGS= emerge mplayer # CFLAGS=i686-pc-linux-gnu CHOST="-mcpu=athlon -O2 -pipe" CXXFLAGS="-mcpu=athlon -O2 -pipe" emerge mplayer # DEBUGBUILD="yes" CFLAGS="-ggdb" CXXFLAGS="-ggdb" emerge mplayer >s> but always the same: $ mplayer MPlayer 0.90rc2-3.2.2 (C) 2000-2002 Arpad Gereoffy (see DOCS) CPU: Advanced Micro Devices (Family: 6, Stepping: 0) 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/share/mplayer/mplayer.conf Illegal instruction >s> it this can some one help: $ gdb /usr/bin/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"... (no debugging symbols found)... (gdb) run Starting program: /usr/bin/mplayer (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...[New Thread 16384 (LWP 4761)] (no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... MPlayer 0.90rc2-3.2.2 (C) 2000-2002 Arpad Gereoffy (see DOCS) CPU: Advanced Micro Devices (Family: 6, Stepping: 0) 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/share/mplayer/mplayer.conf (no debugging symbols found)...(no debugging symbols found)... ---Type <return> to continue, or q <return> to quit--- Program received signal SIGILL, Illegal instruction. [Switching to Thread 16384 (LWP 4761)] 0x08084e04 in m_config_print_option_list () (gdb) bt full #0 0x08084e04 in m_config_print_option_list () No symbol table info available. #1 0xbfffe6d0 in ?? () No symbol table info available. (gdb) >s> and som info about my system: # emerge info Portage 2.0.47-r7 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r2) ================================================================= System uname: 2.4.20 i686 mobile AMD Athlon(tm) XP 1600+ GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages/marsas" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="directfb gdbm slang ggi -3dfx 3dnow aalib -acl acpi -afs -alsa -apache2 apm -arts -atlas avi berkdb -bonobo -canna cdr -cjk crypt -cups dga directf -doc dvd encode esd -etherial -evo -ev6 fbcon flash -freewnn -gb gif -gnome -gphoto2 gpm -gps gtk gtk2 -gtkhtml -guile -icc -icc-pgo -imap imlib innodb ipv6 -java -jikes jpeg -junit -kde -kerberos lcms -ldap -leim -libg++ -libgda libwww -matrox -maildir mbox mikmod mmx motif mozilla mpeg -mule mysql nas ncurses -nls -oav -oci8 -odbc oggvorbis opengl -oss pam pcmcia pdflib perl pic plotutils png -postgres python qt qtmt quicktime readline -ruby samba sasl -scanner sdl slan -slp -snmp -socks5 -spell sse ssl svga tcltk tcpd -tetex tiff -truetype usb -voodoo3 -wavelan wmf X xface xml xml2 xmms xv -zeo zlib x86" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-mcpu=athlon-xp -O3 -pipe" CXXFLAGS="-mcpu=athlon-xp -O3 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache userpriv userandbox" # cat /proc/cpuinfo processor : 0 vendor_id : AuthenticAMD cpu family : 6 model : 8 model name : mobile AMD Athlon(tm) XP 1600+ stepping : 0 cpu MHz : 500.019 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 pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow bogomips : 997.08 # gcc -v Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/specs Configured with: /var/tmp/portage/gcc-3.2.2/work/gcc-3.2.2/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.2 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2/info --enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-languages=c,c++,ada,f77,objc --enable-threads=posix --enable-long-long --disable-checking --enable-cstdio=stdio --enable-clocale=generic --enable-__cxa_atexit --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/include/g++-v3 --with-local-prefix=/usr/local --enable-shared --disable-nls Thread model: posix gcc version 3.2.2 Reproducible: Always Steps to Reproduce:
did you try rc4 ?
0.90_rc4 is the same. # epm -qi mplayer Name : mplayer Version : 0.90_rc4 Release : Slot: 0 Install date: Fri Feb 28 20:02:29 2003 Build Host: i686-pc-linux-gnu Group : media-video License: GPL-2 Size : TBD Packager : azarah Description : Media Player for Linux # mplayer MPlayer 0.90rc4-3.2.2 (C) 2000-2003 Arpad Gereoffy (see DOCS) CPU: Advanced Micro Devices (Family: 6, Stepping: 0) 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/share/mplayer/mplayer.conf Illegal instruction # gdb /usr/bin/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"... (no debugging symbols found)... (gdb) run Starting program: /usr/bin/mplayer (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)...[New Thread 16384 (LWP 14579)] (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... ---Type <return> to continue, or q <return> to quit--- (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... MPlayer 0.90rc4-3.2.2 (C) 2000-2003 Arpad Gereoffy (see DOCS) CPU: Advanced Micro Devices (Family: 6, Stepping: 0) 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/share/mplayer/mplayer.conf (no debugging symbols found)... Program received signal SIGILL, Illegal instruction. [Switching to Thread 16384 (LWP 14579)] 0x0808b5c4 in m_config_print_option_list () (gdb) bt #0 0x0808b5c4 in m_config_print_option_list () #1 0xbfffd6b0 in ?? () (gdb) bt full #0 0x0808b5c4 in m_config_print_option_list () No symbol table info available. #1 0xbfffd6b0 in ?? () No symbol table info available. (gdb)
Created attachment 8832 [details] mplayer ebuild with debugging enabled. test case
Created attachment 8833 [details] mplayer ebuild with debugging enabled. test case
try building with debugging on find the line in the mplayer rc4 ebuild: local myconf="" and add: local myconf="--enable-debug=3" emerge mplayer again and gdb will now tell the exact line where the failure occurred
Created attachment 8839 [details] dev-util/strace-4.4-r1 output of mplayer-0.90_rc4
# cd /usr/portage/media-video/mplayer/ # grep -A 4 -B 4 -R debug . ./mplayer-0.90_rc2.ebuild-src_compile() { ./mplayer-0.90_rc2.ebuild- ./mplayer-0.90_rc2.ebuild- use matrox && check_KV ./mplayer-0.90_rc2.ebuild- ./mplayer-0.90_rc2.ebuild: local myconf="--enable-debug=3" ./mplayer-0.90_rc2.ebuild- ./mplayer-0.90_rc2.ebuild- use 3dnow \ ./mplayer-0.90_rc2.ebuild- || myconf="${myconf} --disable-3dnow --disable-3dnowex" ./mplayer-0.90_rc2.ebuild- -- ./mplayer-0.90_rc4.ebuild-src_compile() { ./mplayer-0.90_rc4.ebuild- ./mplayer-0.90_rc4.ebuild- use matrox && check_KV ./mplayer-0.90_rc4.ebuild- ./mplayer-0.90_rc4.ebuild: local myconf="--enable-debug=3" ./mplayer-0.90_rc4.ebuild- ./mplayer-0.90_rc4.ebuild- use 3dnow \ ./mplayer-0.90_rc4.ebuild- || myconf="${myconf} --disable-3dnow --disable-3dnowex" ./mplayer-0.90_rc4.ebuild- >s> no try rc2 media-video/mplayer selected: none protected: 0.90_rc2 omitted: none >s> with --enable-debug=3 bash-2.05b$ mplayer MPlayer 0.90rc2-3.2.2 (C) 2000-2002 Arpad Gereoffy (see DOCS) CPU: Advanced Micro Devices (Family: 6, Stepping: 0) 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/share/mplayer/mplayer.conf Illegal instruction bash-2.05b$ gdb /usr/bin/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"... (no debugging symbols found)... (gdb) run Starting program: /usr/bin/mplayer (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...[New Thread 16384 (LWP 6852)] (no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... MPlayer 0.90rc2-3.2.2 (C) 2000-2002 Arpad Gereoffy (see DOCS) CPU: Advanced Micro Devices (Family: 6, Stepping: 0) 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/share/mplayer/mplayer.conf (no debugging symbols found)...(no debugging symbols found)... ---Type <return> to continue, or q <return> to quit--- Program received signal SIGILL, Illegal instruction. [Switching to Thread 16384 (LWP 6852)] 0x08084d28 in m_config_print_option_list () (gdb) bt full #0 0x08084d28 in m_config_print_option_list () No symbol table info available. #1 0x08084639 in m_config_register_options () No symbol table info available. #2 0x080848a9 in m_config_set_option () No symbol table info available. #3 0x080869f7 in m_config_parse_config_file () No symbol table info available. #4 0x0806df8f in parse_cfgfiles () No symbol table info available. #5 0x0806e4fe in main () No symbol table info available. #6 0x4111adc4 in __libc_start_main () from /lib/libc.so.6 No symbol table info available. (gdb) quit The program is running. Exit anyway? (y or n) y bash-2.05b$ >s> trying 0.90_rc4 mplayer MPlayer 0.90rc4-3.2.2 (C) 2000-2003 Arpad Gereoffy (see DOCS) CPU: Advanced Micro Devices (Family: 6, Stepping: 0) 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/share/mplayer/mplayer.conf Illegal instruction bash-2.05b$ gdb /usr/bin/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"... (no debugging symbols found)... (gdb) run Starting program: /usr/bin/mplayer (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)...[New Thread 16384 (LWP 6983)] (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... ---Type <return> to continue, or q <return> to quit--- (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... MPlayer 0.90rc4-3.2.2 (C) 2000-2003 Arpad Gereoffy (see DOCS) CPU: Advanced Micro Devices (Family: 6, Stepping: 0) 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/share/mplayer/mplayer.conf (no debugging symbols found)... Program received signal SIGILL, Illegal instruction. [Switching to Thread 16384 (LWP 6983)] 0x0808aa78 in m_config_print_option_list () (gdb) bt full #0 0x0808aa78 in m_config_print_option_list () No symbol table info available. #1 0x0808a2f9 in m_config_register_options () No symbol table info available. #2 0x0808a5d9 in m_config_set_option () No symbol table info available. #3 0x0808c6f7 in m_config_parse_config_file () No symbol table info available. #4 0x08070fbf in parse_cfgfiles () No symbol table info available. #5 0x08071756 in main () No symbol table info available. #6 0x41213dc4 in __libc_start_main () from /lib/libc.so.6 No symbol table info available. (gdb) quit The program is running. Exit anyway? (y or n) y bash-2.05b$ >s> maybe someone wants core, binary? bash-2.05b$ strace /usr/bin/mplayer &> strace.log
Remove --enable-shared-pp from configure, and try again ?
Illegal instruction without --enable-shared-pp on mplayer-0.90_rc4
Do you happen to be using a 2.4.20 kernel ? When you try nano or top, does it do "Illegal instruction" also ?
>s>my kernel is 2.4.20 $ uname -a Linux marsas.loc 2.4.20 #5 Thu Feb 27 13:43:40 Local time zone must be set--see zic manu i686 mobile AMD Athlon(tm) XP 1600+ AuthenticAMD GNU/Linux >s> :) nano, X11, top, xine, mozilla, mc, etc. works ok. There isn't any another one program that does illegal operation.
Please try rc5, or try with 2.4.19 kernel.
rc5 does illegal to: $ mplayer MPlayer 0.90rc5-3.2.1 (C) 2000-2003 Arpad Gereoffy (see DOCS) CPU: Advanced Micro Devices (Family: 6, Stepping: 0) 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/share/mplayer/mplayer.conf Illegal instruction $ gmplayer MPlayer 0.90rc5-3.2.1 (C) 2000-2003 Arpad Gereoffy (see DOCS) CPU: Advanced Micro Devices (Family: 6, Stepping: 0) 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/share/mplayer/mplayer.conf Illegal instruction
sorry i can't do test with 2.4.19
could you please attach your /usr/share/mplayer/mplayer.conf
I ran into the same problem trying to see the animatrix video. I think I know what is going wrong. I have fairly relaxed CFLAGS: "-Os -march=pentium3 -fomit-frame-pointer -pipe" but when I watched mplayer compiling I saw a lot of "-O4" and "-march=pentium4". I've got an Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz. My guess is that we are encountering the fabled gcc "pentium4 bug". And I guess further that this bug is *very* CPU dependent: all Pentium 4's are equal but some are more equal than others. I will test this by manually compiling with less agressive gcc flags. Any pointers to tips on how to do this would be appreciated. I'll start out by re-reading the Gentoo docs on manually ebuilding step by step. A grep "pentium" of the ebuilds turned up nothing so I think the aggresive flags are coming from a makefile(s). If I am correct, for extra credit we could try to get a list of which CPU models barf here. That info might be very useful to the gcc folks. It might also be useful to us so that everyone can emerge a working mplayer.
Same goes here. Removing "unset CFLAGS CXXFLAGS" in the ebuild made the problem disappear. Athlon XP in laptop. Using own CFLAGS works without any troubles.
So basically mplayer's configure script detects your processor type wrong ? Either please attach a full log of 'emerge mplayer', or try to figure out what it sets CFLAGS to, and if possible what flag causes the problem.
[host]$ mplayer MPlayer 0.90-3.2.3 (C) 2000-2003 Arpad Gereoffy (see DOCS) CPU: Advanced Micro Devices (Family: 6, Stepping: 0) 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/share/mplayer/mplayer.conf Illegal instruction [host]$ gdb -q /usr/bin/mplayer (no debugging symbols found)...(gdb) run Starting program: /usr/bin/mplayer (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)...[New Thread 16384 (LWP 6316)] (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... ---Type <return> to continue, or q <return> to quit--- (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... MPlayer 0.90-3.2.3 (C) 2000-2003 Arpad Gereoffy (see DOCS) CPU: Advanced Micro Devices (Family: 6, Stepping: 0) 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/share/mplayer/mplayer.conf (no debugging symbols found)...(no debugging symbols found)... Program received signal SIGILL, Illegal instruction. [Switching to Thread 16384 (LWP 6316)] 0x0808aad4 in m_config_print_option_list () (gdb) disassemble 0x0808aaa0 Dump of assembler code for function m_config_print_option_list: 0x808a860 <m_config_print_option_list>: push %ebp 0x808a861 <m_config_print_option_list+1>: push %edi 0x808a862 <m_config_print_option_list+2>: push %esi 0x808a863 <m_config_print_option_list+3>: push %ebx 0x808a864 <m_config_print_option_list+4>: sub $0xbc,%esp 0x808a86a <m_config_print_option_list+10>: mov 0xd0(%esp,1),%ebx 0x808a871 <m_config_print_option_list+17>: movl $0x0,0x2c(%esp,1) 0x808a879 <m_config_print_option_list+25>: mov (%ebx),%eax 0x808a87b <m_config_print_option_list+27>: test %eax,%eax 0x808a87d <m_config_print_option_list+29>: jne 0x808a890 <m_config_print_option_list+48> 0x808a87f <m_config_print_option_list+31>: add $0xbc,%esp 0x808a885 <m_config_print_option_list+37>: pop %ebx 0x808a886 <m_config_print_option_list+38>: pop %esi 0x808a887 <m_config_print_option_list+39>: pop %edi 0x808a888 <m_config_print_option_list+40>: pop %ebp 0x808a889 <m_config_print_option_list+41>: ret 0x808a88a <m_config_print_option_list+42>: lea 0x0(%esi),%esi 0x808a890 <m_config_print_option_list+48>: movl $0x83003e0,(%esp,1) 0x808a897 <m_config_print_option_list+55>: call 0x806e09c <puts> 0x808a89c <m_config_print_option_list+60>: mov (%ebx),%esi 0x808a89e <m_config_print_option_list+62>: test %esi,%esi ---Type <return> to continue, or q <return> to quit--- 0x808a8a0 <m_config_print_option_list+64>: je 0x808a959 <m_config_print_option_list+249> 0x808a8a6 <m_config_print_option_list+70>: mov $0x830020c,%ebp 0x808a8ab <m_config_print_option_list+75>: nop 0x808a8ac <m_config_print_option_list+76>: lea 0x0(%esi,1),%esi 0x808a8b0 <m_config_print_option_list+80>: mov 0x8(%esi),%ebx 0x808a8b3 <m_config_print_option_list+83>: mov 0x8(%ebx),%edx 0x808a8b6 <m_config_print_option_list+86>: testb $0x1,0xc(%edx) 0x808a8ba <m_config_print_option_list+90>: jne 0x808a94f <m_config_print_option_list+239> 0x808a8c0 <m_config_print_option_list+96>: testb $0x1,0xc(%ebx) 0x808a8c4 <m_config_print_option_list+100>: jne 0x808a992 <m_config_print_option_list+306> 0x808a8ca <m_config_print_option_list+106>: movw $0x6f4e,0x70(%esp,1) 0x808a8d1 <m_config_print_option_list+113>: movb $0x0,0x72(%esp,1) 0x808a8d6 <m_config_print_option_list+118>: testb $0x2,0xc(%ebx) 0x808a8da <m_config_print_option_list+122>: jne 0x808a972 <m_config_print_option_list+274> 0x808a8e0 <m_config_print_option_list+128>: movw $0x6f4e,0x30(%esp,1) 0x808a8e7 <m_config_print_option_list+135>: movb $0x0,0x32(%esp,1) 0x808a8ec <m_config_print_option_list+140>: lea 0x30(%esp,1),%edi 0x808a8f0 <m_config_print_option_list+144>: testb $0x4,0xc(%ebx) 0x808a8f4 <m_config_print_option_list+148>: mov $0x830020f,%edx ---Type <return> to continue, or q <return> to quit--- 0x808a8f9 <m_config_print_option_list+153>: mov $0x830020f,%ecx 0x808a8fe <m_config_print_option_list+158>: cmovne %ebp,%edx 0x808a901 <m_config_print_option_list+161>: mov %edx,0x1c(%esp,1) 0x808a905 <m_config_print_option_list+165>: testb $0x8,0xc(%ebx) 0x808a909 <m_config_print_option_list+169>: mov $0x830020f,%edx 0x808a90e <m_config_print_option_list+174>: cmovne %ebp,%ecx 0x808a911 <m_config_print_option_list+177>: mov %ecx,0x18(%esp,1) 0x808a915 <m_config_print_option_list+181>: testb $0x10,0xc(%ebx) 0x808a919 <m_config_print_option_list+185>: lea 0x70(%esp,1),%ebx 0x808a91d <m_config_print_option_list+189>: mov %edi,0x10(%esp,1) 0x808a921 <m_config_print_option_list+193>: mov %ebx,0xc(%esp,1) 0x808a925 <m_config_print_option_list+197>: cmove %ebp,%edx 0x808a928 <m_config_print_option_list+200>: mov %edx,0x14(%esp,1) 0x808a92c <m_config_print_option_list+204>: mov 0x8(%esi),%ecx 0x808a92f <m_config_print_option_list+207>: mov 0x8(%ecx),%edx 0x808a932 <m_config_print_option_list+210>: mov (%edx),%edi 0x808a934 <m_config_print_option_list+212>: mov %edi,0x8(%esp,1) 0x808a938 <m_config_print_option_list+216>: mov 0x4(%esi),%ebx 0x808a93b <m_config_print_option_list+219>: movl $0x8300440,(%esp,1) 0x808a942 <m_config_print_option_list+226>: mov %ebx,0x4(%esp,1) 0x808a946 <m_config_print_option_list+230>: call 0x806f12c <printf> 0x808a94b <m_config_print_option_list+235>: incl 0x2c(%esp,1) 0x808a94f <m_config_print_option_list+239>: mov (%esi),%esi ---Type <return> to continue, or q <return> to quit--- 0x808a951 <m_config_print_option_list+241>: test %esi,%esi 0x808a953 <m_config_print_option_list+243>: jne 0x808a8b0 <m_config_print_option_list+80> 0x808a959 <m_config_print_option_list+249>: mov 0x2c(%esp,1),%esi 0x808a95d <m_config_print_option_list+253>: movl $0x8300213,(%esp,1) 0x808a964 <m_config_print_option_list+260>: mov %esi,0x4(%esp,1) 0x808a968 <m_config_print_option_list+264>: call 0x806f12c <printf> 0x808a96d <m_config_print_option_list+269>: jmp 0x808a87f <m_config_print_option_list+31> 0x808a972 <m_config_print_option_list+274>: flds 0x14(%ebx) 0x808a975 <m_config_print_option_list+277>: lea 0x30(%esp,1),%edi 0x808a979 <m_config_print_option_list+281>: movl $0x8300227,0x4(%esp,1) 0x808a981 <m_config_print_option_list+289>: mov %edi,(%esp,1) 0x808a984 <m_config_print_option_list+292>: fstpl 0x8(%esp,1) 0x808a988 <m_config_print_option_list+296>: call 0x806fbbc <sprintf> 0x808a98d <m_config_print_option_list+301>: jmp 0x808a8f0 <m_config_print_option_list+144> 0x808a992 <m_config_print_option_list+306>: flds 0x10(%ebx) 0x808a995 <m_config_print_option_list+309>: lea 0x70(%esp,1),%ecx 0x808a999 <m_config_print_option_list+313>: movl $0x8300227,0x4(%esp,1) 0x808a9a1 <m_config_print_option_list+321>: mov %ecx,(%esp,1) 0x808a9a4 <m_config_print_option_list+324>: fstpl 0x8(%esp,1) 0x808a9a8 <m_config_print_option_list+328>: call 0x806fbbc <sprintf> ---Type <return> to continue, or q <return> to quit--- 0x808a9ad <m_config_print_option_list+333>: jmp 0x808a8d6 <m_config_print_option_list+118> 0x808a9b2 <m_config_print_option_list+338>: nop 0x808a9b3 <m_config_print_option_list+339>: nop 0x808a9b4 <m_config_print_option_list+340>: nop 0x808a9b5 <m_config_print_option_list+341>: nop 0x808a9b6 <m_config_print_option_list+342>: nop 0x808a9b7 <m_config_print_option_list+343>: nop 0x808a9b8 <m_config_print_option_list+344>: nop 0x808a9b9 <m_config_print_option_list+345>: nop 0x808a9ba <m_config_print_option_list+346>: nop 0x808a9bb <m_config_print_option_list+347>: nop 0x808a9bc <m_config_print_option_list+348>: nop 0x808a9bd <m_config_print_option_list+349>: nop 0x808a9be <m_config_print_option_list+350>: nop 0x808a9bf <m_config_print_option_list+351>: nop 0x808a9c0 <m_config_print_option_list+352>: mov 0x8(%esp,1),%ecx 0x808a9c4 <m_config_print_option_list+356>: mov 0x4(%esp,1),%eax 0x808a9c8 <m_config_print_option_list+360>: mov 0xc(%esp,1),%edx 0x808a9cc <m_config_print_option_list+364>: test %ecx,%ecx 0x808a9ce <m_config_print_option_list+366>: je 0x808a9f0 <m_config_print_option_list+400> 0x808a9d0 <m_config_print_option_list+368>: test %edx,%edx ---Type <return> to continue, or q <return> to quit--- 0x808a9d2 <m_config_print_option_list+370>: je 0x808a9f0 <m_config_print_option_list+400> 0x808a9d4 <m_config_print_option_list+372>: mov 0x8(%eax),%eax 0x808a9d7 <m_config_print_option_list+375>: mov 0x8(%eax),%eax 0x808a9da <m_config_print_option_list+378>: mov %edx,0x8(%esp,1) 0x808a9de <m_config_print_option_list+382>: mov %ecx,0x4(%esp,1) 0x808a9e2 <m_config_print_option_list+386>: mov %eax,0xc(%esp,1) 0x808a9e6 <m_config_print_option_list+390>: jmp 0x806f1bc <memcpy> 0x808a9eb <m_config_print_option_list+395>: nop 0x808a9ec <m_config_print_option_list+396>: lea 0x0(%esi,1),%esi 0x808a9f0 <m_config_print_option_list+400>: nop 0x808a9f1 <m_config_print_option_list+401>: ret 0x808a9f2 <m_config_print_option_list+402>: lea 0x0(%esi,1),%esi 0x808a9f9 <m_config_print_option_list+409>: lea 0x0(%edi,1),%edi 0x808aa00 <m_config_print_option_list+416>: sub $0x2c,%esp 0x808aa03 <m_config_print_option_list+419>: mov 0x40(%esp,1),%edx 0x808aa07 <m_config_print_option_list+423>: mov %ebx,0x1c(%esp,1) 0x808aa0b <m_config_print_option_list+427>: mov %esi,0x20(%esp,1) 0x808aa0f <m_config_print_option_list+431>: mov %edi,0x24(%esp,1) 0x808aa13 <m_config_print_option_list+435>: mov %ebp,0x28(%esp,1) 0x808aa17 <m_config_print_option_list+439>: mov 0x30(%esp,1),%edi 0x808aa1b <m_config_print_option_list+443>: mov 0x38(%esp,1),%ebx 0x808aa1f <m_config_print_option_list+447>: mov 0x3c(%esp,1),%esi ---Type <return> to continue, or q <return> to quit--- 0x808aa23 <m_config_print_option_list+451>: test %edx,%edx 0x808aa25 <m_config_print_option_list+453>: jne 0x808aba0 <m_config_print_option_list+832> 0x808aa2b <m_config_print_option_list+459>: movl $0x8300502,0x4(%esp,1) 0x808aa33 <m_config_print_option_list+467>: mov %ebx,(%esp,1) 0x808aa36 <m_config_print_option_list+470>: call 0x806f4cc <strcasecmp> 0x808aa3b <m_config_print_option_list+475>: test %eax,%eax 0x808aa3d <m_config_print_option_list+477>: je 0x808aad0 <m_config_print_option_list+624> 0x808aa43 <m_config_print_option_list+483>: movl $0x830e096,0x4(%esp,1) 0x808aa4b <m_config_print_option_list+491>: mov %ebx,(%esp,1) 0x808aa4e <m_config_print_option_list+494>: call 0x806f4cc <strcasecmp> 0x808aa53 <m_config_print_option_list+499>: test %eax,%eax 0x808aa55 <m_config_print_option_list+501>: je 0x808aad0 <m_config_print_option_list+624> 0x808aa57 <m_config_print_option_list+503>: movl $0x8300506,0x4(%esp,1) 0x808aa5f <m_config_print_option_list+511>: mov %ebx,(%esp,1) 0x808aa62 <m_config_print_option_list+514>: call 0x806f4cc <strcasecmp> 0x808aa67 <m_config_print_option_list+519>: test %eax,%eax 0x808aa69 <m_config_print_option_list+521>: je 0x808aad0 <m_config_print_option_list+624> 0x808aa6b <m_config_print_option_list+523>: movl $0x8300509,0x4(%esp,1) 0x808aa73 <m_config_print_option_list+531>: mov %ebx,(%esp,1) ---Type <return> to continue, or q <return> to quit--- 0x808aa76 <m_config_print_option_list+534>: call 0x806f4cc <strcasecmp> 0x808aa7b <m_config_print_option_list+539>: test %eax,%eax 0x808aa7d <m_config_print_option_list+541>: je 0x808aad0 <m_config_print_option_list+624> 0x808aa7f <m_config_print_option_list+543>: movl $0x8340a89,0x4(%esp,1) 0x808aa87 <m_config_print_option_list+551>: mov %ebx,(%esp,1) 0x808aa8a <m_config_print_option_list+554>: call 0x806f4cc <strcasecmp> 0x808aa8f <m_config_print_option_list+559>: test %eax,%eax 0x808aa91 <m_config_print_option_list+561>: je 0x808aad0 <m_config_print_option_list+624> 0x808aa93 <m_config_print_option_list+563>: movl $0x830050e,0x4(%esp,1) 0x808aa9b <m_config_print_option_list+571>: mov %ebx,(%esp,1) 0x808aa9e <m_config_print_option_list+574>: call 0x806f4cc <strcasecmp> 0x808aaa3 <m_config_print_option_list+579>: test %eax,%eax 0x808aaa5 <m_config_print_option_list+581>: je 0x808aad0 <m_config_print_option_list+624> 0x808aaa7 <m_config_print_option_list+583>: movl $0x83082dc,0x4(%esp,1) 0x808aaaf <m_config_print_option_list+591>: mov %ebx,(%esp,1) 0x808aab2 <m_config_print_option_list+594>: call 0x806f4cc <strcasecmp> 0x808aab7 <m_config_print_option_list+599>: test %eax,%eax 0x808aab9 <m_config_print_option_list+601>: je 0x808aad0 <m_config_print_option_list+624> 0x808aabb <m_config_print_option_list+603>: movzbl (%ebx),%ebp ---Type <return> to continue, or q <return> to quit--- 0x808aabe <m_config_print_option_list+606>: cmp $0x31,%ebp 0x808aac1 <m_config_print_option_list+609>: jne 0x808aaf4 <m_config_print_option_list+660> 0x808aac3 <m_config_print_option_list+611>: cmpb $0x0,0x1(%ebx) 0x808aac7 <m_config_print_option_list+615>: jne 0x808aaf4 <m_config_print_option_list+660> 0x808aac9 <m_config_print_option_list+617>: lea 0x0(%esi,1),%esi 0x808aad0 <m_config_print_option_list+624>: test %esi,%esi 0x808aad2 <m_config_print_option_list+626>: je 0x808aadb <m_config_print_option_list+635> 0x808aad4 <m_config_print_option_list+628>: cvttss2si 0x14(%edi),%eax 0x808aad9 <m_config_print_option_list+633>: mov %eax,(%esi) 0x808aadb <m_config_print_option_list+635>: mov $0x1,%eax 0x808aae0 <m_config_print_option_list+640>: mov 0x1c(%esp,1),%ebx 0x808aae4 <m_config_print_option_list+644>: mov 0x20(%esp,1),%esi 0x808aae8 <m_config_print_option_list+648>: mov 0x24(%esp,1),%edi 0x808aaec <m_config_print_option_list+652>: mov 0x28(%esp,1),%ebp 0x808aaf0 <m_config_print_option_list+656>: add $0x2c,%esp 0x808aaf3 <m_config_print_option_list+659>: ret 0x808aaf4 <m_config_print_option_list+660>: movl $0x833c51b,0x4(%esp,1) 0x808aafc <m_config_print_option_list+668>: mov %ebx,(%esp,1) 0x808aaff <m_config_print_option_list+671>: call 0x806f4cc <strcasecmp> 0x808ab04 <m_config_print_option_list+676>: test %eax,%eax ---Type <return> to continue, or q <return> to quit---q Quit (gdb) q The program is running. Exit anyway? (y or n) y cvttss2si instruction does some bad job. 1. from which instruction subset comes this opcode (mmx/3dnow/sse ...) 2. find function/.c file which produse this binary code 3. submit smal test case to mplayer and gcc devel teams thanks.
is this still an issue ?
$ emerge mplayer .... $ epm -qi mplayer Name : mplayer Version : 0.92 Release : Slot: 0 Install date: Wed Oct 8 00:00:06 2003 Build Host: i686-pc-linux-gnu Group : media-video License: GPL-2 Size : TBD Packager : mholzer URL : http://www.mplayerhq.hu/ Description : Media Player for Linux # mplayer MPlayer 0.92-3.2.3 (C) 2000-2003 MPlayer Team CPU: Advanced Micro Devices (Family: 6, Stepping: 0) 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/share/mplayer/mplayer.conf Illegal instruction # gcc --version gcc (GCC) 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice) Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I think this is gcc, issue
Hmmm, I had a similar problem once... Please check the "sse-status" of you athlon-xp. If you do dual-boot, boot into win and use some cpuinfo-prog to check if sse is enabled (if you have tmpeg you can see it in it's option dialog as well). If sse is disabled, check your motherboard vendor for bios-updates (I had to). If sse is enabled, boot linux and check /proc/cpuinfo for sse. If it's not there it's not enabled by the kernel, so everything using sse will lead to an illegal instruction. Try some other kernel, I know the latest tested gentoo-sources work well on my machine but if you are willing to play around a bit I recommend the 2.6.0 series. Please post your results here. Cheers, Marc
It work's! 2.4.23 enables sse on AMD Athlon XP on boot. $ uname -r 2.4.23 $ cat /proc/cpuinfo processor : 0 vendor_id : AuthenticAMD cpu family : 6 model : 8 model name : mobile AMD Athlon(tm) XP 1600+ stepping : 0 cpu MHz : 500.031 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 pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow bogomips : 997.08 $ mplayer MPlayer 0.92-3.2.3 (C) 2000-2003 MPlayer Team CPU: Advanced Micro Devices (Family: 6, Stepping: 0) 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/share/mplayer/mplayer.conf Reading config file /home/rokas/.mplayer/config Reading /home/rokas/.mplayer/codecs.conf: can't open '/home/rokas/.mplayer/codecs.conf': No such file or directory Reading /usr/share/mplayer/codecs.conf: 50 audio & 136 video codecs Usage: mplayer [options] [url|path/]filename Basic options: (complete list in the man page) -vo <drv[:dev]> select video output driver & device ('-vo help' for a list) -ao <drv[:dev]> select audio output driver & device ('-ao help' for a list) -vcd <trackno> play VCD (Video CD) track from device instead of plain file -dvd <titleno> play DVD title from device instead of plain file -alang/-slang select DVD audio/subtitle language (by 2-char country code) -ss <timepos> seek to given (seconds or hh:mm:ss) position -nosound do not play sound -fs fullscreen playback (or -vm, -zoom, details in the man page) -x <x> -y <y> set display resolution (for use with -vm or -zoom) -sub <file> specify subtitle file to use (also see -subfps, -subdelay) -playlist <file> specify playlist file -vid x -aid y select video (x) and audio (y) stream to play -fps x -srate y change video (x fps) and audio (y Hz) rate -pp <quality> enable postprocessing filter (details in the man page) -framedrop enable frame dropping (for slow machines) Basic keys: (complete list in the man page, also check input.conf) <- or -> seek backward/forward 10 seconds up or down seek backward/forward 1 minute pgup or pgdown seek backward/forward 10 minutes < or > step backward/forward in playlist p or SPACE pause movie (press any key to continue) q or ESC stop playing and quit program + or - adjust audio delay by +/- 0.1 second o cycle OSD mode: none / seekbar / seekbar + timer * or / increase or decrease PCM volume z or x adjust subtitle delay by +/- 0.1 second r or t adjust subtitle position up/down, also see -vop expand * * * SEE THE MAN PAGE FOR DETAILS, FURTHER (ADVANCED) OPTIONS AND KEYS * * *
btw: early test shows, that mplayer was compiled with CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx now it's compiles as: CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE this means, that mplayer knows that i did't have sse, but uses cvttss2si instruction. This can be mplayer/gcc problem. If this code with cvttss2si is generated from gcc, then this is gcc problem, or problem with wrong gcc parameter. OR this code is optimised in mplayer using asm, and this asm code is wrong writen.