public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "hjl dot tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/40841] Application segfaults when throwing an exception that destroys an fstream Date: Fri, 24 Jul 2009 01:53:00 -0000 [thread overview] Message-ID: <20090724015252.5584.qmail@sourceware.org> (raw) In-Reply-To: <bug-40841-10271@http.gcc.gnu.org/bugzilla/> ------- Comment #6 from hjl dot tools at gmail dot com 2009-07-24 01:52 ------- It works for me on RHEL 4 with gcc 4.4.1: [hjl@gnu-14 tmp]$ cat foo.cc #include <fstream> using namespace std; void f(const char * filename) { ifstream is; throw 2; } int main() { try { f("v3"); } catch(int e) { } } [hjl@gnu-14 tmp]$ /usr/gcc-4.4/bin/g++ foo.cc -Wl,-rpath,/usr/gcc-4.4/lib [hjl@gnu-14 tmp]$ ldd a.out linux-gate.so.1 => (0xa000000000000000) libstdc++.so.6 => /usr/gcc-4.4/lib/libstdc++.so.6 (0x2000000000044000) libm.so.6.1 => /lib/tls/libm.so.6.1 (0x2000000000240000) libgcc_s.so.1 => /usr/gcc-4.4/lib/libgcc_s.so.1 (0x20000000002fc000) libunwind.so.7 => /usr/gcc-4.4/lib/libunwind.so.7 (0x2000000000330000) libc.so.6.1 => /lib/tls/libc.so.6.1 (0x200000000035c000) /lib/ld-linux-ia64.so.2 (0x2000000000000000) [hjl@gnu-14 tmp]$ ./a.out [hjl@gnu-14 tmp]$ /usr/gcc-4.4/bin/g++ -v Using built-in specs. Target: ia64-unknown-linux-gnu Configured with: /net/gnu-13/export/gnu/src/gcc-4.4/gcc/configure --enable-clocale=gnu --with-system-zlib --enable-checking=assert --with-demangler-in-ld --enable-shared --enable-threads=posix --enable-haifa --prefix=/usr/gcc-4.4 --with-local-prefix=/usr/local Thread model: posix gcc version 4.4.1 (GCC) [hjl@gnu-14 tmp]$ ld -V GNU ld (Linux/GNU Binutils) 2.19.51.0.14.20090722 Supported emulations: elf64_ia64 [hjl@gnu-14 tmp]$ -- hjl dot tools at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hjl dot tools at gmail dot | |com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40841
next prev parent reply other threads:[~2009-07-24 1:53 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-07-23 20:38 [Bug libstdc++/40841] New: " zlynx at acm dot org 2009-07-23 20:46 ` [Bug libstdc++/40841] " paolo dot carlini at oracle dot com 2009-07-23 21:02 ` zlynx at acm dot org 2009-07-23 21:03 ` zlynx at acm dot org 2009-07-23 21:09 ` paolo dot carlini at oracle dot com 2009-07-23 22:26 ` zlynx at acm dot org 2009-07-24 1:53 ` hjl dot tools at gmail dot com [this message] 2009-07-24 12:21 ` rguenth at gcc dot gnu dot org 2009-07-24 15:47 ` zlynx at acm dot org 2009-07-27 21:26 ` zlynx at acm dot org 2009-08-15 0:02 ` zlynx at acm dot org
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=20090724015252.5584.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@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).