public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/43324] New: core dump on throw
@ 2010-03-10 18:20 lwestermann at gams dot com
2010-03-10 18:25 ` [Bug c++/43324] " lwestermann at gams dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: lwestermann at gams dot com @ 2010-03-10 18:20 UTC (permalink / raw)
To: gcc-bugs
$uname -a
SunOS sigvmec2 5.11 snv_111b i86pc i386 i86xpv Solaris
$g++ -v
Using built-in specs.
Target: i386-pc-solaris2.11
Configured with: ../configure CC=gcc --prefix=/usr/local2
--build=i386-pc-solaris2.11 --with-gnu-as --with-as=/usr/local/bin/as
--without-gnu-ld --with-ld=/usr/ccs/bin/ld --with-gmp=/usr/local
--with-mpfr=/usr/local --enable-languages=c,c++,fortran --enable-shared
Thread model: posix
gcc version 4.4.3 (GCC)
Source code:
#include <iostream>
using namespace std;
int main() {
cout << "hello world!" << endl;
try {
throw "exception";
} catch ( ... ) {
cout << "catched exception" << endl ;
}
return 0;
}
If I compile this with:
g++ -m64 test.c -o test
and run ./test, I get
hello world!
terminate called after throwing an instance of 'char const*'
Abort (core dumped)
With gcc 4.3.3 it works without a problem.
Best,
Lutz
--
Summary: core dump on throw
Product: gcc
Version: 4.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: lwestermann at gams dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43324
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/43324] core dump on throw
2010-03-10 18:20 [Bug c++/43324] New: core dump on throw lwestermann at gams dot com
@ 2010-03-10 18:25 ` lwestermann at gams dot com
2010-03-11 12:13 ` rguenth at gcc dot gnu dot org
2010-04-28 18:35 ` [Bug target/43324] " ro at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: lwestermann at gams dot com @ 2010-03-10 18:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from lwestermann at gams dot com 2010-03-10 18:24 -------
Created an attachment (id=20076)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20076&action=view)
preprocessed source
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43324
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/43324] core dump on throw
2010-03-10 18:20 [Bug c++/43324] New: core dump on throw lwestermann at gams dot com
2010-03-10 18:25 ` [Bug c++/43324] " lwestermann at gams dot com
@ 2010-03-11 12:13 ` rguenth at gcc dot gnu dot org
2010-04-28 18:35 ` [Bug target/43324] " ro at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-03-11 12:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2010-03-11 12:13 -------
Works on linux.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43324
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/43324] core dump on throw
2010-03-10 18:20 [Bug c++/43324] New: core dump on throw lwestermann at gams dot com
2010-03-10 18:25 ` [Bug c++/43324] " lwestermann at gams dot com
2010-03-11 12:13 ` rguenth at gcc dot gnu dot org
@ 2010-04-28 18:35 ` ro at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: ro at gcc dot gnu dot org @ 2010-04-28 18:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from ro at gcc dot gnu dot org 2010-04-28 18:35 -------
I couldn't reproduce this so far, neither on the 4.4 branch nor on mainline.
OTOH, I don't have snv_111b available here, but know that there are EH issues
on Solaris 11/x86. I've posted a patch which works for snv_130/134, but didn't
on snv_127 and breaks Solaris 10, so I've got more investigation to do:
PATCH: Fix Solaris 11/x86 MD_FALLBACK_FRAME_STATE_FOR
http://gcc.gnu.org/ml/gcc-patches/2010-02/msg00994.html
--
ro at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ro at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43324
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-04-28 18:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-10 18:20 [Bug c++/43324] New: core dump on throw lwestermann at gams dot com
2010-03-10 18:25 ` [Bug c++/43324] " lwestermann at gams dot com
2010-03-11 12:13 ` rguenth at gcc dot gnu dot org
2010-04-28 18:35 ` [Bug target/43324] " ro at gcc dot gnu dot org
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).