From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19494 invoked by alias); 13 Nov 2002 14:46:03 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 19474 invoked by uid 71); 13 Nov 2002 14:46:02 -0000 Resent-Date: 13 Nov 2002 14:46:02 -0000 Resent-Message-ID: <20021113144602.19473.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, n.richartz@secunet.de Received: (qmail 17854 invoked by uid 61); 13 Nov 2002 14:41:21 -0000 Message-Id: <20021113144121.17853.qmail@sources.redhat.com> Date: Tue, 19 Nov 2002 18:29:00 -0000 From: n.richartz@secunet.de Reply-To: n.richartz@secunet.de To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: target/8558: Exceptions not caught in 64 bit-mode on Solaris 2.7 (-m64 flag) X-SW-Source: 2002-11/txt/msg00613.txt.bz2 List-Id: >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 #include 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: