[issue42529] CPython DLL initialization routine failed from PYC cache file

Steve Dower report at bugs.python.org
Sat Dec 19 06:53:51 EST 2020


Steve Dower <steve.dower at python.org> added the comment:

Looking at the winapi_thunks.cpp source file from the CRT, it may be that LCIDToLocaleName is failing to be loaded for some reason. That's the one that comes after LCMapStringEx, so if it's failing, that could abort the whole process.

Alternatively, LCMapStringEx might be being called immediately after loading it and failing, which would explain why we don't see a failed LoadLibrary entry (which I'd expect if we're just loading lots of entry points here). I don't see any calls in the CRT itself, so perhaps during initialization of something in the C++ runtime? Might be due to your locale settings?

More ideas than answers, I'm afraid.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42529>
_______________________________________


More information about the Python-bugs-list mailing list