When trying to emerge gcc-3.4.3.20050110 it fails as it finds a stack smashing attack. Details below. Reproducible: Always Steps to Reproduce: 1. install an selinux/ssp gentoo box 2. emerge =sys-devel/gcc-3.4.3.20050110 3. Actual Results: stage1/xgcc -Bstage1/ -B/usr/i386-pc-linux-gnu/bin/ -c -DEFAULT_PIE_SSP -O2 -march=pentium3 -fprofile-generate -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc -I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/. -I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/../include /var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/params.c -o params.o stage1/xgcc -Bstage1/ -B/usr/i386-pc-linux-gnu/bin/ -c -DEFAULT_PIE_SSP -O2 -march=pentium3 -fprofile-generate -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc -I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/. -I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/../include /var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/postreload.c -o postreload.o stage1/xgcc -Bstage1/ -B/usr/i386-pc-linux-gnu/bin/ -c -DEFAULT_PIE_SSP -O2 -march=pentium3 -fprofile-generate -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc -I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/. -I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/../include /var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/predict.c -o predict.o cc1: stack smashing attack in function ix86_split_to_parts() xgcc: Internal error: Aborted (program cc1) Please submit a full bug report. See <URL:http://bugs.gentoo.org/> for instructions. make[2]: *** [predict.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc' make[1]: *** [stageprofile_build] Error 2 make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc' make: *** [profiledbootstrap] Error 2 !!! ERROR: sys-devel/gcc-3.4.3.20050110 failed. !!! Function gcc_do_make, Line 1067, Exitcode 2 !!! make failed with profiledbootstrap Expected Results: Successful emerge. Portage 2.0.51-r13 (selinux/2004.1/x86, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.7-hardened-r18 i686) ================================================================= System uname: 2.6.7-hardened-r18 i686 Pentium III (Coppermine) Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Nov 7 2004, 21:17:37)] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.9.4, 1.5, 1.8.5-r2, 1.4_p6, 1.6.3, 1.7.9 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.4.22 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -fforce-addr" CHOST="i386-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -fforce-addr" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages loadpolicy nostrip sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://mirror.isp.net.au/pub/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="apache2 bash-completion berkdb cpdflib crypt cups curl dba debug dvd exif fam ftp gd hardened hardenedphp imap innodb ipv6 jabber jpeg ldapmad mcal mhash mmx mysql ncurses nls oggvorbis pam pcntl pcre perl pic pie png postgres python readline samba selinux session simplexml slang snmp sockets spell sqlite ssl tcpd tidy tiff tokenizer truetype usb vhosts wddx x86 xml2 xmlrpc zaptel zlib" Unset: LDFLAGS
we've masked this version again
Thanks spanky :) CpuID.
this version is now unmasked, same results as before...hmm someone didnt fix this before unmasking again :) stage1/xgcc -Bstage1/ -B/usr/i386-pc-linux-gnu/bin/ -c -DEFAULT_PIE_SSP -O2 -march=pentium3 -fprofile-generate -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc -I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/. -I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/../include /var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/predict.c -o predict.o cc1: stack smashing attack in function ix86_split_to_parts() xgcc: Internal error: Aborted (program cc1) Please submit a full bug report. See <URL:http://bugs.gentoo.org/> for instructions. make[2]: *** [predict.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc' make[1]: *** [stageprofile_build] Error 2 make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc' make: *** [profiledbootstrap] Error 2 !!! ERROR: sys-devel/gcc-3.4.3.20050110 failed.
same problem here Portage 2.0.51-r15 (selinux/2004.1/x86, gcc-3.3.4, glibc-2.3.4.20041102-r0, 2.6.9 i686) ================================================================= System uname: 2.6.9 i686 Intel(R) Pentium(R) M processor 1500MHz Gentoo Base System version 1.6.9 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Feb 25 2005, 13:37:23)] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r4 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/alias /var/qmail/control /var/service" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache cvs digest distlocks sandbox sfperms sign strict" GENTOO_MIRRORS="ftp://ftp.lug.ro/gentoo/ http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/root/cvs/cvs.gentoo.org/gentoo-x86 /usr/portage_2 /usr/portage_3" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="crypt curl gdbm hardened hardenedphp imap ldap mysql ncurses pam pic pie png python readline ruby samba selinux snmp ssl tcpd x86 xml2 zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Same issue, on gcc 3.4.4... Same box as it previously occured on however many months back. stage1/xgcc -Bstage1/ -B/usr/i386-pc-linux-gnu/bin/ -c -DEFAULT_PIE_SSP -DEFAULT_RELRO -DEFAULT_BIND_NOW -O2 -march=pentium3 -fprofile-generate -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/gcc-3.4.4/work/gcc-3.4.4/gcc -I/var/tmp/portage/gcc-3.4.4/work/gcc-3.4.4/gcc/. -I/var/tmp/portage/gcc-3.4.4/work/gcc-3.4.4/gcc/../include /var/tmp/portage/gcc-3.4.4/work/gcc-3.4.4/gcc/predict.c -o predict.o cc1: stack smashing attack in function ix86_split_to_parts() xgcc: Internal error: Aborted (program cc1) Please submit a full bug report. See <URL:http://bugs.gentoo.org/> for instructions. make[2]: *** [predict.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.4/work/build/gcc' make[1]: *** [stageprofile_build] Error 2 make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.4/work/build/gcc' make: *** [profiledbootstrap] Error 2 !!! ERROR: sys-devel/gcc-3.4.4 failed. !!! Function gcc_do_make, Line 1204, Exitcode 2 !!! emake failed with profiledbootstrap !!! If you need support, post the topmost build error, NOT this status message. ------------------------------------- Portage 2.0.51.22-r1 (selinux/2004.1/x86, gcc-3.4.3, glibc-2.3.5-r0, 2.6.10-hardened-r3 i686) ================================================================= System uname: 2.6.10-hardened-r3 i686 Pentium III (Coppermine) Gentoo Base System version 1.6.12 ccache version 2.4 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.8 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16-r1 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i386-pc-linux-gnu" CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -fforce-addr" CHOST="i386-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -fforce-addr" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks fixpackages loadpolicy nostrip sandbox selinux sfperms strict" GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://mirror.isp.net.au/pub/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="apache2 bash-completion berkdb cpdflib crypt cups curl dba debug dvd exif fam ftp gd gdbm hardened hardenedphp imap innodb ipv6 jabber jpeg ldap libclamav libwww mad maildir mcal mhash mmx mysql ncurses nls nptl nptlonly ogg pam pcntl pcre perl pic pie png postgres python readline samba selinux session simplexml slang snmp soap sockets spell sqlite ssl tcpd tidy tiff tokenizer truetype usb userlocales vhosts vorbis wddx x86 xml xml2 xmlrpc zaptel zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
I'm getting the same thing, what do I need to do here? I have installed gcc-3.4.4: darkstar ~ # gcc -v Reading specs from /usr/lib/gcc/i386-pc-linux-gnu/3.4.4/specs Configured with: /var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/configure --prefix=/usr --bindir=/usr/i386-pc-linux-gnu/gcc-bin/3.4.4 --includedir=/usr/lib/gcc/i386-pc-linux-gnu/3.4.4/include --datadir=/usr/share/gcc-data/i386-pc-linux-gnu/3.4.4 --mandir=/usr/share/gcc-data/i386-pc-linux-gnu/3.4.4/man --infodir=/usr/share/gcc-data/i386-pc-linux-gnu/3.4.4/info --with-gxx-include-dir=/usr/lib/gcc/i386-pc-linux-gnu/3.4.4/include/g++-v3 --host=i386-pc-linux-gnu --build=i386-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 3.4.4 (Gentoo Hardened 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8) When trying to do an emerge -e system: CC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc -I/var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/. -I/var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/../include /var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/predict.c -o predict.o cc1: stack smashing attack in function ix86_split_to_parts() {standard input}: Assembler messages: {standard input}:1628: Warning: end of file not at end of a line; newline inserted {standard input}:2508: Error: no such instruction: `m' xgcc: Internal error: Aborted (program cc1) Please submit a full bug report. See <URL:http://bugs.gentoo.org/> for instructions. make[2]: *** [predict.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc' make[1]: *** [stageprofile_build] Error 2 make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc' make: *** [profiledbootstrap] Error 2 !!! ERROR: sys-devel/gcc-3.4.4-r1 failed. !!! Function gcc_do_make, Line 1214, Exitcode 2 !!! emake failed with profiledbootstrap
This works for me, is anyone else experiencing this problem still?
*** Bug 115322 has been marked as a duplicate of this bug. ***
(In reply to comment #7) > This works for me, is anyone else experiencing this problem still? Not until you posted here... Reopen wrt Bug 115322.
It works for me. If you could provide us with a backtrace so we could try to debug the issue, that would help, since none of us can reproduce it.
*** Bug 135932 has been marked as a duplicate of this bug. ***
*** Bug 148604 has been marked as a duplicate of this bug. ***
I have made an update regarding this problem in the following bug: http://bugs.gentoo.org/show_bug.cgi?id=135932
*** Bug 209993 has been marked as a duplicate of this bug. ***