Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95391 - Frequent segfaults while compiling
Summary: Frequent segfaults while compiling
Status: RESOLVED DUPLICATE of bug 20600
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-07 15:27 UTC by Jonathan Drolet
Modified: 2005-06-07 15:40 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 Jonathan Drolet 2005-06-07 15:27:41 UTC
When I emerge large packages (gcc, glibc, qt, kde...) my system often segfault
and I have to restart the compilation until it gets it right (which can take time).

Here an example of the output (while compiling qt), which is similar to other cases:

g++ -c -pipe -fno-exceptions -fPIC -Wall -W -O2 -pipe -march=k8 -D_REENTRANT 
-DDESIGNER -DQT_INTERNAL_XML -DQT_INTERNAL_WORKSPACE -DQT_INTERNAL_ICONVIEW
-DQT_INTERNAL_TABLE -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
-DQT_SHARED
-I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/mkspecs/linux-g++ -I.
-I/usr/include/freetype2 -I../shared -I../uilib -I../../../include
-I.moc/release-shared-mt/ -o ./moc_startdialog.o
.moc/release-shared-mt/moc_startdialog.cpp
In file included from ../../../include/qdialog.h:42,
                 from .moc/release-shared-mt/../../startdialog.h:14,
                 from .moc/release-shared-mt/moc_startdialog.cpp:11:
../../../include/qwidget.h:62: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[3]: *** [moc_startdialog.o] Error 1
make[3]: Leaving directory /var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/

Please note that my system is stable (few experimental packages).  I recently
update the toolchain to the experimental versions, but the problem still occurs.

Also note that this is not specific to amd64, since I got the same problem on my
x86 system (on the same hardware, with gcc 3.4.4).

I ran memtest86+ and found nothing wrong, I frequently do memory and cpu
expensive work such as transcode without any problems.

Reproducible: Sometimes
Steps to Reproduce:
1.emerge largeandlongtocompilepackage
2.
3.

Actual Results:  
segfault during the process, can be anywhere.

Expected Results:  
compile without errors.

Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.11ac1 x86_64)
=================================================================
System uname: 2.6.11ac1 x86_64 AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.4.16
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="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=k8"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -pipe -march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_CA.utf8"
LC_ALL="en_CA.utf8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://192.168.0.1/gentoo-portage"
USE="amd64 X a52 aac aalib acpi alsa aotuv audiofile avi bash-completion berkdb
bitmap-fonts bzip2 cddb cdparanoia cdr chroot crypt cscope cups curl disablexmb
doc dts dv dvd dvdr dvdread ecc eds encode escreen fam ffmpeg flac font-server
fortran fpx gd gdbm gif gnutls gpm graphviz gstreamer gtk guile ieee1394
imagemagick imlib ipv6 jack jack-tmpfs java javascript jp2 jpeg kdeenablefinal
lcms libcaca libsamplerate libwww lzo lzw lzw-tiff mad mbox mikmod mmap mng
motif mozilla mp3 mpeg ncurses network nls nntp nptl nptlonly ogg oggvorbis
opengl oss pam pcre perl png python quicktime readline real rtc samba sdl
sndfile speex spell ssl svg sysfs tcpd tetex theora threads tiff truetype
truetype-fonts type1-fonts unicode usb userlocales v4l v4l2 vorbis wmf xanim
xine xml xml2 xmms xpm xrandr xv xvid xvmc yv12 zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-06-07 15:40:59 UTC
Sorry, we really can
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-06-07 15:40:59 UTC
Sorry, we really can´t fix this. See Bug 20600 for possible causes of your problem. 

Thanks.

*** This bug has been marked as a duplicate of 20600 ***