Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85160 - ircservices-5.0.45 doesn't run when compiled with CFLAGS="-Os"
Summary: ircservices-5.0.45 doesn't run when compiled with CFLAGS="-Os"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Packages in net-irc
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-13 19:01 UTC by David Korth
Modified: 2005-03-14 12:46 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 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!