public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/13391] New: AIX: crash on throw/catch between shared objects
@ 2003-12-12 19:13 greed at pobox dot com
  2003-12-12 19:18 ` [Bug target/13391] " greed at pobox dot com
                   ` (42 more replies)
  0 siblings, 43 replies; 44+ messages in thread
From: greed at pobox dot com @ 2003-12-12 19:13 UTC (permalink / raw)
  To: gcc-bugs

The attached testcase, while quite contrived, illustrates a problem we are
experiencing on AIX with GCC 3.3.2.  Tests suggest that the problem actually
goes back to GCC 2.95.3 or earlier on AIX 4.3, and is not unique to AIX 5.2.

When run, the program fails to catch the exception, and instead aborts.  The
stack trace after the abort is:

#0  0xd005d1c0 in pthread_kill () from /usr/lib/libpthreads.a(shr_xpg5.o)
#1  0xd005cc4c in _p_raise () from /usr/lib/libpthreads.a(shr_xpg5.o)
#2  0xd01e6508 in raise () from /usr/lib/libc.a(shr.o)
#3  0xd0206400 in abort () from /usr/lib/libc.a(shr.o)
#4  0xd49ec01c in __cxxabiv1::__terminate(void (*)()) (handler=<incomplete
type>) at  _start_ :47
#5  0xd49ebfd0 in std::terminate() () at  _start_ :57
#6  0xd49f2bc4 in __cxa_throw (obj=<incomplete type>, tinfo=<incomplete type>, 
    dest=<incomplete type>) at  _start_ :80
#7  0xd47f8630 in TestFun2::foo() (this=0x2ff223a5) at TestThreadFunction2.C:9
#8  0xd460620c in AixThreadFn::execute() (this=0x2ff223f0) at
TestThreadFunction.C:12
#9  0x100005bc in main () at aixtest2.C:11
#10 0x100001dc in __start ()

If you compile without -pthread, you get a very similar traceback:
#0  0xd01e6514 in raise () from /usr/lib/libc.a(shr.o)
#1  0xd0206400 in abort () from /usr/lib/libc.a(shr.o)
#2  0xdc87e01c in __cxxabiv1::__terminate(void (*)()) (handler=<incomplete
type>) at  _start_ :47
#3  0xdc87dfd0 in std::terminate() () at  _start_ :57
#4  0xdc8847d4 in __cxa_throw (obj=<incomplete type>, tinfo=<incomplete type>, 
    dest=<incomplete type>) at  _start_ :80
#5  0xdc68b630 in TestFun2::foo() (this=0x2ff223a5) at TestThreadFunction2.C:9
#6  0xdc49920c in AixThreadFn::execute() (this=0x2ff223f0) at
TestThreadFunction.C:12
#7  0x1000053c in main () at aixtest2.C:11
#8  0x100001dc in __start ()

...only without the pthread signal propagation.

The testcase contains a template which calculates a factorial, in order to
produce very large shared objects.  This is to simulate the size of the shared
objects in our production code; if the shared objects are small, the fault is
not reliably reproducable.

-- 
           Summary: AIX: crash on throw/catch between shared objects
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: greed at pobox dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-ibm-aix5.2.0.0
  GCC host triplet: powerpc-ibm-aix5.2.0.0
GCC target triplet: powerpc-ibm-aix5.2.0.0


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


^ permalink raw reply	[flat|nested] 44+ messages in thread

end of thread, other threads:[~2004-11-24 18:42 UTC | newest]

Thread overview: 44+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-12 19:13 [Bug target/13391] New: AIX: crash on throw/catch between shared objects greed at pobox dot com
2003-12-12 19:18 ` [Bug target/13391] " greed at pobox dot com
2003-12-12 19:19 ` greed at pobox dot com
2003-12-12 19:19 ` greed at pobox dot com
2003-12-12 19:20 ` greed at pobox dot com
2003-12-12 19:20 ` greed at pobox dot com
2003-12-12 19:20 ` greed at pobox dot com
2003-12-24  2:46 ` ddurham_gcc_bz at davyandbeth dot com
2003-12-26  3:20 ` dje at gcc dot gnu dot org
2003-12-29 16:24 ` ddurham_gcc_bz at davyandbeth dot com
2003-12-29 20:51 ` greed at pobox dot com
2004-01-18 17:58 ` dhazeghi at yahoo dot com
2004-01-19  4:32 ` dje at watson dot ibm dot com
2004-01-19 17:36 ` [Bug target/13391] AIX: collect2 emits bad code with duplicated symbols dhazeghi at yahoo dot com
2004-01-20 21:13 ` greed at pobox dot com
2004-03-03  1:11 ` ajd at gentrack dot com
2004-03-03 22:48 ` dje at watson dot ibm dot com
2004-03-04  0:00 ` ajd at gentrack dot com
2004-03-04  1:56 ` ajd at gentrack dot com
2004-03-04  2:40 ` greed at pobox dot com
2004-03-04  2:47 ` dje at watson dot ibm dot com
2004-03-04  3:01 ` greed at pobox dot com
2004-03-04  4:01 ` ajd at gentrack dot com
2004-03-04  4:06 ` dje at watson dot ibm dot com
2004-03-04  4:16 ` ajd at gentrack dot com
2004-03-04  5:35 ` dje at watson dot ibm dot com
2004-03-04  5:56 ` ajd at gentrack dot com
2004-03-04  6:11 ` dje at watson dot ibm dot com
2004-03-04  6:15 ` ajd at gentrack dot com
2004-03-04 15:34 ` dje at watson dot ibm dot com
2004-03-04 17:17 ` greed at pobox dot com
2004-03-04 17:24 ` dje at watson dot ibm dot com
2004-03-04 17:28 ` dje at watson dot ibm dot com
2004-03-04 17:36 ` greed at pobox dot com
2004-03-04 18:46 ` dje at watson dot ibm dot com
2004-03-04 21:02 ` ajd at gentrack dot com
2004-03-05 15:44 ` greed at pobox dot com
2004-03-05 18:55 ` greed at pobox dot com
2004-03-05 19:51 ` dje at watson dot ibm dot com
2004-03-05 21:08 ` greed at pobox dot com
2004-03-06 20:56 ` dje at gcc dot gnu dot org
2004-03-06 23:31 ` pinskia at gcc dot gnu dot org
2004-03-07 22:35 ` dje at gcc dot gnu dot org
2004-11-24 18:42 ` pinskia 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).