Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128004 - gcc eats all memory when building kmail 3.5.2 - system swaps to death
Summary: gcc eats all memory when building kmail 3.5.2 - system swaps to death
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: AMD64 Project
: 127887 (view as bug list)
Depends on:
Reported: 2006-03-29 08:32 UTC by Hans-Christian Armingeon
Modified: 2006-03-31 08:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Hans-Christian Armingeon 2006-03-29 08:32:03 UTC

I am having serious trouble with my gentoo system.

When I build kmail 3.5.2 inside a gentoo amd64 xenU domain, gcc hans at this point, and eats all memory. The system starts swapping.

I don't think, that this bug is xen related.


/bin/sh ../libtool --silent --mode=compile --tag=CXX x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../libkmime -I../libkpgp -I../libkdenetwork -I../libkdepim -I../libkpimidentities -I../libemailfunctions -I../libksieve -I../mimelib -I../certmanager/lib -I../certmanager/lib/ui -I../indexlib -I.. -I/usr/include/gpgme -I../libkdepim -I/usr/kde/3.5/include -I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o libkmailprivate_la.all_cpp.lo `test -f 'libkmailprivate_la.all_cpp.cpp' || echo './'`libkmailprivate_la.all_cpp.cpp
In file included from libkmailprivate_la.all_cpp.cpp:4:
configuredialog.cpp: In constructor `ConfigureDialog::ConfigureDialog(QWidget*, const char*, bool)':
configuredialog.cpp:217: warning: `__base_ctor' is deprecated (declared at /usr/kde/3.5/include/kcmultidialog.h:104)
In file included from libkmailprivate_la.all_cpp.cpp:13:
kmfoldertree.cpp: In member function `virtual void KMFolderTree::contentsDropEvent(QDropEvent*)':
kmfoldertree.cpp:1383: warning: `keyboardModifiers' is deprecated (declared at /usr/kde/3.5/include/kapplication.h:1069)
In file included from libkmailprivate_la.all_cpp.cpp:67:
popaccount.cpp: In member function `virtual void KMail::PopAccount::processNewMail(bool)':
popaccount.cpp:175: warning: cast to pointer from integer of different size
In file included from libkmailprivate_la.all_cpp.cpp:79:
kmpopfiltercnfrmdlg.cpp: In constructor `KMPopHeadersView::KMPopHeadersView(QWidget*, KMPopFilterCnfrmDlg*)':
kmpopfiltercnfrmdlg.cpp:33: warning: unused variable 'mDownIndex'
kmedit.cpp: At global scope:
kmedit.cpp:511: warning: unused parameter 'proc'
index.cpp:495: warning: unused parameter 'folder'
index.cpp:484: warning: unused parameter 'folder'

[here I have to press CTRL+C ]

emerge -pv gcc
[ebuild   R   ] sys-devel/gcc-3.4.6  USE="boundschecking fortran gcj gtk multislot nls objc -bootstrap -build -doc -hardened -ip28 -nocxx -nopie -nossp -vanilla" 0 kB

