Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70627 - [ttmkfdir-3.0.9-r2] seg fault because of CLAGS
Summary: [ttmkfdir-3.0.9-r2] seg fault because of CLAGS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-09 19:24 UTC by Joerg Schaible
Modified: 2004-11-11 16:27 UTC (History)
1 user (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 Joerg Schaible 2004-11-09 19:24:50 UTC
font dir generation failed on my system for some font directries since ttmkfdir always created a segfault (emerging xorg or starting xfs). Even calling 

ttmkfdir -h

to get the usage just results in a seg fault. After some investigation I found the culprit to be the -foptimize-sibling-calls flag. Without this one, the font.scale generation went fine.

Please note, that the current ebuild already filters the -Ox flags, but this is not enough. If the flag is explicitly set, it must be filtered explicitly!

Somewhat related to 55383, but that one identifies another critical flag, that is not yet filtered.


Reproducible: Always
Steps to Reproduce:
1. CFLAGS=-foptimize-sibling-calls emerge ttmkfdir
2. ttmkfdir -h


Actual Results:  
segmentation fault 

Expected Results:  
print usage line 

Portage 2.0.51-r2 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1, 
2.4.26-gentoo-r9 i686) 
================================================================= 
System uname: 2.4.26-gentoo-r9 i686 AMD Athlon(tm) XP 2700+ 
Gentoo Base System version 1.4.16 
ccache version 2.3 [enabled] 
Autoconf: sys-devel/autoconf-2.59-r5 
Automake: sys-devel/automake-1.8.5-r1 
Binutils: sys-devel/binutils-2.14.90.0.8-r1 
Headers:  sys-kernel/linux-headers-2.4.21-r1 
Libtools: sys-devel/libtool-1.5.2-r5 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe 
-fomit-frame-pointer -foptimize-sibling-calls -fprefetch-loop-arrays 
-falign-functions=32" 
CHOST="i686-pc-linux-gnu" 
COMPILER="" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe 
-fomit-frame-pointer -foptimize-sibling-calls -fprefetch-loop-arrays 
-falign-functions=32 -fno-default-inline" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache distlocks sandbox sfperms userpriv" 
GENTOO_MIRRORS="http://gentoo.inode.at/ 
http://sunsite.cnlab-switch.ch/mirror/gentoo/http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ 
http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.heanet.ie/pub/gentoo/" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/volatile" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="3dnow 3dnowex X Xaw3d aac aalib acl alsa apache2 apm arts 
artswrappersuid audiofile avi bdf berkdb bitmap-fonts blender-game bonobo bzlib 
calendar caps cdparanoia cdrcdrom cgi codecs crypt cscope ctype cups curl 
curlwrappers cyrus dbase dbm dga dio directfb divx4linux dnd doc dts dvd dvdr 
dvdread edl emoticon encode esd ethereal exif expat f77 faad fam fastcgi fbcon 
fbdev ffmpeg fftw flac flash fltk foomaticdb foreign-package gcj gd gdbm ggi gif 
gimp glut gnome gnomedb gnuplot gphoto2 gpm graphviz gstreamer gtk gtk2 
gtkhtml guile iconv ieee1394 image imagemagick imap imlib innodb intl iodbc j2ee 
java javacomm javadoc javamail javascript jbig jce jp2 jpeg jpeg2k junit jython 
kde lcms libcaca libdsk libg++ libwww live lua lzo lzw lzw-tiff mad maildir 
mailwrapper maps mcal md5sum mdb mhash mikmod mime ming mixer mmap mmx 
mng monkey mono motif mozcalendar mozdevelop mozilla moznoirc mozsvg 
mozxmlterm mp3 mpeg mpeg4 mpi mplayer mysql nas ncurses netcdf nls nntp 
nvidia oav odbc ofx oggvorbis ooo-kde openal opengl openssh operanom2 oss pam 
parse-clocks pcap pcre pdf pdflib perl php pic plotutils png posix povray ppds 
python qt quicktime quotes readline recode rhino rtc ruby samba scanner sdk sdl 
shared slang slp smartcard sndfile soap sockets sounds soundtouch sox speexspell 
spl sse ssl svg svga tcltk tcpd tetex tidy tiff tokenizer transcode truetype unicode 
usb userlocales v4l v4l2 videos vim-with-x vnc wmf wxwin wxwindows x86 xbase 
xfsxine xml xml2 xmms xosd xpm xscreensaver xv xvid xvmc yv12 zlib 
video_cards_nvidia linguas_de linguas_en_GB"
Comment 1 Olivier Crete (RETIRED) gentoo-dev 2004-11-09 19:49:50 UTC
We only accept bugs with standard accepted safe use flags which are -OX -gX -march -mtune -mcpu and -m32 on x86 
Comment 2 SpanKY gentoo-dev 2004-11-11 16:26:39 UTC
meep
Comment 3 SpanKY gentoo-dev 2004-11-11 16:27:53 UTC
fixed in ttmkfdir-3.0.9-r2