Problem with mixing threads and exceptions in AIX 4.3.2

Problem with mixing threads and exceptions in AIX 4.3.2

Post by Ng Seng Chan » Sat, 17 Jul 1999 04:00:00



Hi,
I have tried writing a simple C++ program to stress test AIX 4.3.2 in
handling exception with multi-threading.  In the program, an exception
is thrown whenever an operation is called.  Each of the threads will
call the operation for 1000 times.  Each of the thread will catch the
exception and continue with its execution.

The program will not exit until all threads have completed its
execution.

The program was compiled using C++ compiler v 3.6.4

Whenever I run the program with more than 1 thread, it will always core
dump.   It happens even if the program were to be compiled with
xlC_r7.   However, when I compiled the SAME program on AIX 4.2.1 with
the same compiler, the program runs fine even with 400 threads.

Has any one experience the same kind of problem in AIX 4.3.2 using C++
compiler v3.6.4?

seng chang

 
 
 

Problem with mixing threads and exceptions in AIX 4.3.2

Post by cklut » Tue, 27 Jul 1999 04:00:00


Hi,

[sorry for possibly posting twice...]

I just found the same problem (little pthread test app could reproduce
it perfectly).
I think there are a bunch of updates for packages (xlC.rte and
ibmcxx.cmp, ibmcxx.lib and ibmcxx.rte) which patch it up to 3.6.6.x
(available at IBM's RS6K page). Although they address
a 'memory leak' problem with threading and exception handling - maybe
they solve this problem as well (maybe its even just _this_ problem).
However some of our 3rd party vendors (like Iona and Rogue Wave), state
to use the 3.6.4 version of the compiler, so Iam not sure wether to just
have a try with the new versions. BTW how did they successfully test
their products? ;-)

Maybe someone can bring some light in this darkness...

CK



Quote:> Hi,
> I have tried writing a simple C++ program to stress test AIX 4.3.2 in
> handling exception with multi-threading.  In the program, an exception
> is thrown whenever an operation is called.  Each of the threads will
> call the operation for 1000 times.  Each of the thread will catch the
> exception and continue with its execution.

> The program will not exit until all threads have completed its
> execution.

> The program was compiled using C++ compiler v 3.6.4

> Whenever I run the program with more than 1 thread, it will always
core
> dump.   It happens even if the program were to be compiled with
> xlC_r7.   However, when I compiled the SAME program on AIX 4.2.1 with
> the same compiler, the program runs fine even with 400 threads.

> Has any one experience the same kind of problem in AIX 4.3.2 using C++
> compiler v3.6.4?

> seng chang

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

 
 
 

1. AIX 5.1 G++ exception handling w multi threads

I am experiencing problems with G++ when I have multiple
threads running and I do new/delete operations. If an exception
occurs while I am doing a delete I find it is not thread safe and
it crashes. I believe this may only be an AIX problem. If anyone
is aware of a fix please let me know. I am using the AIX
2.9-aix51-020209 which is based on gcc-2.95.2 sources. I
downloaded it from the IBM Linux tools site.

Cheers
Randy Petersen
Interwoven
Sunnyvale California

2. Yp: Makefile.dist -can somone post one..

3. Moving from DCE threads to AIX threads SIGPIPE problem

4. svgalib

5. Purify / Solaris 9 / 64-bit Multi-Thread IPR / exception problem

6. nec superscript 610 plus

7. Run-time exception; no handler for exception problem

8. SMF and verbose mountd

9. Exception problem in g++ on AIX 4.1

10. Exceptions problem in g++ on AIX 4.1

11. Problems with time stamps in mixed AIX & NetWare network

12. AIX audio mixing problems

13. Native threads and DCE threads, AIX 4.1.4