Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT cygwin DOT com Delivered-To: mailing list cygwin-developers AT cygwin DOT com X-Authentication-Warning: atacama.four-d.de: mail set sender to using -f Date: Mon, 11 Nov 2002 14:13:02 +0100 (=?ISO-8859-1?Q?Westeurop=E4ische_Normalzeit?=) From: Thomas Pfaff To: cygwin-developers AT cygwin DOT com cc: mingw-dvlpr AT lists DOT sourceforge DOT net Subject: Re: Exception handling in gcc-3 In-Reply-To: <20021108162924.GB32143@redhat.com> Message-ID: X-X-Sender: pfaff AT antarctica DOT intern DOT net MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 8 Nov 2002, Christopher Faylor wrote: > On Fri, Nov 08, 2002 at 11:28:26AM +0100, Thomas Pfaff wrote: > > > >Hi Danny, > > > >i just had the time to look at the eh changes in gcc-3 for throwing > >exceptions across DLL/EXE boundaries. > >While the code works in 99% for cygwin and mingw it has one disadvantage > >for cygwin: The atom name is lost after a fork. > > Why? Because it is allocated via AddAtom and is local to the process. After a fork the name is lost. BTW: In unwind-dw2-fde.c a mutex is used to synchronize access to a linked list. In the current code this mutex is not shared and therefore it does not synchronize access between code in DLLs and the executable. I would recommend to make this mutex shared too (see my unwind-dw2-fde.c patch and w32-shared-ptr.c). Thomas