GCC segfaults every time when I try to compile those packages. At first there were some errors about files from gcj part of gcc so I've decided to compile without it. Everything worked for me until yesterday - no updates, no overclocking. "Naruszenie ochrony pamięci" = "Segmentation fault" -> after changing language. gcc: gcc -c -O -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall -Wwri te-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wn o-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CO NFIG_H -I. -I. -I/var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/gcc -I/var/ tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/gcc/. -I/var/tmp/portage/sys-deve l/gcc-4.1.2/work/gcc-4.1.2/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.1.2 /work/gcc-4.1.2/gcc/../libcpp/include /var/tmp/portage/sys-devel/gcc-4.1.2/w ork/gcc-4.1.2/gcc/c-common.c -o c-common.o /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/gcc/c-common.c:6361: interna l compiler error: Naruszenie ochrony pamięci Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /var/tmp/portage/sys-devel/gcc-4.1.2/temp/cc4HjN tt.out file, please attach this to your bugreport. make[2]: *** [c-common.o] Błąd 1 make[2]: Opuszczenie katalogu `/var/tmp/portage/sys-devel/gcc-4.1.2/work/build/g cc' make[1]: *** [stage1_build] Błąd 2 make[1]: Opuszczenie katalogu `/var/tmp/portage/sys-devel/gcc-4.1.2/work/build/g cc' make: *** [profiledbootstrap] Błąd 2 * * ERROR: sys-devel/gcc-4.1.2 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 4616: Called toolchain_src_compile * environment, line 5133: Called gcc_src_compile * environment, line 2950: Called gcc_do_make * environment, line 2780: Called die * The specific snippet of code: * emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}"; * The die message: * emake failed with profiledbootstrap * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.1.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.1.2/temp/environment'. * subversion - during make install: /bin/sh /var/tmp/portage/dev-util/subversion-1.4.6/work/subversion-1.4.6/libtool --tag=CC --silent --mode=compile x86_64-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/var/tmp/portage/dev-util/subversion-1.4.6/work/subversion-1.4.6/subversion/include -I/var/tmp/portage/dev-util/subversion-1.4.6/work/subversion-1.4.6/subversion/bindings/swig -I/var/tmp/portage/dev-util/subversion-1.4.6/work/subversion-1.4.6/subversion/bindings/swig/include -I/var/tmp/portage/dev-util/subversion-1.4.6/work/subversion-1.4.6/subversion/bindings/swig/proxy -I/var/tmp/portage/dev-util/subversion-1.4.6/work/subversion-1.4.6/subversion/bindings/swig/proxy -I/usr/include/apr-1 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1 -I/usr/include/db4.5 -I/usr/include/mysql -I/var/tmp/portage/dev-util/subversion-1.4.6/work/subversion-1.4.6/subversion/include -I/var/tmp/portage/dev-util/subversion-1.4.6/work/subversion-1.4.6/subversion/bindings/swig -I/var/tmp/portage/dev-util/subversion-1.4.6/work/subversion-1.4.6/subversion/bindings/swig/include -I/var/tmp/portage/dev-util/subversion-1.4.6/work/subversion-1.4.6/subversion/bindings/swig/proxy -I/var/tmp/portage/dev-util/subversion-1.4.6/work/subversion-1.4.6/subversion/bindings/swig/proxy -I/usr/include/apr-1 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1 -I/usr/include/db4.5 -I/usr/include/mysql -I/usr/include/python2.4 -I/var/tmp/portage/dev-util/subversion-1.4.6/work/subversion-1.4.6/subversion/bindings/swig/python/libsvn_swig_py -prefer-pic -c -o subversion/bindings/swig/python/svn_client.lo ./subversion/bindings/swig/python/svn_client.c ./subversion/bindings/swig/python/svn_client.c:22062: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /var/tmp/portage/dev-util/subversion-1.4.6/temp/ccBrh3BO.out file, please attach this to your bugreport. make: *** [subversion/bindings/swig/python/svn_client.lo] Error 1 * * ERROR: dev-util/subversion-1.4.6 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 5300: Called die * The specific snippet of code: * emake swig-py || die "Compilation of ${PN} Python bindings failed"; * The die message: * Compilation of subversion Python bindings failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-util/subversion-1.4.6/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-util/subversion-1.4.6/temp/environment'. * !!! When you file a bug report, please include the following information: GENTOO_VM=sun-jdk-1.6 CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.06" JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="" and of course, the output of emerge --info python: x86_64-pc-linux-gnu-gcc -pthread -c -fno-strict-aliasing -DNDEBUG -O2 -march=nocona -I. -I./Include -fPIC -DPy_BUILD_CORE -o Objects/obmalloc.o Objects/obmalloc.c Objects/obmalloc.c:864: internal compiler error: Naruszenie ochrony pamięci Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /var/tmp/portage/dev-lang/python-2.4.4-r13/temp/ccq3QoYO.out file, please attach this to your bugreport. make: *** [Objects/obmalloc.o] Błąd 1 * * ERROR: dev-lang/python-2.4.4-r13 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3444: Called die * The specific snippet of code: * emake || die "Parallel make failed" * The die message: * Parallel make failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-lang/python-2.4.4-r13/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/python-2.4.4-r13/temp/environment'. * After that I've checked my BIOS for any settings that could cause this kind of error. Everything is on "safe" settings and still it gives this errors. So I decided to unmask gcc-4.3.1 (as my friend has in debian) glibc-2.7-r2: x86_64-pc-linux-gnu-gcc lc-messages.c -c -std=gnu99 -O2 -Wall -Winline -Wwrite- strings -fmerge-all-constants -fno-strict-aliasing -Wstrict-prototypes -mpreferr ed-stack-boundary=2 -DLOCALE_PATH='"/usr/lib32/locale:/usr/share/i18n"' -DLOC ALEDIR='"/usr/lib32/locale"' -DLOCALE_ALIAS_PATH='"/usr/share/locale"' -DCHARMAP _PATH='"/usr/share/i18n/charmaps"' -DREPERTOIREMAP_PATH='"/usr/share/i18n/repert oiremaps"' -DLOCSRCDIR='"/usr/share/i18n/locales"' -DHAVE_CONFIG_H -Iprograms -I ../include -I/var/tmp/portage/sys-libs/glibc-2.7-r2/work/build-x86-x86_64-pc-lin ux-gnu-nptl/locale -I/var/tmp/portage/sys-libs/glibc-2.7-r2/work/build-x86-x86_6 4-pc-linux-gnu-nptl -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386 /i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386 - I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../por ts/sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv/i386 -I../nptl/sysdeps/unix/sys v -I../ports/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I. ./nptl/sysdeps/unix -I../ports/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686 - I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../npt l/sysdeps/i386 -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/l dbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee 754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I../ports -I.. -I. ./libio -I. -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include -i system /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include-fixed -isystem /usr/includ e -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /var/tmp/portag e/sys-libs/glibc-2.7-r2/work/build-x86-x86_64-pc-linux-gnu-nptl/locale/lc-messag es.o -MD -MP -MF /var/tmp/portage/sys-libs/glibc-2.7-r2/work/build-x86-x86_64-pc -linux-gnu-nptl/locale/lc-messages.o.dt -MT /var/tmp/portage/sys-libs/glibc-2.7- r2/work/build-x86-x86_64-pc-linux-gnu-nptl/locale/lc-messages.o lc-messages.c:22: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /var/tmp/portage/sys-libs/glibc-2.7-r2/temp/ccff DDhR.out file, please attach this to your bugreport. make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.7-r2/work/build-x86-x86_64-pc-li nux-gnu-nptl/locale/lc-messages.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.7-r2/work/glibc-2.7/locale' make[1]: *** [locale/subdir_lib] Error 2 make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.7-r2/work/glibc-2.7' make: *** [all] Error 2 * * ERROR: sys-libs/glibc-2.7-r2 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3418: Called eblit-run 'src_compile' * environment, line 1105: Called eblit-glibc-src_compile * src_compile.eblit, line 173: Called src_compile * environment, line 3418: Called eblit-run 'src_compile' * environment, line 1105: Called eblit-glibc-src_compile * src_compile.eblit, line 181: Called toolchain-glibc_src_compile * src_compile.eblit, line 122: Called die * The specific snippet of code: * make PARALLELMFLAGS="${MAKEOPTS}" || die "make for ${ABI} failed" * The die message: * make for x86 failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.7-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.7-r2/temp/environment'. * My emerge --info: Portage 2.1.4.4 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 x86_64) ================================================================= System uname: 2.6.24-gentoo-r8 x86_64 Genuine Intel(R) CPU 2160 @ 1.80GHz Timestamp of tree: Sat, 05 Jul 2008 20:30:01 +0000 app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.4.4-r13 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=nocona" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=nocona" DISTDIR="/home/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="pl_PL" LC_ALL="pl_PL" LINGUAS="en pl" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=240 --exclude='/distfiles' --exclude='/local' --exclude='/packages' --progress" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aac aalib acl acpi additions adplug afs alsa amd64 amrnb amrwb arts async automount avahi berkdb bzip2 cairo caps cdparanoia cli consolekit cracklib crypt cscope cups dbus disk-partition djvu dri dv enca flac ftp fuse gdbm gif glib gnutls gpm gtk hal iconv inkjar ipv6 isdnlog ithreads jabber java joystick jpeg latex libcaca loop-aes lzo md5sum mdnsresponder-compat midi mmx modplug mp2 mp3 mudflap multilib musepack mysql ncurses nfs nls nptl nptlonly nsplugin openal opengl openmp oss pam pcre pdf perl plotutils plugins png postgres postscript pppd pulseaudio python qt3 quicktime quotas radio rar readline reflection rtc samba scanner science sdl session slang smp socks5 soundex speex spell spl sqlite sse sse2 ssl ssse3 startup-notification svg syslog tcl tcpd teletext tetex threads tiff timidity tk truetype unicode v4l v4l2 vim-pager vim-syntax vim-with-x vorbis wavpack winbind wma wmf xanim xattr xcomposite xinerama xml xorg xscreensaver xv xvid 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 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="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en pl" USERLAND="GNU" VIDEO_CARDS="i810 fbdev vesa v4l" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY I think this bug is corelated with every other gcc-4.1.2 segfault bugs here. My segfaults are 100% reproducible (10 tries or more). It started to happened when I was compiling mozilla-firefox and sth else (can't remember). Suddenly both compilations just stopped at same time. But after that I compiled mozilla successfully (2....15). I've also compiled some other packages like unrar, p7zip with out any errors. Files from /var/tmp/portage/*/*/temp/ I've placed at http://capsel.inten.pl/todl/
You haven't argued why the gcc version is important so I removed that from the Summary. It does look as though the processor overheats while compiling large packages (as it manages to compile smaller ones without trouble), perhaps corrupting some L1 or L2 cache's content in the process (as Linux apparently keeps running, only a small amount of memory is concerned so it's unlikely your RAM is overheating). You should probably investigate your system's hardware (or a software solution that controls the system's climate) before you lay the blame on the software. Please reopen this bug if and when you can pinpoint the exact code that triggers this bug and when you can pinpoint it to an exact GCC version by way of elimination.
If it is hardware why everything else works? Why nothing else segfaults? Temperature is not controlled by OS, only settings are in BIOS, and as I wrote - they are SAFE. Max RPMs for fans, lowest speeds of everything I've found, but I haven't touched power settings - they are "auto" controlled. As about "the exact code" - I thought those files are exact code, aren't they? If it is overheating problem why it shows up at same files every time?