X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 	tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A5FB3A3.5040508@gmail.com>
Date: Fri, 17 Jul 2009 00:11:31 +0100
From: Dave Korn <dave.korn.cygwin@googlemail.com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: perl threads on 2008 R2 64bit = crash ( was: perl 5.10 threads  	on 1.5.25 = instant crash )
References: <20090715152139.GA694@calimero.vinschen.de> <4A5DFDDF.2000904@gmail.com> <20090715162243.GL14502@ednor.casa.cgf.cx> <4A5E0AB1.9020201@gmail.com> <20090715185636.GA16211@ednor.casa.cgf.cx> <4A5E2ED6.3070502@gmail.com> <20090715194539.GZ27613@calimero.vinschen.de> <4A5E3F1F.9040103@gmail.com> <20090716161219.GP27613@calimero.vinschen.de> <4A5F59A1.1060902@gmail.com> <20090716195552.GU27613@calimero.vinschen.de>
In-Reply-To: <20090716195552.GU27613@calimero.vinschen.de>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Corinna Vinschen wrote:
> So this exception handler is installed as part of the Perl threads DLL
> initialization.  But appanrelty the address is not valid anymore when
> leaving the DLL initialization.

> Is it possible that we have to remove the exception handler before
> dll_dllcrt0_1 returns?

  I wouldn't think so.  I would guess this is an utterly bogus bit of code in
Perl, the equivalent of returning the address-of a stack auto variable when
you return from the function in whose scope it's allocated, and needs tracking
down in the upstream sources.  It should unlink its exception registration
before it returns.

    cheers,
      DaveK


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

