Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 301219 - sys-libs/glibc-2.10.1-r1 segfaults during compile
Summary: sys-libs/glibc-2.10.1-r1 segfaults during compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: AMD64 Linux
: High normal with 1 vote (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-16 19:23 UTC by Christopher Smith
Modified: 2010-07-28 01:01 UTC (History)
2 users (show)

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


Attachments
glibc portage log (glibc-2.10.1-r1.log,703.02 KB, text/plain)
2010-01-16 22:13 UTC, Christopher Smith
Details
glibc log (glibc-log.bz2,347.31 KB, text/plain)
2010-01-22 02:26 UTC, Christopher Smith
Details
glibc-2.10.1-r1 environment file (environment,146.67 KB, text/plain)
2010-01-31 00:38 UTC, brant williams
Details
glibc-2.10.1-r1 build.log, bzipped (build.log.bz2,127.64 KB, application/octet-stream)
2010-01-31 00:43 UTC, brant williams
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Smith 2010-01-16 19:23:45 UTC
Some stable packages are now requiring >=sys-libs/glibc-2.10 like the stable x11-libs/fltk but 2.10.1-r1 will not emerge on my hardened system and there is no glibc-2.10 in the hardened overlay yet.

Reproducible: Always

Steps to Reproduce:
emerge glibc-2.10.1-r1
Actual Results:  
mkdir /tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-amd64-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc
make[2]: *** [/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-amd64-x86_64-pc-linux-gnu-nptl/sunrpc/xbootparam_prot.stmp] Segmentation fault
make[2]: *** Waiting for unfinished jobs....
CPP='x86_64-pc-linux-gnu-gcc -E -x c-header'  /tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-amd64-x86_64-pc-linux-gnu-nptl/elf/ld-linux-x86-64.so.2 --library-path /tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-amd64-x86_64-pc-linux-gnu-nptl:/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-amd64-x86_64-pc-linux-gnu-nptl/math:/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-amd64-x86_64-pc-linux-gnu-nptl/elf:/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-amd64-x86_64-pc-linux-gnu-nptl/dlfcn:/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-amd64-x86_64-pc-linux-gnu-nptl/nss:/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-amd64-x86_64-pc-linux-gnu-nptl/nis:/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-amd64-x86_64-pc-linux-gnu-nptl/rt:/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-amd64-x86_64-pc-linux-gnu-nptl/resolv:/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-amd64-x86_64-pc-linux-gnu-nptl/crypt:/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-amd64-x86_64-pc-linux-gnu-nptl/nptl /tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-amd64-x86_64-pc-linux-gnu-nptl/sunrpc/rpcgen -Y ../scripts -h rpcsvc/bootparam_prot.x -o /tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-amd64-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc/bootparam_prot.T
make[2]: *** [/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-amd64-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc/bootparam_prot.stmp] Segmentation fault
make[2]: Leaving directory `/tmp/portage/sys-libs/glibc-2.10.1-r1/work/glibc-2.10.1/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/tmp/portage/sys-libs/glibc-2.10.1-r1/work/glibc-2.10.1'
make: *** [all] Error 2
 *
 * ERROR: sys-libs/glibc-2.10.1-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3769:  Called eblit-run 'src_compile'
 *             environment, line 1252:  Called eblit-glibc-src_compile
 *       src_compile.eblit, line  199:  Called src_compile
 *             environment, line 3769:  Called eblit-run 'src_compile'
 *             environment, line 1252:  Called eblit-glibc-src_compile
 *       src_compile.eblit, line  207:  Called toolchain-glibc_src_compile
 *       src_compile.eblit, line  123:  Called die
 * The specific snippet of code:
 *              make PARALLELMFLAGS="${MAKEOPTS}" || die "make for ${ABI} failed"
 *  The die message:
 *   make for amd64 failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/elog/sys-libs:glibc-2.10.1-r1:20100116-182552.log'.
 * The ebuild environment file is located at '/tmp/portage/sys-libs/glibc-2.10.1-r1/temp/environment'.
 *

Expected Results:  
successful compilation.

Portage 2.1.6.13 (hardened/linux/amd64/10.0, gcc-4.3.4, glibc-2.9_p20081201-r4, 2.6.32-hardened-r2 x86_64)
=================================================================
System uname: Linux-2.6.32-hardened-r2-x86_64-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-gentoo-1.12.13
Timestamp of tree: Sat, 16 Jan 2010 17:30:01 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 1.3.7-r1, 2.1.9-r2
dev-lang/python:     2.6.4
dev-python/pycrypto: 2.1.0_beta1
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -fomit-frame-pointer -pipe -mmmx -msse -msse2 -msse3 -mssse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/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 /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -fomit-frame-pointer -pipe -mmmx -msse -msse2 -msse3 -mssse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="C"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
MAKEOPTS="-j3"
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/layman/gnome /usr/local/portage/layman/sunrise /usr/local/portage/layman/x11 /usr/local/portage/layman/hardened-development /usr/local/portage/layman/lisp /usr/local/portage/layman/java-overlay /usr/local/portage /home/abraxas/Docs/DKARMA/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X a52 aac aavm acl acpi aio alsa amd64 amrnb artworkextra automount bash-completion beagle berkdb bluetooth bonobo boo boost bzip2 cairo ccache cddb cdparanoia cdr cdrkit cli codecs consolekit cracklib crypt css cups curl cxx dbus dga dirac disk-partition divx dri dv dvd dvdnav dvdr dvdread dvi dvix4linux eds encode esd ethereal evo evolution exif faac faad fam fb fbcon ffmpeg flac flash font-server fortran galago gcrypt gdbm gedit gif gimp gimpprint glade glib glibc-omitfp glitz gmp gnome gnome-keyring gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal hardened iconv icq id3 id3tag imagemagick imap imlib imlib2 inotify jabber jack java javascript jbig jce jikes jpeg jpeg2k justify kerberos keyring ladspa lame laptop latex lcms ldap libnotify libsamplerate live lm_sensors logrotate lua lzo mad matroska mjpeg mmx mmx2 mmxext mng modules mono moonlight mozbranding mozsvg mp3 mp4live mpeg mpeg2 mplayer msn mudflap multilib musepack nautilus ncurses networkmanager nfs nls nptl nptlonly odbc offensive ogg opengl openmp openssh oscar oss pam pcmcia pcre pdf pdfkit perl pic pl2303 pmu png pnp policykit pop posix ppds pppd python quicktime rar readline reflection rhythmbox rtc samba sdl session smp sndfile sound sox spell spl sqlite sqlite3 sse sse2 sse3 ssl ssse3 svg sysfs syslog tcltk tcpd tetex theora threads thumbnailing tidy tif tiff tk truetype twolame udev unicode urandom usb utf8 util utils v4l2 vcd vdesktop vim vim-syntax vnc vorbis wifi wma wmf x264 xanim xattr xcb xft xine xml xorg xulrunner xv xvid xvmc yahoo zlib" ALSA_CARDS="hda-intel usb-audio" 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" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="evdev keyboard synaptics mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm armeb i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Magnus Granberg gentoo-dev 2010-01-16 19:43:56 UTC
I need more of the log.
Glibc 2.10 have all the hardened support it need so
no need to have it in the overlay.
Comment 2 Christopher Smith 2010-01-16 22:13:27 UTC
Created attachment 216704 [details]
glibc portage log
Comment 3 Christopher Smith 2010-01-19 16:11:41 UTC
I tried to emerge version 2.11 and the result was exactly the same.  There is an old bug in bugzilla that has virtually the same result and it had something to do with hardened settings.  Whatever the difference is between the old hardened overlay glibc and the current stable portage glibc is probably the problem.
Comment 4 Magnus Granberg gentoo-dev 2010-01-19 17:12:53 UTC
Can you past the rest of the build.log?
Comment 5 Christopher Smith 2010-01-21 20:25:13 UTC
The log is too big to attach.  It's definitely a hardened issue because it compiled fine with a non-hardened compiler.
Comment 6 Christopher Smith 2010-01-22 02:26:24 UTC
Created attachment 217127 [details]
glibc log

The bzipped version is small enough enough to attach.  I'm not sure why I didn't think of that earlier.
Comment 7 Magnus Granberg gentoo-dev 2010-01-30 19:14:11 UTC
Can you post the environment file?
Comment 8 brant williams 2010-01-31 00:20:57 UTC
This is not specific to Hardened Gentoo. I experience the same exact symptoms.

Portage 2.1.7.16 (default/linux/amd64/10.0, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.31.6 x86_64)
=================================================================
System uname: Linux-2.6.31.6-x86_64-Dual-Core_AMD_Opteron-tm-_Processor_1210-with-gentoo-1.12.13
Timestamp of tree: Sat, 30 Jan 2010 13:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/conf.d /etc/conf.d/iptables /etc/conf.d/net /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/init.d /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news noinfo parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
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.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm iconv imap libwww maildir mmx modules mudflap multilib mysql ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection sasl session spl sse sse2 ssl symlink sysfs tcpd unicode xorg 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 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 brant williams 2010-01-31 00:30:42 UTC
I'm currently attempting to reproduce the issue, and will be glad to post the build log. Which environment file is needed?
Comment 10 brant williams 2010-01-31 00:38:43 UTC
Created attachment 217955 [details]
glibc-2.10.1-r1 environment file
Comment 11 brant williams 2010-01-31 00:43:38 UTC
Created attachment 217956 [details]
glibc-2.10.1-r1 build.log, bzipped

10660518 bytes uncompressed
Comment 12 Magnus Granberg gentoo-dev 2010-02-01 17:51:13 UTC
I need the temp/eclass-debug.log
And this bug looks like a dupe of bug #293961

Brant Williams you should make new bugreport for your error.
For this bug only affect Hardened profile and overlay.
Comment 13 brant williams 2010-02-04 19:10:03 UTC
Thank you, I will.
Comment 14 Xake 2010-02-17 14:22:15 UTC
Christopher

Could you please post the environment file Magnus asked for?
Also could you post /etc/portage/repos.conf?

We want to remove glibc from the overlay asap as we have a newer and stable version in portage, and afaics currently this bug is the only thing that possibly could block that.
Comment 15 Magnus Granberg gentoo-dev 2010-07-28 00:58:25 UTC
We can close this for we have marge all the work to the tree from the hardened-overlay
Comment 16 Magnus Granberg gentoo-dev 2010-07-28 01:01:12 UTC
siarhei.siamshke make new bugreport or use the tree for all stuff from the hardened-overlay have merge to the tree.