Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 85160

Summary: ircservices-5.0.45 doesn't run when compiled with CFLAGS="-Os"
Product: Gentoo Linux Reporter: David Korth <gerbilsoft>
Component: [OLD] ServerAssignee: Packages in net-irc <net-irc>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description David Korth 2005-03-13 19:01:16 UTC
If ircservices-5.0.45 is compiled with CFLAGS="-Os", it will segfault on startup. This does not happen with CFLAGS="-O2".

Reproducible: Always
Steps to Reproduce:
1. Set CFLAGS="-Os".
2. emerge ircservices
3. /etc/init.d/ircservices start

Actual Results:  
 * Starting IRC Services...
/sbin/runscript.sh: line 532:  6999 Segmentation fault      /usr/bin/ircservices
-dir=/var/lib/ircservices -log=/var/log/ircservices/ircservices.log >&/dev/null
[ !! ]

Expected Results:  
 * Starting IRC Services... [ ok ]
(IRC Services would now be running.)

The CFLAGS listed above only contains the switch that affects the application.
The full CFLAGS is as follows:

CFLAGS="-Os -march=pentium4 -mmmx -msse -msse2 -mfpmath=sse -fomit-frame-pointer
-pipe"

In testing, the only flag that affected the result was the optimization flag.
Comment 1 Sven Wegener gentoo-dev 2005-03-14 12:46:07 UTC
Doesn't happen for me with -Os but I added -Os to the -O CFLAGS replacement. Thanks!