public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Ciorecan Marius" <Ciorecan.Marius@ssi-schaefer.ro>
To: <gcc@gcc.gnu.org>
Subject: Multithreading problems
Date: Mon, 06 Dec 2004 15:37:00 -0000	[thread overview]
Message-ID: <716743551F8B3E47BAF3D1DABF12DA1E308CAF@srv-ex2000.tm.ssi> (raw)

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

    

             reply	other threads:[~2004-12-06 15:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-06 15:37 Ciorecan Marius [this message]
2004-12-06 17:26 ` David Edelsohn
2004-12-06 17:30 Ciorecan Marius
2004-12-07  1:24 Daniel Kegel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=716743551F8B3E47BAF3D1DABF12DA1E308CAF@srv-ex2000.tm.ssi \
    --to=ciorecan.marius@ssi-schaefer.ro \
    --cc=gcc@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).