This is the mail archive of the gcc@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]

Multithreading problems


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

    


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