| View previous topic :: View next topic |
| Author |
Message |
Dragonlord Guru


Joined: 22 Aug 2004 Posts: 447 Location: Switzerland
|
Posted: Sun Mar 06, 2011 12:50 pm Post subject: gcc-4.4.5 random segmentation faults |
|
|
A couple of days ago I got gcc-4.4.5 during an emerge -avuDN world and now hell break loose. Emerging of packages randomly seg-faults at various places without logic and even gcc compilation often seg-faults with an internal compiler error. I need to somehow restore a working system but I don't know what packages I have to recompile multiple times to get the toolchain fully working. gcc and binutils alone won't be enough on Gentoo I think.
So what packages do I need to recompile to fix a broken gcc?
EDIT: the seg-faults seem to happen often right after the "install" phase of an ebuild starts hence:
| Code: | >>> Installing (3 of 12) ...
Segmentation fault |
_________________ DragonDreams: Leader and Head Programmer |
|
| Back to top |
|
 |
aCOSwt Bodhisattva

Joined: 19 Oct 2007 Posts: 2537 Location: Hilbert space
|
Posted: Sun Mar 06, 2011 1:55 pm Post subject: Re: gcc-4.4.5 random segmentation faults |
|
|
| Dragonlord wrote: | | I need to somehow restore a working system |
Of course, the ideal for this has always been... restoring... backups
Post the output of emerge --info |
|
| Back to top |
|
 |
Jaglover Watchman


Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
| Back to top |
|
 |
Dragonlord Guru


Joined: 22 Aug 2004 Posts: 447 Location: Switzerland
|
Posted: Sun Mar 06, 2011 3:21 pm Post subject: |
|
|
Random more in the sense of during compilation an internal compiler error happens. That's something which I have only since the 4.4.5 so I doubt it's a hardware error. Furthermore when I try to recompile gcc it more or less segfaults at the same place. I'm trying to get some more infos out of it but it's not very informative what I have so far. _________________ DragonDreams: Leader and Head Programmer |
|
| Back to top |
|
 |
Dragonlord Guru


