With version 1.4.6 (stable) and 1.4.5: $ mp3gain test.mp3 test.mp3 Segmentation fault Downgrading to 1.4.3 $ mp3gain test.mp3 test.mp3 Recommended "Track" dB change: -2.550000 Recommended "Track" mp3 gain change: -2 Max PCM sample at current gain: 33026.156964 Max mp3 global gain field: 194 Min mp3 global gain field: 127 The problem appears to be optimization. Leaving out -O2 (or any -O option) resolves the problem.
emerge info is missing. This bug report is incomplete.
As requested: Portage 2.0.53 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-gentoo-r5 i686) ================================================================= System uname: 2.6.14-gentoo-r5 i686 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=k8 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=k8 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_GB.UTF-8" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext X aac acpi alsa apm arts audiofile avi berkdb bitmap-fonts bzip2 cdparanoia cdr crypt cups curl dbus dts dvd dvdr eds emboss encode esd exif expat faac faad fam ffmpeg flac foomaticdb fortran gd gdbm gif glut gmp gnome gphoto2 gpm gstreamer gtk gtk2 hal idn imagemagick imlib ipv6 java jpeg jpeg2k kde lcms libg++ libwww mad mikmod mmx mmxext mng motif mozilla mp3 mpeg ncurses nls nptl ogg oggvorbis opengl oss pam pcre pdflib perl png python qt quicktime readline samba sdl slang spell sse sse2 ssl tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis wifi xine xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY If I emerge version 1.4.3 the problem goes away. I noticed that 1.4.5 and 1.4.6 both include optimization flags while 1.4.3 does not. Removing the -O flag from 1.4.6's ebuild resolves the segfault.
Reopening, emerge info provided.
I suffer from the same problem. Turning off the optimization indeed does solve the problem. Thank you for posting this information!
Similar problem here. I'm working on masking out -O* and submitting an ebuild patch, but filter-flags apparently doesn't like me because it's having no effect despite working perfectly elsewhere. I'll keep trying.
Stripping -O* flags in 1.4.6-r1. Barry, thanks for reporting the issue.