Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 77255 invoked from network); 16 Oct 2007 16:30:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Oct 2007 16:30:50 -0000 Received: (qmail 7238 invoked by uid 500); 16 Oct 2007 16:30:38 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 7174 invoked by uid 500); 16 Oct 2007 16:30:38 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 7163 invoked by uid 99); 16 Oct 2007 16:30:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2007 09:30:38 -0700 X-ASF-Spam-Status: No, hits=-98.5 required=10.0 tests=ALL_TRUSTED,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2007 16:30:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B71B571420E for ; Tue, 16 Oct 2007 09:29:50 -0700 (PDT) Message-ID: <13058188.1192552190747.JavaMail.jira@brutus> Date: Tue, 16 Oct 2007 09:29:50 -0700 (PDT) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Created: (STDCXX-600) [gcc 4.0.1/Mac OS X] SIGABRT throwing an exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [gcc 4.0.1/Mac OS X] SIGABRT throwing an exception -------------------------------------------------- Key: STDCXX-600 URL: https://issues.apache.org/jira/browse/STDCXX-600 Project: C++ Standard Library Issue Type: Bug Components: 18. Language Support Affects Versions: trunk Environment: gcc 4.0.1 on Darwin Kernel Version 8.10.1 Reporter: Martin Sebor Priority: Critical Throwing an exception from the library causes a SIGABRT. Example programs that demonstrate library exceptions abort, as does the program below: $ cat t.cpp && make t && gdb -q t #include int main () { try { std::string s; s.replace (1, 1, "x"); } catch (...) { } } gcc -c -I/Users/sebor/stdcxx/include/ansi -D_RWSTDDEBUG -I/Users/sebor/stdcxx/include -I/build/sebor/stdcxx-gcc-4.0.1-15d/include -I/Users/sebor/stdcxx/examples/include -pedantic -nostdinc++ -g -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align t.cpp gcc t.o -o t -L/build/sebor/stdcxx-gcc-4.0.1-15d/lib -lstd15d -lsupc++ -lgcc_eh -lm Reading symbols for shared libraries ... done (gdb) run Starting program: /build/sebor/stdcxx-gcc-4.0.1-15d/examples/t Reading symbols for shared libraries .+ done Program received signal SIGABRT, Aborted. 0x9003d66c in kill () (gdb) where #0 0x9003d66c in kill () #1 0x9010e8cf in raise () #2 0x9010d422 in abort () #3 0x00002959 in _Unwind_SetGR () at t.cpp:11 #4 0x000026a6 in __gxx_personality_v0 () at t.cpp:11 #5 0x002681c4 in _Unwind_RaiseException_Phase2 () at /Users/sebor/stdcxx/src/wctype.cpp:1058 #6 0x002683f4 in _Unwind_RaiseException () at /Users/sebor/stdcxx/src/wctype.cpp:1058 #7 0x00260a57 in __cxa_throw () at /Users/sebor/stdcxx/src/wctype.cpp:1058 #8 0x0020b774 in __rw::__rw_throw_exception (id=9, what=0x11001d0 "") at /Users/sebor/stdcxx/src/exception.cpp:694 #9 0x0020ac40 in __rw::__rw_throw (id=9) at /Users/sebor/stdcxx/src/exception.cpp:832 #10 0x00238149 in std::string::replace (this=0xbffffa88, __pos1=1, __n1=1, __s=0xbac8 "x", __n2=1) at /Users/sebor/stdcxx/include/string.cc:312 #11 0x0023852f in std::string::replace (this=0xbffffa88, __pos=1, __n=1, __s=0xbac8 "x") at /Users/sebor/stdcxx/include/string:545 #12 0x00001c4d in main () at t.cpp:7 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.