Multithreading problems
Ciorecan Marius
Ciorecan.Marius@ssi-schaefer.ro
Mon Dec 6 15:37:00 GMT 2004
Hi
I have developed a multithreaded application that starts up to 100 - 200 threads. Each thread communicates on TCP/IP with some external process.
The application is developed on C++, and it's running on an AIX machine, and compiled with gcc version 2.9-aix51-020209.
When I have a higher load on the application, it crashes with core. I examined the core file with gdb and I see that most of the times it crashes in a socket operation OR when i throw an exception ( i throw exception for example when the communication with the partner is down on TCP/IP).
The exception part is very strange: i throw an exception and i have a catch in the caller function, but the exception never arrives to that catch. Is looking like the throw/catch functions are not thread safe.
Do you have any idea? What should I look for?
Marius
p.s. I compiled the sources with these flags: -D_REENTRANT -D_THREAD_SAFE -D_LIBC_REENTRANT -fexceptions -fstack-check
More information about the Gcc
mailing list