Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 230415 - Compiling app-cdr/cdrdao-1.2.2-r2 with USE="gcdmaster" with SSP-enabled gcc-3.4.6 results in immediate memory saturation, failure
Summary: Compiling app-cdr/cdrdao-1.2.2-r2 with USE="gcdmaster" with SSP-enabled gcc-3...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 135265
  Show dependency tree
 
Reported: 2008-07-02 01:39 UTC by Gordon Malm (RETIRED)
Modified: 2009-10-14 00:54 UTC (History)
2 users (show)

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 Gordon Malm (RETIRED) gentoo-dev 2008-07-02 01:39:29 UTC
Similar failure/issue as in bugs #217112 and bug #230119.  Within seconds: memory is saturated, machine becomes mostly unresponsive, OOM killer starts making its best guesses.  Using -hardenednossp gcc specs works around the problem.

Portage 2.1.4.4 (hardened/x86/2.6, gcc-3.4.6, glibc-2.6.1-r0,
2.6.25-hardened-r1-rc2-2008062601 i686)
=================================================================
System uname: 2.6.25-hardened-r1-rc2-2008062601 i686 AMD Athlon(tm) 64 X2 Dual
Core Processor 3800+
Timestamp of tree: Sun, 29 Jun 2008 22:15:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
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.8.5-r3, 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="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon64 -msse3 -O2 -fweb -fomit-frame-pointer -fno-ident -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf
/etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo
/etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -msse3 -O2 -fweb -fomit-frame-pointer -fno-ident
-pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans
userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo/
http://gentoo.mirrors.easynews.com/linux/gentoo/
http://mirror.datapipe.net/gentoo/ http://gentoo.chem.wisc.edu/gentoo/
http://gentoo.netnitco.net/ http://gentoo.mirrors.pair.com/
http://open-systems.ufl.edu/mirrors/gentoo/"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--progress
--exclude-from=/etc/portage/rsync_excludes"
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="/usr/portage/local/layman/sunrise
/usr/portage/local/layman/trauma /usr/local/portage"
SYNC="rsync://*yoink*(private)/gentoo-portage"
USE="3dnow X Xaw3d a52 aac aalib acl acpi adns alsa apache2 apm audiofile
bash-completion bcmath berkdb bidi blas bluetooth bzip2 cairo calendar canna
caps cdb cdinstall cdparanoia cdr clamav cracklib crypt cscope ctype cups curl
curlwrappers dba dbm dbus dbx dedicated dga dio directfb doc dri dts dv dvb dvd
dvdr dvdread encode evo exif expat fam fastcgi fbcon ffmpeg fftw firefox flac
flash flatfile foomaticdb fortran freetds freewnn ftp gb gcj gd gdbm geoip ggi
gif ginac glut gmp gnome gnutls gphoto2 gpm gps graphviz gstreamer gtk gtk2
gtkhtml guile hal hardened iconv idn ieee1394 imagemagick imap imlib inifile
ipv6 jack java javascript jbig jikes joystick jpeg jpeg2k junit kde ladspa lame
lapack lash lcms ldap lesstif libcaca libg++ libgda libsamplerate libwww lirc
lm_sensors logrotate lua mad maildir mailwrapper matroska mbox mcal mcve
memlimit mhash midi mikmod mime mmap mmx mng mnogosearch mono motif mp3 mpeg
mpi mplayer msession musepack nas ncurses neXt netboot netcdf nis nls nptl
nptlonly nsplugin ocaml offensive ofx ogg openal opengl osc pam pcntl pcre pda
pdf perl php pic plotutils png portaudio posix ppds python qdbm qt3 qt4
quicktime radius readline recode ruby samba sasl scanner sdl seamonkey session
sharedext sharedmem shorten simplexml slang slp smartcard smp sndfile snmp soap
sockets socks5 sox speex spell spl sqlite sqlite3 sse sse2 ssl
startup-notification svg svga sysvipc szip tcl tcltk tcpd tetex theora threads
tidy tiff timidity tk tokenizer truetype unicode urandom usb v4l vcd vhosts
videos vorbis wavpack wddx wifi win32codecs wmf wxwindows x264 x86 xcomposite
xface xine xinerama xinetd xml xmlrpc xorg xosd xpm xprint xsl xv xvid yaz zeo
zlib" ALSA_CARDS="au8820 ca0106 emu10k1" 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="keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad
cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en
en_US en_GB" USERLAND="GNU" VIDEO_CARDS="apm dummy fbdev mga nv nvidia r128
trident v4l vesa vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

