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: <4B675932.9040908@gmail.com>
Date: Mon, 01 Feb 2010 22:44:02 +0000
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: dlclose not calling destructors of static variables.
References: <4B61732F.4030804@gmail.com>  <4B62DDE6.5070106@gmail.com>  <4B62F118.8010305@gmail.com>  <20100129184514.GA9550@ednor.casa.cgf.cx>  <4B66BF2F.4060802@gmail.com> <20100201162603.GB25374@ednor.casa.cgf.cx> <4B6710CE.40300@gmail.com>
In-Reply-To: <4B6710CE.40300@gmail.com>
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

On 01/02/2010 17:35, Andrew West wrote:

> But the atexit function is registered at 0x706c10f0. Changing
> AllocationBase to BaseAddress worked for my test case out of pure luck,
> with my larger libraries it still failed.

  I've managed to convince myself it's right actually.

> Looking at one of the libraries in my code that fails I get ( with the
> atexit at 0x78351c9 )
> 
> remove_dll_atexit;
> m.AllocationBase = 0x7820000
> m.AllocationBase + m.RegionSize = 0x7824000
> 
> GDB;
> from = 0x07821000
> to = 0x079159b8

  Please post the output of "objdump -h" on this library.  (If there's no
problem doing so, please send me a copy of the binary off-list.)

    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

