I am not sure, if this is a binutils bug, but with sys-devel/binutils-2.22-r1 it didn't show up. Jul 9 11:40:54 pluto kernel: [325863.269003] cc1plus[25092]: segfault at 332bb861010 ip 0000000000c7bb74 sp 00000399b10794d0 error 4 in cc1plus[400000+c11000] Jul 9 11:40:54 pluto kernel: [325863.269024] grsec: From 172.16.17.10: Segmentation fault occurred at 00000332bb861010 in /var/tmp/portage/sys-devel/gcc-4.6.3/work/build/gcc/cc1plus[cc1plus:25092] uid/euid:0/0 gid/egid:0/0, parent /var/tmp/portage/sys-devel/gcc-4.6.3/work/build/gcc/xgcc[xgcc:25088] uid/euid:0/0 gid/egid:0/0 Jul 9 11:40:54 pluto kernel: [325863.269041] grsec: From 172.16.17.10: denied resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 for /var/tmp/portage/sys-devel/gcc-4.6.3/work/build/gcc/cc1plus[cc1plus:25092] uid/euid:0/0 gid/egid:0/0, parent /var/tmp/portage/sys-devel/gcc-4.6.3/work/build/gcc/xgcc[xgcc:25088] uid/euid:0/0 gid/egid:0/0 Jul 9 11:41:42 pluto kernel: [325912.024241] cc1plus[7304]: segfault at 26dde684010 ip 0000000000c7bb74 sp 000003c3af3e5690 error 4 in cc1plus[400000+c11000] Jul 9 11:41:42 pluto kernel: [325912.024273] grsec: From 172.16.17.10: Segmentation fault occurred at 0000026dde684010 in /var/tmp/portage/sys-devel/gcc-4.6.3/work/build/gcc/cc1plus[cc1plus:7304] uid/euid:0/0 gid/egid:0/0, parent /var/tmp/portage/sys-devel/gcc-4.6.3/work/build/gcc/xgcc[xgcc:7303] uid/euid:0/0 gid/egid:0/0 Jul 9 11:41:42 pluto kernel: [325912.024302] grsec: From 172.16.17.10: denied resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 for /var/tmp/portage/sys-devel/gcc-4.6.3/work/build/gcc/cc1plus[cc1plus:7304] uid/euid:0/0 gid/egid:0/0, parent /var/tmp/portage/sys-devel/gcc-4.6.3/work/build/gcc/xgcc[xgcc:7303] uid/euid:0/0 gid/egid:0/0 ##### emerge --info Portage 2.1.12.2 (hardened/linux/amd64, gcc-4.6.3, glibc-2.15-r3, 3.9.9-r201307050017 x86_64) ================================================================= System uname: Linux-3.9.9-r201307050017-x86_64-Intel-R-_Core-TM-_i7-3517UE_CPU_@_1.70GHz-with-gentoo-2.2 KiB Mem: 16198764 total, 10410940 free KiB Swap: 8388604 total, 8388604 free Timestamp of tree: Tue, 09 Jul 2013 00:15:01 +0000 ld GNU ld (GNU Binutils) 2.23.1 app-shells/bash: 4.2_p45 dev-lang/python: 2.7.5, 3.2.3-r2 dev-util/cmake: 2.8.10.2-r2 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.11.8 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.69 sys-devel/automake: 1.11.6, 1.12.6 sys-devel/binutils: 2.23.1 sys-devel/gcc: 4.6.3 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers) sys-libs/glibc: 2.15-r3 Repositories: gentoo local ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu"
complete emerge info: emerge --info Portage 2.1.12.2 (hardened/linux/amd64, gcc-4.6.3, glibc-2.15-r3, 3.9.9-r201307050017 x86_64) ================================================================= System uname: Linux-3.9.9-r201307050017-x86_64-Intel-R-_Core-TM-_i7-3517UE_CPU_@_1.70GHz-with-gentoo-2.2 KiB Mem: 16198764 total, 10410940 free KiB Swap: 8388604 total, 8388604 free Timestamp of tree: Tue, 09 Jul 2013 00:15:01 +0000 ld GNU ld (GNU Binutils) 2.23.1 app-shells/bash: 4.2_p45 dev-lang/python: 2.7.5, 3.2.3-r2 dev-util/cmake: 2.8.10.2-r2 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.11.8 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.69 sys-devel/automake: 1.11.6, 1.12.6 sys-devel/binutils: 2.23.1 sys-devel/gcc: 4.6.3 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers) sys-libs/glibc: 2.15-r3 Repositories: gentoo local ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/var/cache/portage/distfiles" EMERGE_DEFAULT_OPTS="--complete-graph --with-bdeps=y" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict suidctl unknown-features-warn unmerge-logs unmerge-orphans userfetch usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="rsync://ftp.join.uni-muenster.de/gentoo rsync://ftp-stud.fht-esslingen.de/gentoo rsync://mirrors.sec.informatik.tu-darmstadt.de/gentoo rsync://mirror.netcologne.de/gentoo/ rsync://ftp-stud.hs-esslingen.de/gentoo/ rsync://de-mirror.org/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j8" PKGDIR="/var/cache/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes --delete-excluded" 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="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="acl amd64 apache2 bash-completion berkdb bzip2 caps cli cracklib crypt ctype curl cxx dri fam gd gmp hardened iconv idn imap innodb ipv6 jbig jpeg jpeg2k justify libwww lm_sensors maildir mhash mmx modules mudflap multilib mysql ncurses nls nptl openmp pam pax_kernel pcre perl png posix python readline sasl session snmp sockets sse sse2 ssl tcpd threads tiff unicode usb vhosts xattr xml zlib" ABI_X86="64" 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" 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
Created attachment 352930 [details] build.log
So not sure if this is a real bug. It happened while building gcc. The gcc emerge finished ok.
I need the full build log
(In reply to cilly from comment #3) > So not sure if this is a real bug. It happened while building gcc. The gcc > emerge finished ok. building gcc but the bug is about binutils?
(In reply to Magnus Granberg from comment #5) > (In reply to cilly from comment #3) > > So not sure if this is a real bug. It happened while building gcc. The gcc > > emerge finished ok. > building gcc but the bug is about binutils? Well it doesn't show up with sys-devel/binutils-2.22-r1. Only with sys-devel/binutils-2.23.1 the segfault is present.
Created attachment 352976 [details] the real build.log
Jul 10 08:08:33 pluto kernel: [399604.122177] grsec: From 172.16.17.10: Segmentation fault occurred at 0000032608cc3010 in /var/tmp/portage/sys-devel/gcc-4.6.3/work/build/gcc/cc1plus[cc1plus:28250] uid/euid:0/0 gid/egid:0/0, parent /var/tmp/portage/sys-devel/gcc-4.6.3/work/build/gcc/xgcc[xgcc:28248] uid/euid:0/0 gid/egid:0/0 Jul 10 08:08:33 pluto kernel: [399604.122199] grsec: From 172.16.17.10: denied resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 for /var/tmp/portage/sys-devel/gcc-4.6.3/work/build/gcc/cc1plus[cc1plus:28250] uid/euid:0/0 gid/egid:0/0, parent /var/tmp/portage/sys-devel/gcc-4.6.3/work/build/gcc/xgcc[xgcc:28248] uid/euid:0/0 gid/egid:0/0 Jul 10 08:09:22 pluto kernel: [399652.696250] grsec: From 172.16.17.10: Segmentation fault occurred at 000002e39e3c1010 in /var/tmp/portage/sys-devel/gcc-4.6.3/work/build/gcc/cc1plus[cc1plus:10259] uid/euid:0/0 gid/egid:0/0, parent /var/tmp/portage/sys-devel/gcc-4.6.3/work/build/gcc/xgcc[xgcc:10258] uid/euid:0/0 gid/egid:0/0 Jul 10 08:09:22 pluto kernel: [399652.696277] grsec: From 172.16.17.10: denied resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 for /var/tmp/portage/sys-devel/gcc-4.6.3/work/build/gcc/cc1plus[cc1plus:10259] uid/euid:0/0 gid/egid:0/0, parent /var/tmp/portage/sys-devel/gcc-4.6.3/work/build/gcc/xgcc[xgcc:10258] uid/euid:0/0 gid/egid:0/0
kern.log: Jul 10 08:08:33 pluto kernel: [399604.122150] cc1plus[28250]: segfault at 32608cc3010 ip 0000000000c7bb74 sp 000003c0f771d790 error 4 in cc1plus[400000+c11000] Jul 10 08:09:22 pluto kernel: [399652.696223] cc1plus[10259]: segfault at 2e39e3c1010 ip 0000000000c7bb74 sp 000003c74b1dbc50 error 4 in cc1plus[400000+c11000]
(In reply to cilly from comment #6) > (In reply to Magnus Granberg from comment #5) > > (In reply to cilly from comment #3) > > > So not sure if this is a real bug. It happened while building gcc. The gcc > > > emerge finished ok. > > building gcc but the bug is about binutils? > > Well it doesn't show up with sys-devel/binutils-2.22-r1. Only with > sys-devel/binutils-2.23.1 the segfault is present. Strange, double checked with binutils-2.22-r1 and same behaviour, so this is a gcc bug or what ever. The warning in the build.log says checksum differs. Changing Bug Headline to gcc.
Please compile gcc with debug information and enable core dumps on your system, such that you further debug using a core dump; both these are documented on http://www.gentoo.org/proj/en/qa/backtraces.xml Once you have a core dump of gcc failing, you can run: `gdb /var/tmp/portage/sys-devel/gcc-4.6.3/work/build/gcc/cc1plus --core=/path/to/core` where you replace /path/to/core by the path to the core file of the failing cc1plus process.
Can't see any segfault in the build log and it looks like it merge fine for you. The only thing i can think of is that one of the configure tests make it segfault and that is logged in grsec and that can be a bug or i should segfault for the test. So you need to look in one of the config.log's if you can find the segfault or you need to make a coredump.