Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 283917 - sys-devel/make-3.81 segfaults with -fstack-check
Summary: sys-devel/make-3.81 segfaults with -fstack-check
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-07 02:11 UTC by Alexandre Borges Marcelo
Modified: 2009-09-08 05:27 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 Alexandre Borges Marcelo 2009-09-07 02:11:39 UTC
I decided to try out some more aggressive CFLAGS, and glibc refused to compile.
After analyzing the problem I managed to discover make segfaulting when built with -fstack-check. Searching bugzilla made me aware that -fstack-check is an unsupported flag, so this is just a FYI.

Reproducible: Always

Steps to Reproduce:
1. Add -fstack-check to CFLAGS
2. emerge make
3. Attempt to emerge glibc

Actual Results:  
make subdir=nptl -C ../nptl ..=../ objdir=/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-x86-x86_64-pc-linu
x-gnu-nptl -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-libc-cancellation.os rtld-forward.os rtld-libc-l
owlevellock.os'
make subdir=posix -C ../posix ..=../ objdir=/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-x86-x86_64-pc-li
nux-gnu-nptl -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-uname.os rtld-_exit.os rtld-getpid.os rtld-env
iron.os'
make[4]: Entering directory `/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/glibc-2.9-20081201/gmon'
make[4]: Entering directory `/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/glibc-2.9-20081201/csu'
make[4]: Entering directory `/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/glibc-2.9-20081201/io'
make[4]: Entering directory `/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/glibc-2.9-20081201/posix'
make[4]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/glibc-2.9-20081201/gmon'
make[3]: *** [/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/nptl/rtld-libc-cancellation.os] Segmentation fault
make[3]: *** Waiting for unfinished jobs....

Expected Results:  
glibc should have compiled

# emerge --info
Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.9_p20081201-r3, 2.6.30-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r5-x86_64-AMD_Phenom-tm-_9750_Quad-Core_Processor-with-gentoo-2.0.1
Timestamp of tree: Sun, 06 Sep 2009 06:45:01 +0000
app-shells/bash:     4.0_p28
dev-lang/python:     2.6.2-r1, 3.1.1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -msahf -O3 -pipe -fivopts -fprofile-use -funswitch-loops -fvariable-expansion-in-unroller -fvect-cost-model -ftree-loop-im -ftree-loop-ivcanon"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=native -msahf -O3 -pipe -fivopts -fprofile-use -funswitch-loops -fvariable-expansion-in-unroller -fvect-cost-model -ftree-loop-im -ftree-loop-ivcanon"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://www.las.ic.unicamp.br/pub/gentoo/ ftp://ftp.las.ic.unicamp.br/pub/gentoo/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--delete-after --timeout=60 --compress-level=9 --progress"
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.us.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm iconv isdnlog mmx mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl 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" FOO2ZJS_DEVICES="hp1000 hp2600n" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="ati fbdev fglrx radeon radeonhd vesa"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2009-09-08 05:27:29 UTC
thanks for the info.