dlclose not calling destructors of static variables.

Dave Korn dave.korn.cygwin@googlemail.com
Mon Feb 1 23:04:00 GMT 2010


On 01/02/2010 22:36, Dave Korn wrote:
> On 01/02/2010 21:59, Christopher Faylor wrote:
> 
>> Since the testcase (obviously?) worked for me it seems like this is pretty
>>  variable.  I'd like to understand why the MEMORY_BASIC_INFORMATION method
>>  doesn't work before trying other things.
> 
> 
>   Hmm, well first off, looks like RegionSize is indeed relative to
> BaseAddress, not AllocationBase after all:

  This is what I'm going to test next.  It avoids calling anything registered
with the cxa functions, i.e. only calls ordinary atexit hooks, and it handles
the case where extra atexit blocks have been chained on the end.

    cheers,
      DaveK

-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove-dll-atexit.diff
Type: text/x-c
Size: 1543 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20100201/0f94c627/attachment.bin>


More information about the Cygwin-patches mailing list