dlclose not calling destructors of static variables.

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


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



More information about the Cygwin mailing list