Portage 2.1_pre7-r2 (default-linux/amd64/2005.1, gcc-3.4.6, glibc-2.4-r1, 2.6.16-20060326.1-xen0 x86_64)
System uname: 2.6.16-20060326.1-xen0 x86_64 AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.12.0_pre16
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
USE="amd64 X X509 Xaw3d a52 aac aalib accessibility acl acpi adns aim aio alsa amrr aotuv apache2 applet ares arts artswrappersuid asf asterisk async atm audiofile authdaemond automount avi bash-completion bash-completition bcp berkdb bidi big-tables bigpatch bindist binfilter bitmap-fonts bjam bl bluetooth bonobo bootsplash boundschecking bri browserplugin bzip2 cairo caps cddb cdparanoia cdr cgi chroot clamav cle266 cluster command-args cpudetection crypt cscope cups curl customlog dbm devfs26 dga directfb divx4linux djbfft dri dts dv dvb dvd dvdr dvdread dxr3 dynagraph ecc edl eds elf emacs emboss encode erandom esd ethereal evo examples extensions extraengine f77 fam fame fastcgi fbcon festival ffmpeg fftw flac flash floppyboot florz follow-xff font-server foomaticdb fortran fpx freetds gb gcj gd gdbm geometry ggi gif gimpprint gitsendemail glibc-compat20 glitz gmp gnokii gnome gnome-print gnutls gphoto2 gpm gps graphviz gs gsm gstreamer gtk gtk2 gtkhtml guile hal hnlyforhoneypots howl hpn i8x0 icq idea idn ieee1394 imagemagic imagemagick imap imlib innodb insecure-drivers iproute2 ipv6 irda jabber jack jack-tmpfs java javascript jbig jikes joystick jpeg jpeg2k jumpplay justify kde kdeenablefinal kerberos keyscrub kig-scripting kqemu krb4 ladcca ladspa large-domain lcd lcm lcms ldap ldapsam leim lesstif libcaca libclamav libedit libg++ libgda libsamplerate libwww lighttpd linuxthreads-tls live lnbsharing logitech-mouse logrotate logwatch lzo lzw lzw-tiff mad maildir mailwrapper makecheck matroska max-idx-128 mbox mcal md5sum memlimit mfd-rewrites mgetty mikmod missingatgentoo-xen mjpeg mng modperl modplug mono motif mozcalendar mozdevelop mozilla mozsha1 mozsvg mp3 mpeg mpi mplayer mpm-worker msn mudflap mule multicall multislot musepack musicbrainz mysql mythtv nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh nas ncurses neXt netboot netcdf nethack network neural new-login nhc98 nis nls nntp no-helper nptl nptlonly nsplugin numeric nvidia nvram oav objc oci8 odbc offensive ogg oggvorbis on-the-fly-crypt onoe openexr opengl openntpd oscar oss pam pam_chroot pam_console pam_timestamp parse-clocks pccts pcre pcsc-lite pda pdflib perl pg-hier pg-intdatetime pg-vacuumdelay php pic plotutils png pnp portaudio postgres povray ppds prelude pri profile pwdb pyste python qt quicktime quotas radius rc5 rcu rdesktop readline real resperl rpm rrdtool rtc ruby ruby18 samba sametime sample sasl savedconfig scanner screen sdk sdl sftplogging shorten sid silverxp skey slang slp smartcard sms smux sndfile snmp socks5 sourcecaps sox speex spell sqlite sqlite3 srp srvdir ssl streamzap svg swat sysfs syslog szip tcltk tcpd termcap-compat test tetex tga theora threads tidy tiff toolbar transcode truetype truetype-fonts type1-fonts ucs2 underscores unicode ups urandom usb user-homedirs userlocales v4l v4l2 vcd vfat vhosts vim-with-x virtual-users visualization vmdbmysql vmdbpostgres vorbis webdav wifi winbind wma wmf wxwindows xanim xcomposite xface xforms xine xinerama xinetd xml xml2 xmms xosd xpm xprint xscreensaver xsl xv xvid xvmc yahoo yaz zaptel zeo zero-penalty-hit zeroconf zlib elibc_glibc input_devices_acecad input_devices_aiptek input_devices_calcomp input_devices_citron input_devices_digitaledge input_devices_dmc input_devices_dynapro input_devices_elo2300 input_devices_elographics input_devices_evdev input_devices_fpit input_devices_hyperpen input_devices_jamstudio input_devices_joystick input_devices_keyboard input_devices_magellan input_devices_magictouch input_devices_microtouch input_devices_mouse input_devices_mutouch input_devices_palmax input_devices_penmount input_devices_spaceorb input_devices_summa input_devices_synaptics input_devices_tek4957 input_devices_ur98 input_devices_vmmouse input_devices_void input_devices_wacom kernel_linux userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_fglrx video_cards_glint video_cards_i128 video_cards_i810 video_cards_mga video_cards_neomagic video_cards_nv video_cards_nvidia video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo"
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2006-03-29 09:11:38 UTC
Doesn't look like a KDE bug, are there known issues with amd64/gcc-3.4.6 maybe?
Comment 2 Benjamin Schindler (RETIRED) gentoo-dev 2006-03-29 09:23:26 UTC
Compile with USE=-kdeenablefinal and reopen if it still doesn't work.

kdeenablefinal cats together all sources - this requires a lot of ram. And if you don't have enough, you'll start swapping and performance is gone. 
Comment 3 Hans-Christian Armingeon 2006-03-29 10:18:37 UTC
use=-kdeenablefinal works for me.

How to fix this issue?

Thanks in advance,

Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-03-29 10:25:18 UTC
There's no issue. It's this way.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-03-29 10:26:26 UTC
(In reply to comment #3)
> use=-kdeenablefinal works for me.
> How to fix this issue?

You don't fix the issue.

$ euse -i kdeenablefinal
global use flags (searching: kdeenablefinal)

[-    ] kdeenablefinal - Makes kde ebuilds use the enable-final flag, yielding big compilation speedups at the cost of very heavy mem usage

Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-03-31 08:08:48 UTC
*** Bug 127887 has been marked as a duplicate of this bug. ***