https://bugs.winehq.org/show_bug.cgi?id=44999
Bug ID: 44999 Summary: Python 3.6.5 crashes due to unimplemented function api-ms-win-core-path-l1-1-0.dll.PathCchCanonicalizeEx. Product: Wine Version: 3.6 Hardware: x86 URL: https://www.python.org/ftp/python/3.6.5/win32/ OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: api-ms-win-* Assignee: wine-bugs@winehq.org Reporter: sagawa.aki+winebugs@gmail.com Distribution: Ubuntu
As described in summary, Python 3.6.5 crashes due to unimplemented function api-ms-win-core-path-l1-1-0.dll.PathCchCanonicalizeEx.
How to reproduce: 1. wget https://www.python.org/ftp/python/3.6.5/win32/core.msi \ https://www.python.org/ftp/python/3.6.5/win32/exe.msi \ https://www.python.org/ftp/python/3.6.5/win32/lib.msi 2. wine msiexec /i core.msi /qb TARGETDIR=C:/python3.6.5 3. wine msiexec /i exe.msi /qb TARGETDIR=C:/python3.6.5 4. wine msiexec /i lib.msi /qb TARGETDIR=C:/python3.6.5 5. cd $WINEPREFIX/drive_c/python3.6.5 6. wine python.exe
Expected behavior: It starts without crashes and shows prompt (>>>) as it's in interactive mode.
Actual behavior: It crashes with the following message: 0009:fixme:msvcrt:_configure_wide_argv (1) stub 0009:fixme:msvcrt:_initialize_wide_environment stub wine: Call from 0x7b43cddc to unimplemented function api-ms-win-core-path-l1-1-0.dll.PathCchCanonicalizeEx, aborting wine: Unimplemented function api-ms-win-core-path-l1-1-0.dll.PathCchCanonicalizeEx called at address 0x410073:0x7b43cddc (thread 0009), starting debugger...
Note: Python introduced PathCchCanonicalizeEx by following commit:
https://github.com/python/cpython/commit/48e8c82fc63d2ddcddce8aa637a892839b5... I'm not sure if 0x7b43cddc actually points canonicalize function which was added by the commit. But, it's very suspicious.
https://bugs.winehq.org/show_bug.cgi?id=44999
Sagawa sagawa.aki+winebugs@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source
https://bugs.winehq.org/show_bug.cgi?id=44999
tokktokk fdsfgs@krutt.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs@krutt.org
https://bugs.winehq.org/show_bug.cgi?id=44999
Lex Berezhny lex@damoti.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lex@damoti.com
https://bugs.winehq.org/show_bug.cgi?id=44999
--- Comment #1 from Lex Berezhny lex@damoti.com --- Confirming that this happens with Python 3.6.5 exactly as sagawa reported and it also happens with latest Python 3.7.0.
https://bugs.winehq.org/show_bug.cgi?id=44999
Thomas Zarebczan tom@lbry.io changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |tom@lbry.io
--- Comment #2 from Thomas Zarebczan tom@lbry.io --- Can confirm Lex's findings also. Please mark this bug as confirmed.
https://bugs.winehq.org/show_bug.cgi?id=44999
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 CC| |z.figura12@gmail.com Component|api-ms-win-* |kernelbase
--- Comment #3 from Zebediah Figura z.figura12@gmail.com --- Marking confirmed as this bug affects multiple users.
https://bugs.winehq.org/show_bug.cgi?id=44999
Victor vfrico+bugs@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |vfrico+bugs@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=44999
Zhiyi Zhang zzhang@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zzhang@codeweavers.com
--- Comment #4 from Zhiyi Zhang zzhang@codeweavers.com --- Working on it. If anyone else had already started implementing it, please let me know.
https://bugs.winehq.org/show_bug.cgi?id=44999
--- Comment #5 from Thomas Zarebczan tom@lbry.io --- (In reply to Zhiyi Zhang from comment #4)
Working on it. If anyone else had already started implementing it, please let me know.
Thanks for looking into this! Please keep us updated. We would also link to extend an offer of LBC as appreciation for fixing this bug. Please see https://lbry.io/faq/appreciation.
https://bugs.winehq.org/show_bug.cgi?id=44999
--- Comment #6 from Victor vfrico+bugs@gmail.com --- (In reply to Zhiyi Zhang from comment #4)
Working on it. If anyone else had already started implementing it, please let me know.
I am not working on it, but I am interested on see how it is fixed. Could you post the patch or the branch where it is being developed?
Thanks!
https://bugs.winehq.org/show_bug.cgi?id=44999
Andrew Udvare audvare@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |audvare@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=44999
Alexandr Oleynikov sashok.olen@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sashok.olen@gmail.com
--- Comment #7 from Alexandr Oleynikov sashok.olen@gmail.com --- Seems like what you have now in your git repo (https://github.com/zzhiyi/wine/tree/kernelbase/PathCchCanonicalizeEx) works ok. Tested it with Sims 4 (uses python for mods), no issues anymore.
https://bugs.winehq.org/show_bug.cgi?id=44999
--- Comment #8 from Andrew Udvare audvare@gmail.com --- (In reply to Alexandr Oleynikov from comment #7)
Seems like what you have now in your git repo (https://github.com/zzhiyi/wine/tree/kernelbase/PathCchCanonicalizeEx) works ok. Tested it with Sims 4 (uses python for mods), no issues anymore.
Also tested, patching against Wine 3.20 on Gentoo. Works great.
https://bugs.winehq.org/show_bug.cgi?id=44999
Zhiyi Zhang zzhang@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |6c4b9111de0ee77c864ff22c56c | |2ef431721bc28 Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #9 from Zhiyi Zhang zzhang@codeweavers.com --- Patch is in wine-3.21 now. Thanks everyone.
https://bugs.winehq.org/show_bug.cgi?id=44999
--- Comment #10 from Sagawa sagawa.aki+winebugs@gmail.com --- In Wine 3.21, Python.exe doesn't complain about PathCchCanonicalizeEx. Now, it throws an exception about PathCchCombineEx (Bug 42474). Thanks, Zhiyi.
https://bugs.winehq.org/show_bug.cgi?id=44999
kacajarek@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kacajarek@gmail.com
--- Comment #11 from kacajarek@gmail.com --- Set winecfg api-ms-win-core-path-l1-1-0.dll as Native only. That's all.
https://bugs.winehq.org/show_bug.cgi?id=44999
--- Comment #12 from Zhiyi Zhang zzhang@codeweavers.com --- (In reply to Sagawa from comment #10)
In Wine 3.21, Python.exe doesn't complain about PathCchCanonicalizeEx. Now, it throws an exception about PathCchCombineEx (Bug 42474). Thanks, Zhiyi.
42474 is fixed by 6150e20868df947ae745c36b6e273bce556e4e92
https://bugs.winehq.org/show_bug.cgi?id=44999
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #13 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.0-rc1.
https://bugs.winehq.org/show_bug.cgi?id=44999
Robin Mills robin@clanmills.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |robin@clanmills.com
--- Comment #14 from Robin Mills robin@clanmills.com --- *** Bug 49271 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=44999
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alzer111@ya.ru
--- Comment #15 from Nikolay Sivov bunglehead@gmail.com --- *** Bug 49646 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=44999
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|kernelbase |kernel32
https://bugs.winehq.org/show_bug.cgi?id=44999
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net URL|https://www.python.org/ftp/ |https://web.archive.org/web |python/3.6.5/win32/ |/20210209170620/https://www | |.python.org/ftp/python/3.6. | |5/win32/