From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15632 invoked by alias); 6 Dec 2004 15:37:33 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 15583 invoked from network); 6 Dec 2004 15:37:28 -0000 Received: from unknown (HELO main.schaefer.ro) (213.157.174.12) by sourceware.org with SMTP; 6 Dec 2004 15:37:28 -0000 Received: from srv-ex2000.tm.ssi (main.schaefer.ro [127.0.0.1]) by main.schaefer.ro (8.12.8/8.11.6) with ESMTP id iB6Fgla1019230 for ; Mon, 6 Dec 2004 17:42:47 +0200 X-BitDefender-Scanner: Clean, Agent: SMTP PROXY 1.5.6 (main.schaefer.ro) X-BitDefender-Spam: No (24) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Multithreading problems Date: Mon, 06 Dec 2004 15:37:00 -0000 Message-ID: <716743551F8B3E47BAF3D1DABF12DA1E308CAF@srv-ex2000.tm.ssi> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Ciorecan Marius" To: X-SW-Source: 2004-12/txt/msg00251.txt.bz2 Hi I have developed a multithreaded application that starts up to 100 - 20= 0 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 e= xamined 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).=20 The exception part is very strange: i throw an exception and i have a c= atch 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?=20 =20=20=20=20 Marius p.s. I compiled the sources with these flags: -D_REENTRANT -D_THREAD_SAFE -= D_LIBC_REENTRANT -fexceptions -fstack-check =20=20=20=20