On Sep 26 16:38, Corinna Vinschen wrote:
> Btw., with horror I realized that our dependency to advapi32.dll also
> adds an indirect dependency to msvcrt.dll. For some reason I don't
> understand yet, it's not possible to convert the advapi32 entry points
> to all autoloaded entry points. Many Cygwin applications don't start
> anymore, for instance mintty or gdb.
I found the reason why it's not possible to convert advapi32 to a
autoload DLL. The problem is a SEGV in the advapi32 function
GetUserNameW. For some reason advapi32 crashes in that function if the
application is loadtime linked against advapi32. Cygwin calls
GetUserNameW in cygheap_user::init, which is called during Cygwin DLL
initialization. Apparently there's some sort of synchronization
problem.