public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* target/8558: Exceptions not caught in 64 bit-mode on Solaris 2.7 (-m64 flag)
@ 2002-11-19 18:29 n.richartz
0 siblings, 0 replies; only message in thread
From: n.richartz @ 2002-11-19 18:29 UTC (permalink / raw)
To: gcc-gnats
>Number: 8558
>Category: target
>Synopsis: Exceptions not caught in 64 bit-mode on Solaris 2.7 (-m64 flag)
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Nov 13 06:46:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: n.richartz@secunet.de
>Release: gcc-3.2-sol7-sparc
>Organization:
>Environment:
Sun Solaris 2.7
>Description:
Compiling a program with the -m64 flag on solaris 2.7 leads to the fact that excaptions can't be caught any more. The immediate result in a segmentation fault.
>How-To-Repeat:
Use the following program:
#include <stdio.h>
#include <exception>
void throwException()
{
throw std::exception();
}
int main(int argc, char* argv[])
{
printf("Hello World!\n");
try
{
throwException();
}
catch(...)
{
printf("Gotcha, Exception\n");
}
printf("Hello World2!\n");
return 0;
}
Compiling with "g++ ExTest.cpp":
bash-2.03$ ./a.out
Hello World!
Gotcha, Exception
Hello World2!
compiling with "g++ -m64 ExTest.cpp":
bash-2.03$ a.out
Hello World!
Segmentation Fault (core dumped)
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-11-13 14:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-19 18:29 target/8558: Exceptions not caught in 64 bit-mode on Solaris 2.7 (-m64 flag) n.richartz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).