Output with hardened gcc-3.4.6 and MAKEOPTS="-j1":
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../trackdb -I./../paranoia -I./../dao -DCDRDAO_GLADEDIR=\""/usr/share/gcdmaster/glade"\"   -D_REENTR
ANT -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm
-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/g
lib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/cairomm-1.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include
/directfb -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/atk-1.0   -D_REENTRANT -DORBIT2=1 -pthread -I/usr/include/libgnomeuimm-2.6 -I/usr/
lib/libgnomeuimm-2.6/include -I/usr/include/libgnomemm-2.6 -I/usr/lib/libgnomemm-2.6/include -I/usr/include/libgnomecanvasmm-2.6 -I/usr/lib/libgnomecanvasm
m-2.6/include -I/usr/include/gconfmm-2.6 -I/usr/lib/gconfmm-2.6/include -I/usr/include/libglademm-2.4 -I/usr/lib/libglademm-2.4/include -I/usr/include/libg
nomeui-2.0 -I/usr/include/gnome-vfsmm-2.6 -I/usr/lib/gnome-vfsmm-2.6/include -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/libgnome-
2.0 -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include
/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/incl
ude/cairomm-1.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/pixma
n-1 -I/usr/include/atk-1.0 -I/usr/include/orbit-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/lib
bonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gail-1.0 -I/usr/include/libart-2.0 -I/usr/include/libglade
-2.0 -I/usr/include/libxml2 -I/usr/include/gnome-keyring-1 -I/usr/include/libbonoboui-2.0   -march=athlon64 -O2 -fno-ident -pipe -fno-inline -c -o AddSilenceDialog.o AddSilenceDialog.cc
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../trackdb -I./../paranoia -I./../dao -DCDRDAO_GLADEDIR=\""/usr/share/gcdmaster/glade"\"   -D_REENTR
ANT -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm
-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/g
lib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/cairomm-1.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include
/directfb -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/atk-1.0   -D_REENTRANT -DORBIT2=1 -pthread -I/usr/include/libgnomeuimm-2.6 -I/usr/
lib/libgnomeuimm-2.6/include -I/usr/include/libgnomemm-2.6 -I/usr/lib/libgnomemm-2.6/include -I/usr/include/libgnomecanvasmm-2.6 -I/usr/lib/libgnomecanvasm
m-2.6/include -I/usr/include/gconfmm-2.6 -I/usr/lib/gconfmm-2.6/include -I/usr/include/libglademm-2.4 -I/usr/lib/libglademm-2.4/include -I/usr/include/libg
nomeui-2.0 -I/usr/include/gnome-vfsmm-2.6 -I/usr/lib/gnome-vfsmm-2.6/include -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/libgnome-
2.0 -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include
/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/incl
ude/cairomm-1.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/pixma
n-1 -I/usr/include/atk-1.0 -I/usr/include/orbit-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/lib
bonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gail-1.0 -I/usr/include/libart-2.0 -I/usr/include/libglade
-2.0 -I/usr/include/libxml2 -I/usr/include/gnome-keyring-1 -I/usr/include/libbonoboui-2.0   -march=athlon64 -O2 -fno-ident -pipe -fno-inline -c -o AudioCDProject.o AudioCDProject.cc
i686-pc-linux-gnu-g++: Internal error: Segmentation fault (program cc1plus)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
make[3]: *** [AudioCDProject.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/app-cdr/cdrdao-1.2.2-r2/work/cdrdao-1.2.2/xdao'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-cdr/cdrdao-1.2.2-r2/work/cdrdao-1.2.2/xdao'
{standard input}: Assembler messages:
{standard input}:3630: Warning: end of file not at end of a line; newline inserted
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-cdr/cdrdao-1.2.2-r2/work/cdrdao-1.2.2'
make: *** [all] Error 2
{standard input}:4324: Error: bad register name `%e'
 *
 * ERROR: app-cdr/cdrdao-1.2.2-r2 failed.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2008-07-08 17:11:11 UTC
One of the reasons USE gnome was renamed to USE gcdmaster is to avoid C++ code it brings in, with the gnome and gtk -mm bindings. I warmly recommend you not to use it.

Anyhow, old toolchain -> unintrested
Comment 2 Naresh V 2008-07-13 07:14:43 UTC
cdrdao 1.2.2 fails to compile on a non-hardened amd64 system too.
Had to echo 'app-cdr/cdrdao -gnome' >> /etc/portage/package.use for it to successfully compile.
Comment 3 Attila Tóth 2008-07-16 22:42:43 UTC
(In reply to comment #2)
> cdrdao 1.2.2 fails to compile on a non-hardened amd64 system too.
> Had to echo 'app-cdr/cdrdao -gnome' >> /etc/portage/package.use for it to
> successfully compile.
> 

If you want to take a step forward, than please visit this site:
https://hardened.gentooexperimental.org/secure/

The gcc-4 ssp implementation works fine with gcdmaster for me on x86. I'm even running firefox and openoffice ssp-enabled.
Give the experimental hardened toolchain a try, if it's interesting enough.
Comment 4 Peter Alfredsen (RETIRED) gentoo-dev 2009-02-01 01:46:12 UTC
Although we'd like to add that patches are always welcome. Please re-add media-optical if you find a patch. Thank you.
Comment 5 Mark Loeser (RETIRED) gentoo-dev 2009-07-03 23:47:31 UTC
This is up to the hardened team to patch.  The 4.3 stuff in the tree should work.
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2009-07-14 09:07:14 UTC
+  14 Jul 2009; Samuli Suominen <ssuominen@gentoo.org>
+  cdrdao-1.2.3_rc2.ebuild:
+  Disable gcdmaster if GCC is equal to or less than 3 wrt #230415. Rename
+  USE flags ogg and mp3 to vorbis and mad as they should be.
Comment 7 Gordon Malm (RETIRED) gentoo-dev 2009-08-05 17:58:17 UTC
Reverted ebuild workaround as the problem is gcc-3.4+ssp specific, not all gcc-3.4.  Masked gcdmaster USE flag on hardened profiles instead.  Re-opening bug though because we don't close these unless there is a 'proper' fix.  In this case that would be disable SSP for the building of gcdmaster (only) part of cdrdao.
Comment 8 Gordon Malm (RETIRED) gentoo-dev 2009-08-05 18:02:21 UTC
Actually, I should say that is a proper 'workaround'.  A proper fix would be a patch to gcc-3.4 C++ ssp or cdrdao/gcdmaster that doesn't hit the gcc-3.4 c++ issue. :p
Comment 9 Gordon Malm (RETIRED) gentoo-dev 2009-10-14 00:54:27 UTC
GCC 4.3.4 is stable on hardened.  GCC 3.4.x is frozen/not being worked on.  Closing as WONTFIX.