Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7933 - BitchX segfaults with -O3 optimization.
Summary: BitchX segfaults with -O3 optimization.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: phoen][x
URL:
Whiteboard:
Keywords:
: 6273 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-09-15 01:27 UTC by Andreas Mikkelborg
Modified: 2002-10-21 08:06 UTC (History)
3 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 Andreas Mikkelborg 2002-09-15 01:27:24 UTC
I've tested this on multiple computers(and heard alot of complaints), it seems 
-O3 is causing BitchX to seg fault right after you run it, i suggest making 
the ebuild force -O1 or -O2
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-09-15 07:18:09 UTC
will do -- but this is hardly a blocker, in that it does not stop Gentoo Linux
from getting installed.

anyway, what about compiler flags like -fomit-frame-pointer, etc?
Comment 2 phoen][x 2002-09-15 10:06:02 UTC
Right. Compiling with -O3 works fine, but the program segfaults. Falling back to
-O2 does the trick. Here are my CFLAGS/CXXFLAGS:

-march=athlon-tbird -O2 -pipe -m3dnow -mmmx -fforce-addr -fomit-frame-pointer
-funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4
-maccumulate-outgoing-args

Yeah i know that some of them are redundant. I'll force bitchX to use -O2. Could
you do me a favor and try to merge epic4 with -O3? It has the same problem as BX
over here (well BX is epic4 based iirc). That way we could fix two applications
with one bug. :)

-phoen][x-
Comment 3 Andreas Mikkelborg 2002-09-15 11:23:38 UTC
Ok, i just compiled it on a AMDK6-3 and a Celeron 700 with -O3
On the k6-3 it didn't seg fault but on the Celeron it segfaulted just like 
with BX

(Sorry about the 'blocker'=)
Comment 4 SpanKY gentoo-dev 2002-09-15 13:29:27 UTC
using just:
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=i686 -O9 -pipe"
CXXFLAGS="-mcpu=i686 -O9 -pipe"

results in a segfault too (p4 1.8gig)
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2002-09-19 02:38:41 UTC
compiled it with
CHOST="i586-pc-linux-gnu"
CFLAGS="-march=i586 -O3 -pipe"
CXXFLAGS="-march=i586 -O3 -pipe"

works fine

p166 MMX

watch out #6273
there's a ebuild
maybe try it
Comment 6 Seemant Kulleen (RETIRED) gentoo-dev 2002-10-20 15:16:22 UTC
*** Bug 6273 has been marked as a duplicate of this bug. ***
Comment 7 phoen][x 2002-10-21 07:53:48 UTC
[standard_answer] 
Sorry for the delay
[/standard_answer] 

I'll force -O2 in the ebuild. From what i've read/seen, this should fix this
bug. If the problem still exists, we shall fall back to -O1. Anyways, lets start
with small steps.

-phoen][x-
Comment 8 phoen][x 2002-10-21 08:06:28 UTC
Well seems like bcowan fixed the bug in the meantime. He used flag-o-matic to
replace -O3 with -O2. I modified it to also take care of -O4++; -O[3-9] will be
replaced with -O2, now.

Works fine for me. Any issues, reopen this bug.

-phoen][x-