Index: winsup/cygwin/dll_init.cc =================================================================== RCS file: /cvs/src/src/winsup/cygwin/dll_init.cc,v retrieving revision 1.65 diff -p -u -r1.65 dll_init.cc --- winsup/cygwin/dll_init.cc 13 Aug 2009 07:35:49 -0000 1.65 +++ winsup/cygwin/dll_init.cc 20 Aug 2009 19:28:11 -0000 @@ -35,7 +35,8 @@ dll_global_dtors () dll_global_dtors_recorded = false; if (recorded && dlls.start.next) for (dll *d = dlls.end; d != &dlls.start; d = d->prev) - d->p.run_dtors (); + if (d->type != DLL_LOAD) + d->p.run_dtors (); } /* Run all constructors associated with a dll */