Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 387647 - media-libs/libsoundtouch - soundstretch segfaults with USE=sse2
Summary: media-libs/libsoundtouch - soundstretch segfaults with USE=sse2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on: 387769
Blocks:
  Show dependency tree
 
Reported: 2011-10-19 09:29 UTC by Gian
Modified: 2011-10-20 15:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gian 2011-10-19 09:29:09 UTC
If (and only if) the sse2 useflag is enabled in media-libs/libsoundtouch-1.5.0 the soundstretch tool reproducibly segfaults. 

Reproducible: Always

Steps to Reproduce:
1. FEATURES=splitdebug CFLAGS=-g USE=sse2 emerge libsoundtouch
2. gdb soundstretch
3. run
Actual Results:  
GNU gdb (Gentoo 7.2 p1) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/soundstretch...Reading symbols from /usr/lib64/debug/usr/bin/soundstretch.debug...done.
done.
(gdb) run
Starting program: /usr/bin/soundstretch 

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7bd99d2 in detectCPUextensions () at cpu_detect_x86_gcc.cpp:131
131     cpu_detect_x86_gcc.cpp: Datei oder Verzeichnis nicht gefunden.
        in cpu_detect_x86_gcc.cpp
(gdb) bt
#0  0x00007ffff7bd99d2 in detectCPUextensions () at cpu_detect_x86_gcc.cpp:131
#1  0x0000000000000246 in ?? ()
#2  0x00007ffff7bd63c3 in soundtouch::FIRFilter::newInstance () at FIRFilter.cpp:234
#3  0x00007ffff7bd5ce8 in soundtouch::AAFilter::AAFilter (this=0x60a120, len=32) at AAFilter.cpp:63
#4  0x00007ffff7bd775c in soundtouch::RateTransposer::RateTransposer (this=0x607010) at RateTransposer.cpp:135
#5  0x00007ffff7bd7cfd in RateTransposerFloat::RateTransposerFloat (this=0x607010) at RateTransposer.cpp:513
#6  0x00007ffff7bd7d6f in soundtouch::RateTransposer::newInstance () at RateTransposer.cpp:121
#7  0x00007ffff7bd85cf in soundtouch::SoundTouch::SoundTouch (this=0x7fffffffdb20) at SoundTouch.cpp:101
#8  0x0000000000402051 in main (nParams=1, paramStr=0x7fffffffdc78) at main.cpp:290


Expected Results:  
It shows the help message. 

Portage 2.1.10.11 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.3, glibc-2.12.2-r0, 3.0.6-gentoo x86_64)
=================================================================
System uname: Linux-3.0.6-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_M_620_@_2.67GHz-with-gentoo-2.0.3
Timestamp of tree: Wed, 19 Oct 2011 08:30:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo x-myoverlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -g"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native -g"
DISTDIR="/var/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/"
LANG="de_CH.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j5"
PKGDIR="/var/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/portage/tmp"
PORTDIR="/var/portage/tree"
PORTDIR_OVERLAY="/var/portage/myoverlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb bluetooth branding bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam fat ffmpeg firefox flac fortran gdbm gdu gif gimp git gphoto2 gpm gtk iconv icu idn ipv6 jpeg kde kipi latex lcms ldap libnotify lzma mad matroska mercurial mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg openexr opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pppd qalculate qt3support qt4 raw readline scanner sdl semantic-desktop session smp sox spell sse sse2 sse3 ssl ssse3 startup-notification svg sysfs tcpd theora threads tiff truetype udev unicode usb v4l v4l2 vdpau vorbis wifi x264 xcb xcomposite xinerama xml xmp xorg xscreensaver xulrunner xv xvid zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" NETBEANS_MODULES="api_support harness ide java nb websvccommon ruby" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18 jruby" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Tim Harder gentoo-dev 2011-10-20 02:25:44 UTC
Try 1.6.0 instead. It's being stabilized in bug #387769.
Comment 2 Gian 2011-10-20 15:04:42 UTC
You're right, 1.6 works.