public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "sebor at roguewave dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/28351]  New: SIGSEGV rethrowing an exception with -m64 -static on ppc/linux
Date: Tue, 11 Jul 2006 21:10:00 -0000	[thread overview]
Message-ID: <bug-28351-1186@http.gcc.gnu.org/bugzilla/> (raw)

We're seeing the behavior below in 64-bit statically linked programs on
PowerPC/Linux (this has the same effect: gcc -m64 t.cpp -lsupc++). Here's
the stack trace, if it helps at all:

#0  0x00000000100010e8 in .__cxa_get_globals_fast ()
#1  0x0000000010000d60 in .__cxa_end_catch ()
#2  0x0000000010000a98 in main () at t.cpp:10

$ cat t.cpp && gcc --version && g++ -m64 t.cpp -static && ./a.out 
void foo () { throw 0; }

int main ()
{
    try {
        try {
            foo ();
        }
        catch (...) {
            throw;
        }
    }
    catch (...) {
        return 0;
    }

    return 1;
} 
$ cat t.cpp && gcc --version && g++ -m64 t.cpp -static && ./a.out 
void foo () { throw 0; }

int main ()
{
    try {
        try {
            foo ();
        }
        catch (...) {
            throw;
        }
    }
    catch (...) {
        return 0;
    }

    return 1;
} 

gcc (GCC) 3.3.3 (SuSE Linux)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Segmentation fault

gcc (GCC) 3.3.3 (SuSE Linux)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Segmentation fault


-- 
           Summary: SIGSEGV rethrowing an exception with -m64 -static on
                    ppc/linux
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sebor at roguewave dot com
 GCC build triplet: powerpc-suse-linux
  GCC host triplet: powerpc-suse-linux
GCC target triplet: powerpc-suse-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28351


             reply	other threads:[~2006-07-11 21:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-11 21:10 sebor at roguewave dot com [this message]
2006-07-11 21:13 ` [Bug c++/28351] " pinskia at gcc dot gnu dot org
2006-07-11 21:42 ` sebor at roguewave dot com
2006-07-22 22:27 ` pinskia at gcc dot gnu dot org
2006-07-22 22:28 ` pinskia at gcc dot gnu dot org
2006-07-23 23:56 ` pinskia at gcc dot gnu 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=bug-28351-1186@http.gcc.gnu.org/bugzilla/ \
    --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: link
Be 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).