ansicon
ansicon copied to clipboard
cygwin: died waiting for dll loading, errno 11
I've been getting the dreaded "died waiting for dll loading, errno 11" error in cygwin's shell (bash) while trying to use Python (virtualenv, pip, borg backup).
Eventually I figured out this was due to ansicon being loaded in the cmd.exe calling bash.exe. Unloading it fixes the problem.
Windows 7 Pro x64
Is this with 1.66? Could you try with 1.70? Both versions seemed to work fine for me.
Same thing with v1.70. The error appears to be common with conflicting load addresses of DLLs, but I don't see ansicon's address actually conflicting with anything being loaded to run these Python commands
I expect this is a combination of factors unlikely to reproduce on a random machine, and can be blamed more on Cygwin's odd way of using DLLs and its automatic rebasing of them than on Ansicon.
Cygwin's way of loading DLL's is very much standardized. By POSIX. If you want to blame anyone, it is Microsoft for inventing their own standards.
You can combat this by rebasing your own DLL's, but this is only necessary for Cygwin programs (that is, those linked against cygwin1.dll and using its facilities).
Details are in https://cygwin.com/cygwin-ug-net/highlights.html#ov-hi-process and https://cygwin.com/faq.html#faq.using.fixing-fork-failures and of course in the autorebase package documentation - see /usr/share/doc/Cygwin/_autorebase.README in particular.