From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20848 invoked by alias); 26 Apr 2002 14:31:58 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 20795 invoked by uid 61); 26 Apr 2002 14:31:54 -0000 Date: Fri, 26 Apr 2002 07:31:00 -0000 Message-ID: <20020426143154.20794.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, jc@roguewave.com, nobody@gcc.gnu.org, sebor@roguewave.com From: nathan@gcc.gnu.org Reply-To: nathan@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, jc@roguewave.com, nobody@gcc.gnu.org, sebor@roguewave.com, gcc-gnats@gcc.gnu.org Subject: Re: c++/5313: unable to catch exceptions thrown from subthreads during destruction of global objects in shared libraries X-SW-Source: 2002-04/txt/msg01465.txt.bz2 List-Id: Synopsis: unable to catch exceptions thrown from subthreads during destruction of global objects in shared libraries State-Changed-From-To: open->closed State-Changed-By: nathan State-Changed-When: Fri Apr 26 07:31:53 2002 State-Changed-Why: main should wait until all sub threads have terminated. From the solaris pthread_create man page Example 2: If main() had not waited for the completion of the other threads (using pthread_join(3THR) or thr_join(3THR)), it would have continued to process con- currently until it reached the end of its routine and the entire process would have exited prematurely (see exit(2)). http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5313