This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/1560: segmentation fault of a program throwing an exception when compiled with option -fomit-frame-pointer



>Number:         1560
>Category:       c++
>Synopsis:       segmentation fault of a program throwing an exception when compiled with option -fomit-frame-pointer
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 05 07:56:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     gilles.chanteperdrix@libertysurf.fr
>Release:        2.95.2
>Organization:
>Environment:
Debian/Linux potato 2.2r2 
as version 2.9.5
ld version 2.9.5
libstdc++ version 2.10
>Description:
the attached piece of code compiles and links correctly with
or without option -fomit-frame-pointer but produces a 
segmentation fault when compiled with -fomit-frame-pointer.
>How-To-Repeat:
g++ -fomit-frame-pointer -o exception_bug exception_bug.cc
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="exception_bug.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="exception_bug.cc"

I2luY2x1ZGUgPGlvc3RyZWFtPgoKY2xhc3MgQnVnCnsKfTsKCmludCB0aHJvd19idWcoKQp7Cgl0
aHJvdyBCdWcoKTsKCglyZXR1cm4gMDsKfQoKaW50IG1haW4oKQp7Cgl0cnkgewoJCXN0ZDo6Y291
dCA8PCB0aHJvd19idWcoKTsKCX0gY2F0Y2ggKEJ1ZyBidWcpIHsKCX07CgkKCXJldHVybiAwOwoJ
Cn0K

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]