public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/29517]  New: Exception handling not thread-safe on AIX5.x with Gnu compilers
@ 2006-10-19 16:44 Ulrich dot Beingesser at t-systems dot com
  2006-10-19 16:45 ` [Bug c++/29517] " Ulrich dot Beingesser at t-systems dot com
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Ulrich dot Beingesser at t-systems dot com @ 2006-10-19 16:44 UTC (permalink / raw)
  To: gcc-bugs

The attached code crashes under AIX5.2 and AIX5.3 when compiled with g++ 4.1.1.
The effect also occurs using g++ 4.0.3.

It seems that throwing exceptions is not completely thread safe.

The crash symptom is one of:
1. segmentation fault (core dumped)
2. illegal instruction (core dumped)
3. terminate called after throwing an instance of 'int' (core dumped). 

The effect cannot clearly be reproduced.
However when running the test program (crashme.cpp) with rather big parameter
values
one can proove that the program crashes very often after some time if the
params are choosen big enough.

The program was build with following command:
g++ crashme.cpp -o crashme -lpthread

Usage: crashme <number of threads> <number of runs>

For example 'crashme 50 1000' was enough to crash it on our box almost every
time.


-- 
           Summary: Exception handling not thread-safe on AIX5.x with Gnu
                    compilers
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Ulrich dot Beingesser at t-systems dot com


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


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

end of thread, other threads:[~2007-07-24 16:26 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-19 16:44 [Bug c++/29517] New: Exception handling not thread-safe on AIX5.x with Gnu compilers Ulrich dot Beingesser at t-systems dot com
2006-10-19 16:45 ` [Bug c++/29517] " Ulrich dot Beingesser at t-systems dot com
2006-10-19 16:51 ` pinskia at gcc dot gnu dot org
2006-10-19 17:02 ` Ulrich dot Beingesser at t-systems dot com
2006-10-19 17:28 ` pinskia at gcc dot gnu dot org
2006-10-20  7:53 ` Ulrich dot Beingesser at t-systems dot com
2006-10-20  8:08 ` Ulrich dot Beingesser at t-systems dot com
2006-10-20  8:10 ` Ulrich dot Beingesser at t-systems dot com
2006-10-26 18:39 ` Ulrich dot Beingesser at t-systems dot com
2007-01-20 10:37 ` [Bug target/29517] Exception handling not thread-safe on AIX5.x and HP-UX rguenth at gcc dot gnu dot org
2007-07-20 21:22 ` chris at cdnorthamerica dot com
2007-07-24 15:52 ` chris at cdnorthamerica dot com
2007-07-24 16:26 ` dave at hiauly1 dot hia dot nrc dot ca

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).