This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/29517] Exception handling not thread-safe on AIX5.x with Gnu compilers



------- Comment #7 from Ulrich dot Beingesser at t-systems dot com  2006-10-26 18:38 -------
(In reply to comment #0)
> 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.
> 

Effect can also be reproduced with gcc 4.1.1 on HP-UX 11.11


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]