ansicon icon indicating copy to clipboard operation
ansicon copied to clipboard

cygwin: died waiting for dll loading, errno 11

Open Chainfire opened this issue 9 years ago • 3 comments

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

Chainfire avatar May 28 '16 15:05 Chainfire

Is this with 1.66? Could you try with 1.70? Both versions seemed to work fine for me.

adoxa avatar May 29 '16 02:05 adoxa

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.

Chainfire avatar May 30 '16 16:05 Chainfire

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.

AnrDaemon avatar Nov 24 '16 20:11 AnrDaemon