Joined: 22 Aug 2004 Posts: 447 Location: Switzerland
|
Posted: Sun Mar 06, 2011 3:29 pm Post subject: |
|
|
Let's see if you can help me on what you need. That's the last try I made:
| Code: | /var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./prev-gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -c -O2 -pipe -march=athlon64 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -Wc++-compat -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc -I/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/../libcpp/include -I/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/../libdecnumber/bid -I../libdecnumber /var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/bitmap.c -o bitmap.o
/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/config/i386/sse.md: In function ‘split_insns’:
/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/config/i386/sse.md:1790: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.
make[3]: *** [insn-recog.o] Error 1 |
EDIT:
| Code: | emerge --info =sys-devel/gcc-4.4.5
Portage 2.1.9.25 (default/linux/amd64/10.0/desktop, gcc-4.4.5, glibc-2.11.3-r0, 2.6.32-gentoo-r7 x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-2.6.32-gentoo-r7-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6400+-with-gentoo-1.12.14
Timestamp of tree: Sat, 05 Mar 2011 02:30:01 +0000
app-shells/bash: 4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python: 2.6.6-r2, 3.1.3-r1
dev-util/cmake: 2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox: 2.4
sys-devel/autoconf: 2.13, 2.65-r1
sys-devel/automake: 1.4_p6-r1, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.20.1-r1
sys-devel/gcc: 4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.10
sys-devel/make: 3.81-r2
virtual/os-headers: 2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 AdobeFlash-10 AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /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.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS=" -I/home/roland/progs/testing/include -I/home/roland/progs/testing/include"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirror.solnet.ch http://mirror.switch.ch/mirror/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS=" -L/home/roland/progs/testing/lib -L/home/roland/progs/testing/lib"
LINGUAS="en de"
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="/var/lib/layman/glc"
SYNC="rsync://server:880/portage"
USE="X a52 aac acl acpi alsa amd64 arts audiofile berkdb bluetooth branding browserplugin bzip2 cairo cdaudio cdr cli consolekit cracklib crypt cups cxx dbus dri dssi dts dv dvd dvdr dvdread emboss encode exif expat fam ffmpeg firefox flac fontconfig fortran gd gdbm gdu geoip gif gimp gimpprint gpm gtk hal hddtemp iconv ipv6 jabber jack java javascript jpeg kde ladspa lame lcms libnotify libsamplerate live lm_sensors lua mad melt mikmod mmx mng modplug modules mp3 mp4 mpeg mudflap multilib mysql ncurses network nls noamazon nptl nptlonly nsplugin ogg openal openexr opengl openmp pam pango pcre pdf perl php plotutils png policykit ppds pppd python qt3support qt4 quicktime readline ruby sane sdl semantic-desktop session sndfile sox spell sql sse sse2 ssl startup-notification subversion svg sysfs tcpd theora threads tiff timidity tk truetype udev unicode usb visualization vorbis webkit wma wxwindows x264 xcb xml xorg xulrunner 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 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 cgi cgid 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="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="evdev joystick keyboard mouse aiptek" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fglrx vesa radeon" 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, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
=================================================================
Package Settings
=================================================================
sys-devel/gcc-4.4.5 was built with the following:
USE="fortran gtk mudflap (multilib) nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -graphite (-hardened) (-libffi) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla"
CXXFLAGS="" |
_________________ DragonDreams: Leader and Head Programmer |
|
| Back to top |
|
 |
Anon-E-moose Watchman


Joined: 23 May 2008 Posts: 6433 Location: Dallas area
|
Posted: Sun Mar 06, 2011 3:34 pm Post subject: |
|
|
| Dragonlord wrote: | | Let's see if you can help me on what you need. That's the last try I made: |
Still sounds like hardware. The only time I've ever had an internal compiler error was after I OC'd the box and didn't set the memory speed properly.
I'm running gcc 4.4.5 without any problems at all, just upgraded, glibc, samba, named and a few smaller packages yesterday without any problems.
Edit to add:
What kind of system do you have, and how is -j in /etc/make.conf set? _________________ UM780 xtx, 6.16 zen kernel, gcc 15, openrc, wayland
Got to love snowflakes, how does the world survive without them. |
|
| Back to top |
|
 |
Dragonlord Guru


Joined: 22 Aug 2004 Posts: 447 Location: Switzerland
|
Posted: Sun Mar 06, 2011 3:40 pm Post subject: |
|
|
I don't do OC at all nor do I anything else funny with the hardware. Problems started with 4.4.5 . _________________ DragonDreams: Leader and Head Programmer |
|
| Back to top |
|
 |
aCOSwt Bodhisattva

Joined: 19 Oct 2007 Posts: 2537 Location: Hilbert space
|
Posted: Sun Mar 06, 2011 3:46 pm Post subject: |
|
|
| Dragonlord wrote: | /var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/config/i386/sse.md:1790: internal compiler error: Segmentation fault
CFLAGS="-O2 -pipe -march=athlon64" |
Hmmm...
Let's start with the fact that some athlon64 did not support sse.
Hence I do not know if setting march=athlon64 enables the use of sse or not and as I cannot tell if your athlon actually supports sse...
I suggest you retry after having set march=native
BTW, can you post the output of | Code: | | # cat /proc/cpuinfo |
|
|
| Back to top |
|
 |
Anon-E-moose Watchman


Joined: 23 May 2008 Posts: 6433 Location: Dallas area
|
Posted: Sun Mar 06, 2011 4:01 pm Post subject: |
|
|
| Dragonlord wrote: | | I don't do OC at all nor do I anything else funny with the hardware. Problems started with 4.4.5 . |
Then you're the 1st to have this type of problem with 4.4.5, I suggest that you file a bug report. _________________ UM780 xtx, 6.16 zen kernel, gcc 15, openrc, wayland
Got to love snowflakes, how does the world survive without them. |
|
| Back to top |
|
 |
Dragonlord Guru


Joined: 22 Aug 2004 Posts: 447 Location: Switzerland
|
Posted: Sun Mar 06, 2011 4:28 pm Post subject: |
|
|
I got a bit further this time and have now this:
| Code: | /var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./prev-gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -c -O2 -pipe -march=athlon64 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -Wc++-compat -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -Icp -I/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc -I/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/cp -I/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/../libcpp/include -I/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/../libdecnumber/bid -I../libdecnumber /var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/cp/parser.c -o cp/parser.o
/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/cp/parser.c: In function ‘cp_parser_check_type_definition’:
/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/cp/parser.c:2215: warning: format not a string literal and no format arguments
/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/cp/parser.c: In function ‘cp_parser_non_integral_constant_expression’:
/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/cp/parser.c:2302: warning: format not a string literal and no format arguments
/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/cp/parser.c: In function ‘cp_parser_direct_declarator’:
/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/cp/parser.c:13143: error: ‘NULL_TRAE’ undeclared (first use in this function)
/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/cp/parser.c:13143: error: (Each undeclared identifier is reported only once
/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/cp/parser.c:13143: error: for each function it appears in.)
make[3]: *** [cp/parser.o] Error 1
make[3]: *** Waiting for unfinished jobs....
rm gcc.pod gfortran.pod
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.5/work/build/gcc'
make[2]: *** [all-stage3-gcc] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.5/work/build'
make[1]: *** [stage3-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.5/work/build'
make: *** [bootstrap-lean] Error 2
emake failed |
EDIT:
Wait a minute... NULL_TRAE sounds kinda fishy. I can not imagine everybody to use NULL_TRAE... but NULL_TRUE. That indeed doesn't look like a software error. _________________ DragonDreams: Leader and Head Programmer |
|
| Back to top |
|
 |
agent_jdh Veteran

Joined: 08 Aug 2002 Posts: 1783 Location: Scotland
|
Posted: Sun Mar 06, 2011 5:16 pm Post subject: |
|
|
I'd be running memtest if I were you. _________________ Jingle Jangle Jewellery |
|
| Back to top |
|
 |
Dragonlord Guru


Joined: 22 Aug 2004 Posts: 447 Location: Switzerland
|
Posted: Sun Mar 06, 2011 5:49 pm Post subject: |
|
|
Yeah, did that right now. Looks like one of the two RAM modules kissed life goodbye. But I've never seen something like this before. Memtest did not stop rattling out errors on that module (how the hell can a Corsair module smoke up that throughly?). Astonishing why I had only so sporadic problems when one module smoked up like that and why just since 4.4.5 . Must be bad luck I guess. Well off to get some new RAM I guess. one 2GB module doesn't get you far nowadays. _________________ DragonDreams: Leader and Head Programmer |
|
| Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23898
|
Posted: Sun Mar 06, 2011 6:24 pm Post subject: |
|
|
| Dragonlord wrote: | | Astonishing why I had only so sporadic problems when one module smoked up like that and why just since 4.4.5 . Must be bad luck I guess. | Perhaps the new version of the compiler uses more memory, and is thus more likely to end up with one of its pages backed by the bad cell. |
|
| Back to top |
|
 |
Anon-E-moose Watchman


Joined: 23 May 2008 Posts: 6433 Location: Dallas area
|
Posted: Sun Mar 06, 2011 6:32 pm Post subject: |
|
|
Glad you found what the problem was. _________________ UM780 xtx, 6.16 zen kernel, gcc 15, openrc, wayland
Got to love snowflakes, how does the world survive without them. |
|
| Back to top |
|
 |
kuvisit n00b

Joined: 30 Aug 2010 Posts: 3 Location: Poland
|
Posted: Wed Apr 09, 2014 9:30 pm Post subject: |
|
|
This thread saved me so much time.
Suddenly big things (llvm, qt-webkit) began throwing segmentation faults after a fixed (~7 min) time. I thought it was a problem with gcc, but while emerging gcc the same thing happened.
After some googling I came here and got the hint to check the memory. My module #1 wasn't working the way it should. Now it needs a replacement.
Many thanks, guys. |
|
| Back to top |
|
 |
|