delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2002/11/11/08:13:24

Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT cygwin DOT com>
List-Help: <mailto:cygwin-developers-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <tpfaff AT gmx DOT net> using -f
Date: Mon, 11 Nov 2002 14:13:02 +0100 (=?ISO-8859-1?Q?Westeurop=E4ische_Normalzeit?=)
From: Thomas Pfaff <tpfaff AT gmx DOT net>
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: <Pine.WNT.4.44.0211111359020.372-100000@algeria.intern.net>
X-X-Sender: pfaff AT antarctica DOT intern DOT net
MIME-Version: 1.0


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



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019