Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 393327 - sys-fs/mdadm and sys-fs/cryptsetup: segmentation fault if emerge with static USE flag
Summary: sys-fs/mdadm and sys-fs/cryptsetup: segmentation fault if emerge with static ...
Status: RESOLVED DUPLICATE of bug 391899
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: AMD64 Linux
: Normal critical (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-05 23:18 UTC by Jerzy Kołosowski
Modified: 2011-12-11 21:59 UTC (History)
1 user (show)

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 Jerzy Kołosowski 2011-12-05 23:18:39 UTC
After update system i have problem with apps compiled with static flag.

Reproducible: Always

Steps to Reproduce:
1. emerge mdadm or cryptsetup with static flag
2. try to run it



Portage 2.2.0_alpha79 (hardened/linux/amd64, gcc-4.5.3, unavailable, 3.1.1-hardened-r1 x86_64)
=================================================================
System uname: Linux-3.1.1-hardened-r1-x86_64-Dual_Core_AMD_Opteron-tm-_Processor_280-with-gentoo-2.1
Timestamp of tree: Mon, 05 Dec 2011 00:45:01 +0000
ccache version 3.1.6 [enabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.22
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
Repositories: Local-Portage-tree voip hardened-dev gechi lxc-provider java-overlay mysql sunrise zugaina gentoo
Installed sets:
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=opteron -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openfire/resources/security/ /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/bind /var/lib/citadel"
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/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=opteron -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.mirror.pw.edu.pl/ http://ftp.vectranet.pl/gentoo/ http://gentoo.tups.lv/source/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.mneisen.org/"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pl en"
MAKEOPTS="-j8"
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 /var/lib/layman/voip /var/lib/layman/hardened-development /var/lib/layman/gechi /var/lib/layman/lxc-provider /var/lib/layman/java-overlay /var/lib/layman/mysql /var/lib/layman/sunrise /var/lib/layman/zugaina /usr/portage"
SYNC="rsync://rsync.pl.gentoo.org/gentoo-portage"
USE="7zip X509 ace acl acpi additions addns agent aio amd64 amrr apache2 apm apng async authdaemond authfile automount avahi ban bash-completion bashlogger bazaar bcmath berkdb big-tables bind-mysql bittorrent bonjour branding bzip2 calendar caps case cgi cgroup cisco clamav cli client copy cpudetection cracklib crypt ctype cups curl curlwrappers cvs cxx dbus deflate dhcp diskuse dlna dlz doc dri dynamicplugin eap eap-tls ecap esfq eurephia exec exif experimental extensions extra extras fam fbcon fbcondecor fbsplash ffmpeg filter fontconfig force-cgi-redirect frontend frxp ftp gcj gcrypt gd gdbm geoip git glsa gmp gnutls gpm gssapi gudev hardened hash hdb-ldap headless howl-compat hpn hwdb icap-client iconv icu ident idn ifsession ifversion imagemagick imap imq injection innodb inotify iproute2 ipv6 ithreads jabber jadetex java java6 javascript jce jpeg jpeg2k json justify kerberos kpathsea kqemu krb5 kvm l7filter lame latex ldap libextractor llvm llvm-gcc lm_sensors logrotate logwatch madwifi magic maildir mclib mdnsresponder-compat memlimit mercurial metalink mhash mime ming mkfont mktemp mmap mmx mng modules mp3 mppe-mppc mudflap multilib multiuser mysql mysqli nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh nat nat-transport ncurses network nfconntrack nfqueue nfs nls nptl nptlonly ntp openldap openmp openssl optimization otp overlays pam parse-clocks pax_kernel pcre pdf pdo perl php pkcs11 pl2303 pmu png posix pppd prelude python python2 qa qos quota quotas radius ratio rdesktop rdesktop-vrdp readline readme reflection resolvconf rewrite rfc2307 rfc3779 rfc822 rtmp samba sasl sensord server session sftp shaper sharedext simplexml sitemisc slp smartcard smbtav2 smi smp snmp soap sockets softquota spell spl spoof-source sql sqlite sse sse2 ssh ssl static-libs stl strong-optimization subversion suexec suhosin svg sysfs syslog sysvipc taglib tcpd threads thumbnail tidy tiff tokenizer tools trace transcode truetype tsmuxer udev udis86 unicode ups urandom usb userlocales utils utp vboxwebsrv vde vhosts vroot webdav wifi winbind x264 xattr xface xfs xml xml2 xmlreader xmlrpc xmlwriter xorg xsl xvid zero-penalty-hit zeroconf zip 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias asis authn_alias cern_meta cgi cgid charset_lite dumpio log_forensic proxy_ftp substitute version" APACHE2_MPMS="itk" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="apache bind conntrack cpu cpufreq curl disk dns email entropy exec filecount fscache hddtemp interface iptables irq load logfile memory mysql network ntpd processes protocols rrdcached rrdtool sensors snmp swap syslog uptime users" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

STRACE:

hell ~ # strace mdadm
execve("/sbin/mdadm", ["mdadm"], [/* 42 vars */]) = 0
uname({sys="Linux", node="hell.kolosowscy.pl", ...}) = 0
brk(0)                                  = 0x73b670
brk(0x73c7f0)                           = 0x73c7f0
arch_prctl(ARCH_SET_FS, 0x73bee0)       = 0
brk(0x75d7f0)                           = 0x75d7f0
brk(0x75e000)                           = 0x75e000
--- {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0xffffffffffffffff} (Segmentation fault) ---
+++ killed by SIGSEGV +++
Naruszenie ochrony pamięci
Comment 1 Jerzy Kołosowski 2011-12-05 23:20:39 UTC
I tried to re-emerge all system (emerge -eva @system @world), but this didn't work
Comment 2 Magnus Granberg gentoo-dev 2011-12-06 16:35:32 UTC
(In reply to comment #1)
> I tried to re-emerge all system (emerge -eva @system @world), but this didn't
> work
If you downgrade binutils do it work then?
Comment 3 dacook 2011-12-11 21:49:25 UTC
Yes, downgrading to sys-devel/binutils-2.21.1-r1 from the recently-installed sys-devel/binutils-2.22 and then re-compiling sys-fs/cryptsetup fixes this issue.

It also fixes an issue I was experiencing that the busybox for genkernel's initrd also segfaulted, also being statically compiled.
Comment 4 dacook 2011-12-11 21:56:02 UTC
Also sys-fs/lvm[static] exhibits this issue.
Comment 5 Magnus Granberg gentoo-dev 2011-12-11 21:59:16 UTC

*** This bug has been marked as a duplicate of bug 391899 ***