c/2158: extra testsuite "execute" failures with -O -fomit-frame-pointer -p (profiling)

ghazi@caip.rutgers.edu ghazi@caip.rutgers.edu
Fri Mar 2 20:36:00 GMT 2001


>Number:         2158
>Category:       c
>Synopsis:       extra testsuite "execute" failures with -O -fomit-frame-pointer -p (profiling)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 02 20:36:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Kaveh Ghazi
>Release:        3.0 20010301 (prerelease)
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
I get extra testsuite failures when using profiling.
Specifically, compile the following testcases from the
"execute" directory with flags shown and run the
resulting binary:

ERROR: pending-4.c: compiled program got signal 11: -O -fomit-frame-pointer -p
ERROR: pending-4.c: compiled program got signal 11: -O2 -fomit-frame-pointer -p
ERROR: memcpy-bi.c: compiled program got signal 11: -O -fomit-frame-pointer -p
ERROR: memcpy-bi.c: compiled program got signal 11: -O2 -fomit-frame-pointer -p
ERROR: complex-2.c: compiled program got signal 11: -O -fomit-frame-pointer -p
ERROR: complex-2.c: compiled program got signal 11: -O2 -fomit-frame-pointer -p
ERROR: cmpdi-1.c: compiled program got signal 11: -O -fomit-frame-pointer -p
ERROR: cmpdi-1.c: compiled program got signal 11: -O2 -fomit-frame-pointer -p
ERROR: arith-rand.c: compiled program got signal 11: -O -fomit-frame-pointer -p
ERROR: arith-rand.c: compiled program got signal 11: -O2 -fomit-frame-pointer -p
ERROR: 980605-1.c: compiled program got signal 11: -O -fomit-frame-pointer -p
ERROR: 980605-1.c: compiled program got signal 11: -O2 -fomit-frame-pointer -p
ERROR: 980605-1.c: compiled program got signal 11: -O3 -fomit-frame-pointer -p
ERROR: 970312-1.c: compiled program got signal 11: -O -fomit-frame-pointer -p
ERROR: 970312-1.c: compiled program got signal 11: -O2 -fomit-frame-pointer -p
ERROR: 970312-1.c: compiled program got signal 11: -O3 -fomit-frame-pointer -p
ERROR: 950612-1.c: compiled program got signal 11: -O2 -fomit-frame-pointer -p
ERROR: 930628-1.c: compiled program got signal 11: -O -fomit-frame-pointer -p
ERROR: 930628-1.c: compiled program got signal 11: -O2 -fomit-frame-pointer -p
ERROR: 920501-6.c: compiled program got signal 11: -O -fomit-frame-pointer -p
ERROR: 920501-6.c: compiled program got signal 11: -O2 -fomit-frame-pointer -p
ERROR: 920501-2.c: compiled program got signal 11: -O -fomit-frame-pointer -p
ERROR: 920501-2.c: compiled program got signal 11: -O2 -fomit-frame-pointer -p
ERROR: 20000511-1.c: compiled program got signal 11: -O -fomit-frame-pointer -p
ERROR: 20000511-1.c: compiled program got signal 11: -O2 -fomit-frame-pointer -p
ERROR: 20000412-4.c: compiled program got signal 11: -O -fomit-frame-pointer -p
ERROR: fp-cmp-4.c: compiled program got signal 11: -O -fomit-frame-pointer -p

Running under gdb typically shows:

Program received signal SIGSEGV, Segmentation fault.
0x400c8317 in mcount () at soinit.c:59
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list