Newest version mpg123 crashes with "Illegal instruction" error. With gdb and core-dump I produced call stack view. // Core was generated by `mpg123 -C shazaaa.mp3'. Program terminated with signal 4, Illegal instruction. [New process 13613] #0 dct64_real_sse () at dct64_sse_float.S:52 in dct64_sse_float.S Thread 1 (process 13613): #0 dct64_real_sse () at dct64_sse_float.S:52 No locals. #1 0xb7ee30f4 in synth_1to1_stereo_sse (bandPtr_l=0xbfd580b0, bandPtr_r=0xbfd589b0, fr=0x80741f0) at synth.c:223 b0l = (float *) 0xbfd580b0 b0r = (float *) 0x807dd90 bufl = <value optimized out> bufr = (float **) 0x8076618 bo1 = 134729936 clip = -1076526928 #2 0xb7eea5a7 in do_layer3 (fr=0x80741f0) at layer3.c:2042 hybridIn = {{{0 <repeats 18 times>} <repeats 32 times>}, {{0 <repeats 18 times>} <repeats 32 times>}} hybridOut = {{{0 <repeats 32 times>} <repeats 18 times>}, {{0 <repeats 32 times>} <repeats 18 times>}} gr = 0 ch = 2 clip = 0 scalefacs = {{0 <repeats 22 times>, -1076517024, -1208719776, 134524935, -1209437312, 0, 0, -1209442316, -1209437312, 16, -1076517080, -1210330906, 16, 16, 0, -1076516924, -1209437312, 134673376}, {0 <repeats 23 times>, 134627708, 1, -1210786664, 0, -1076516904, 0, -1076516712, 0, -1076516904, -1209955699, 0, -1076516904, 0, 134578370, 1, -1076516904}} sideinfo = {main_data_begin = 0, private_bits = 0, ch = {{gr = {{scfsi = -1, part2_3_length = 0, big_values = 0, scalefac_compress = 0, block_type = 0, mixed_block_flag = 0, table_select = {0, 0, 0}, subblock_gain = {1073741824, 0, 0}, maxband = {0, 0, 0}, maxbandl = 0, maxb = 1, region1start = 2, region2start = 4, preflag = 1, scalefac_scale = 0, count1table_select = 0, full_gain = {0x0, 0x0, 0x0}, pow2gain = 0x8076d68}, {scfsi = 15, part2_3_length = 0, big_values = 0, scalefac_compress = 0, block_type = 0, mixed_block_flag = 0, table_select = {0, 0, 0}, subblock_gain = {0, 0, 0}, maxband = {0, 0, 0}, maxbandl = 4, maxb = 0, region1start = 2, region2start = 4, preflag = 1, scalefac_scale = 0, count1table_select = 0, full_gain = {0x0, 0x1, 0x0}, pow2gain = 0x8076d68}}}, { gr = {{scfsi = -1, part2_3_length = 0, big_values = 0, scalefac_compress = 0, block_type = 0, mixed_block_flag = 0, table_select = {0, 0, 0}, subblock_gain = {0, 0, 3086159524}, maxband = {3084232389, 134527436, 0}, maxbandl = 0, maxb = 1, region1start = 2, region2start = 4, preflag = 1, scalefac_scale = 0, count1table_select = 0, full_gain = { 0xb7f312fd, 0x0, 0xb7ecfe04}, pow2gain = 0x8076d68}, {scfsi = 15, part2_3_length = 0, big_values = 0, scalefac_compress = 0, block_type = 0, mixed_block_flag = 0, table_select = {0, 0, 0}, subblock_gain = {7, 3084172680, 3084165424}, maxband = {3086245828, 0, 0}, maxbandl = 1, maxb = 497, region1start = 2, region2start = 4, preflag = 1, scalefac_scale = 0, count1table_select = 0, full_gain = {0x1, 0xb7f45fc4, 0x1b80e3c5}, pow2gain = 0x8076d68}}}}} stereo = 2 single = -1 ms_stereo = 1 i_stereo = 0 sfreq = 0 stereo1 = 2 granules = 2 #3 0xb7edd8e8 in decode_the_frame (fr=0x80741f0) at libmpg123.c:692 needed_bytes = 4608 #4 0xb7edf20a in mpg123_decode_frame_64 (mh=0x80741f0, num=0x8065138, audio=0xbfd5a8cc, bytes=0xbfd5a8c8) at libmpg123.c:797 No locals. #5 0x08054143 in play_frame () at mpg123.c:560 audio = <value optimized out> mc = <value optimized out> bytes = 0 #6 0x08054e5e in main (argc=3, argv=0xbfd5aa04) at mpg123.c:1008 meta = -1076526928 dirname = 0x0 filename = 0xbfd5c3f2 "shazaaa.mp3" result = 0 parr = 64 fname = <value optimized out> libpar = <value optimized out> mp = (mpg123_pars *) 0x8066008 start_time = {tv_sec = -1208781552, tv_usec = 134627316} Current language: auto; currently asm //
Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.4.1, glibc-2.10.1-r0, 2.6.30-gentoo-r5 i686) ================================================================= System uname: Linux-2.6.30-gentoo-r5-i686-Mobile_Pentium_II-with-gentoo-2.0.1 Timestamp of tree: Thu, 20 Aug 2009 01:45:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p28 dev-java/java-config: 2.1.8-r1 dev-lang/python: 2.6.2-r1, 3.1.1 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.4-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r3 sys-apps/sandbox: 2.0 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--ask" FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.mirror.pw.edu.pl http://gentoo.prz.rzeszow.pl http://de-mirror.org/distro/gentoo http://gentoo.po.opole.pl http://src.gentoo.pl" LANG="pl_PL.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="pl en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X acl alsa apm bash-completion berkdb bzip2 cli cracklib crypt dbus dri firefox flac fortran gdbm gif gpm gtk hal iconv ipv6 isdnlog jpeg mp3 mpeg mudflap ncurses nls nptl nptlonly openmp oss pam pcmcia pcre perl png pppd python qt3support readline reflection session spl ssl svg symlink sysfs tcpd tiff unicode vim-syntax x86 xorg zlib" ALSA_CARDS="cs4236" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en" SANE_BACKENDS="mustek_pp" USERLAND="GNU" VIDEO_CARDS="neomagic" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Show 'emerge -pv media-sound/mpg123
(In reply to comment #2) > Show 'emerge -pv media-sound/mpg123 > // >>> --pretend disables --ask... removing --ask from options. These are the packages that would be merged, in order: Calculating dependencies ... done! [ebuild R ] media-sound/mpg123-1.8.1 USE="alsa ipv6 mmx network oss sse -3dnow -3dnowext (-altivec) -jack -nas -portaudio -pulseaudio -sdl" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB //
So you have P-II processor but use USE="sse". Your processor doesn't support SSE instructions that's why mpg123 is broken for you. Disable "sse" and re-emerge mpg123.
Thanks Ihar. Currently I'm updating my system after then I will deal with "sse" use flag. Probably his setting comes from profile, in my /proc/cpuinfo file I do not have such flag. Sorry for unnecessary bug report.
Recompiling mpg123 with USE="-sse" solving problem. This bug can be closed.
Fixed, 1.8.1 had stupid USE defaults... might have been my fault.