public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: fwang@ca.ibm.com To: gcc-gnats@gcc.gnu.org Subject: c++/9588: memory fault when user throws exception from terminate() Date: Wed, 05 Feb 2003 19:46:00 -0000 [thread overview] Message-ID: <20030205193751.26353.qmail@sources.redhat.com> (raw) >Number: 9588 >Category: c++ >Synopsis: memory fault when user throws exception from terminate() >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Feb 05 19:46:01 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Frank Wang >Release: gcc version 3.2 >Organization: >Environment: --enable-languages=c,c++,f77 --prefix=/opt/cross --host=powerpc-suse-linux --target=powerpc64-linux --enable-threads=posix --disable-nls --enable-shared --with-headers=/usr/src/packages/BUILD/cross-ppc64-gcc-3.2/include-ppc64-glibc-2.2.5 >Description: If user threw exception from terminate(), abort() function should be called. We used following codes to test this feathre by using 64bit g++, but got memory fault at running time >How-To-Repeat: Sample Source File: =================== //tmp.cpp using namespace std; #include <exception> struct S { int i; S() {i=1;} }; void eh_term(void) { S s; throw s; } int main(void) { set_terminate (&eh_term); try { throw 'a'; } catch (S) { } return 0; } Test Process: ============= STEP1: compiling and linking /opt/cross/bin/powerpc64-linux-g++ tmp.cpp STEP2: run a.out Actual Output: ============= rc = 139 Error msg Memory fault Expected Output: =============== rc = 134 Error msg Abort >Fix: >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2003-02-05 19:46 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-02-05 19:46 fwang [this message] 2003-02-05 20:15 nathan 2003-02-05 21:56 fwang 2003-02-06 4:56 Alan Modra
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20030205193751.26353.qmail@sources.redhat.com \ --to=fwang@ca.ibm.com \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).