Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32200 - spice-3.5.5 crashes when compiled with -fomit-frame-pointer
Summary: spice-3.5.5 crashes when compiled with -fomit-frame-pointer
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-28 09:29 UTC by Damjan
Modified: 2011-07-03 13:48 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 Damjan 2003-10-28 09:29:06 UTC
When compiled with gcc (version 3.2.3 20030422) flag -fomit-frame-pointer "spice sample_circuit.cir" crashes with:
internal error -- segmentation violation



Maybe you should filter this gcc flag in your ebuild. Not sure if this is spice or gcc bug though.
regards
Comment 1 Patrick Kursawe (RETIRED) gentoo-dev 2003-11-03 07:20:08 UTC
Can you perhaps add some example file and give a step-by-step guide how to
crash it?
Comment 2 Damjan 2003-11-03 08:14:52 UTC
On second thought this may also be some athlon/athlon mobo bug. Steps to
reproduce it:

step 1
Emerge spice with these flags in make.conf
CFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer"


step 2
Save example below as na.spc. 

########na.spc###############
network analysis example   
v1 1 0 dc 28
v2 3 0 dc 7    
r1 1 2 5
r2 2 0 7
r3 2 3 6
.dc v1 28 28 1  
.print dc v(1,2) v(2,0) v(2,3)
.end
##############################

Step 3
"spice -b na.spc" or spice na.spc
output:
Program: Spice, version: 3f5
Date built: Mon Nov  3 16:51:58 CET 2003

Type "help" for more information, "quit" to leave.


Circuit: network analysis example   


internal error -- segmentation violation

step 4:
Emerge spice without -fomit-frame-pointer flag and its behaviour will be
correct:
Circuit: network analysis example   

Warning: can't parse '0': ignored
Circuit: network analysis example   
Date: Mon Nov  3 17:14:14  2003


                          network analysis example   
                          DC transfer characteristic  Mon Nov  3 17:14:14
 2003
--------------------------------------------------------------------------------
Index   sweep           v(1)-v(2)       v(2)            v(2)-v(3)       
--------------------------------------------------------------------------------
0       2.800000e+01    1.471963e+01    1.328037e+01    6.280374e+00    

CPU time since last call: 0.020 seconds.

Total CPU time: 0.020 seconds.

Current dynamic memory usage = 139264,
Dynamic memory limit = 4294967295.


Any file with correct or incorrect syntax produces same error. I've heard
before about -fomit-frame-pointer issues with some obscure software but this
is my first problem with it.
Comment 3 Patrick Kursawe (RETIRED) gentoo-dev 2003-11-03 09:21:20 UTC
The problem can be reproduced with CFLAGS="-march=athlon-xp -O3 -fomit-frame-pointer
-pipe", but not with CFLAGS="-O3 -fomit-frame-pointer -pipe"
(gcc 3.3.2). Optimization -O0 and -O1 don't crash. Looks like "athlon" and
"omit-frame-pointer" is a bad combination for this package.
Comment 4 Patrick Kursawe (RETIRED) gentoo-dev 2003-12-10 05:13:04 UTC
Since this does not depend on a single flag, but on a specific combination, I'd like to treat this as WONTFIX.