Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 402271 - sys-apps/sandbox-2.5 segfaults when built with sys-devel/binutils-2.22.52.0.1
Summary: sys-apps/sandbox-2.5 segfaults when built with sys-devel/binutils-2.22.52.0.1
Status: RESOLVED WORKSFORME
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Sandbox (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 410155 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-02-05 18:28 UTC by Mike Gilbert
Modified: 2012-03-29 15:32 UTC (History)
4 users (show)

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


Attachments
Backtrace (gdb-log.txt,2.98 KB, text/plain)
2012-02-06 03:40 UTC, Mike Gilbert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gilbert gentoo-dev 2012-02-05 18:28:42 UTC
sandbox-2.5 segfaults when built with binutils-2.22.52.0.1. It works find when built with binutils-2.22-r1.

floppym@naomi ~ % sandbox
============================= Gentoo path sandbox ==============================
Detection of the support files.
Verification of the required files.
Setting up the required environment variables.
zsh: segmentation fault  sandbox
Comment 1 Mike Gilbert gentoo-dev 2012-02-05 18:29:15 UTC
Portage 2.2.0_alpha85 (default/linux/amd64/10.0/desktop/kde, gcc-4.6.2, glibc-2.13-r4, 3.2.4 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.2.4-x86_64-AMD_Phenom-tm-_II_X6_1055T_Processor-with-gentoo-2.0.3
Timestamp of tree: Unknown
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.5.4-r4, 2.6.7-r2, 2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/cmake:           2.8.7-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.22.52.0.1
sys-devel/gcc:            4.5.3-r2, 4.6.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo mgorny sunrise floppym local
Installed sets: 
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /usr/share/themes/oxygen-gtk/gtk-2.0 /var/bind /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/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /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"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --with-bdeps=y --quiet-build=n --jobs=7"
FEATURES="assume-digests binpkg-logs buildpkg clean-logs distlocks ebuild-locks fakeroot fixlafiles news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--ipv4"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/home/floppym/gentoo-x86"
PORTDIR_OVERLAY="/var/lib/layman/mgorny /home/floppym/overlays/sunrise/sunrise /home/floppym/overlays/floppym /home/floppym/overlays/local"
SYNC="cvs://floppym@cvs.gentoo.org:/var/cvsroot"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 ao bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cdr cli consolekit cracklib crypt css cups cxx dbus declarative device-mapper doc dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fontconfig fortran gdbm gdu gif gpm gtk hddtemp iconv imap ipv6 jpeg kde kipi lcms libnotify lm_sensors lzma mad mmx mmxext mng modules mono mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin offensive ogg opengl openmp pam pango pcre pdf perl phonon plasma png policykit ppds pppd python qt3support qt4 readline samba sdl semantic-desktop session spell sse sse2 sse3 ssl startup-notification suid svg sysfs taglib tcpd theora threads tiff truetype udev unicode usb vaapi vdpau vim-syntax vorbis x264 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid zlib zsh-completion" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="btrfs" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

=================================================================
                        Package Settings
=================================================================

sys-devel/binutils-2.22.52.0.1 was built with the following:
USE="(consolekit) (multilib) nls (policykit) zlib -multislot -multitarget -static-libs -test -vanilla"


sys-apps/sandbox-2.5 was built with the following:
USE="(consolekit) (multilib) (policykit)"
CFLAGS="-O2 -march=native -pipe -ggdb"
CXXFLAGS="-O2 -march=native -pipe -ggdb"
Comment 2 Mike Gilbert gentoo-dev 2012-02-06 03:31:16 UTC
Had another user run into this, so I masked it to be on the safe side.

+  06 Feb 2012; Mike Gilbert <floppym@gentoo.org> package.mask:
+  Mask binutils-2.22.52.0.1 due to bug 402271.
+

I'll see about providing a backtrace shortly.
Comment 3 Mike Gilbert gentoo-dev 2012-02-06 03:40:59 UTC
Created attachment 300985 [details]
Backtrace
Comment 4 SpanKY gentoo-dev 2012-02-06 04:30:28 UTC
i've deleted the mask.  2.22.52.x shouldn't have been keyworded in the first place.
Comment 5 SpanKY gentoo-dev 2012-03-06 05:41:38 UTC
this is a bug in binutils-2.22.52.0.1.  latest binutils git seems fixed, as is latest ~arch.  looked like a bug in gc-sections handling and the weak environ symbols.

$ cat test.c
#define _GNU_SOURCE
#include <unistd.h>
main(){puts(environ[0]);}

$ gcc -Wl,--gc-sections test.c && ./a.out
Comment 6 SpanKY gentoo-dev 2012-03-29 15:32:03 UTC
*** Bug 410155 has been marked as a duplicate of this bug. ***