https://bugs.winehq.org/show_bug.cgi?id=44469
Bug ID: 44469 Summary: Windows 10 DISM pkgmgr.exe crashes due to multiple api-ms-win-crt-private-l1-1-0.dll._o__xxx stubs/forwards to 'ucrtbase' missing (added with Windows 10 Version 1507 OS build 10586) Product: Wine Version: 3.1 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: api-ms-win-* Assignee: wine-bugs@winehq.org Reporter: focht@gmx.net Distribution: ---
Hello folks,
continuation of bug 44430
Steps to reproduce
--- snip --- # clean WINEPREFIX
$ winetricks -q dotnet452 corefonts $ winetricks -q win10
$ wine adksetup.exe /features OptionId.DeploymentTools
$ pwd /home/focht/.wine/drive_c/Program Files/Windows Kits/10/Assessment and Deployment Kit/Deployment Tools/x86/DISM
$ wine ./pkgmgr.exe ... wine: Call from 0x7bc62a40 to unimplemented function api-ms-win-crt-private-l1-1-0.dll._o__set_app_type, aborting wine: Call from 0x7bc62a40 to unimplemented function api-ms-win-crt-private-l1-1-0.dll._o__seh_filter_exe, aborting --- snip ---
The unresolved imports:
--- snip --- $ WINEDEBUG=warn+module wine ./pkgmgr.exe 01e4:warn:module:import_dll No implementation for api-ms-win-crt-private-l1-1-0.dll._o__exit imported from L"C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\x86\DISM\pkgmgr.exe", setting to 0x340000 01e4:warn:module:import_dll No implementation for api-ms-win-crt-private-l1-1-0.dll._o__get_initial_wide_environment imported from L"C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\x86\DISM\pkgmgr.exe", setting to 0x34000f 01e4:warn:module:import_dll No implementation for api-ms-win-crt-private-l1-1-0.dll._o__initialize_wide_environment imported from L"C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\x86\DISM\pkgmgr.exe", setting to 0x34001e 01e4:warn:module:import_dll No implementation for api-ms-win-crt-private-l1-1-0.dll._o__seh_filter_exe imported from L"C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\x86\DISM\pkgmgr.exe", setting to 0x34002d 01e4:warn:module:import_dll No implementation for api-ms-win-crt-private-l1-1-0.dll._o__set_app_type imported from L"C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\x86\DISM\pkgmgr.exe", setting to 0x34003c 01e4:warn:module:import_dll No implementation for api-ms-win-crt-private-l1-1-0.dll._o__set_fmode imported from L"C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\x86\DISM\pkgmgr.exe", setting to 0x34004b 01e4:warn:module:import_dll No implementation for api-ms-win-crt-private-l1-1-0.dll._o_exit imported from L"C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\x86\DISM\pkgmgr.exe", setting to 0x34005a 01e4:warn:module:import_dll No implementation for api-ms-win-crt-private-l1-1-0.dll._o__crt_atexit imported from L"C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\x86\DISM\pkgmgr.exe", setting to 0x340069 01e4:warn:module:import_dll No implementation for api-ms-win-crt-private-l1-1-0.dll._o__controlfp_s imported from L"C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\x86\DISM\pkgmgr.exe", setting to 0x340078 01e4:warn:module:import_dll No implementation for api-ms-win-crt-private-l1-1-0.dll._o__configthreadlocale imported from L"C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\x86\DISM\pkgmgr.exe", setting to 0x340087 01e4:warn:module:import_dll No implementation for api-ms-win-crt-private-l1-1-0.dll._o__cexit imported from L"C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\x86\DISM\pkgmgr.exe", setting to 0x340096 --- snip ---
api-ms-win-crt-private-l1-1-0.dll._o__cexit api-ms-win-crt-private-l1-1-0.dll._o__configthreadlocale api-ms-win-crt-private-l1-1-0.dll._o__controlfp_s api-ms-win-crt-private-l1-1-0.dll._o__crt_atexit api-ms-win-crt-private-l1-1-0.dll._o_exit api-ms-win-crt-private-l1-1-0.dll._o__exit api-ms-win-crt-private-l1-1-0.dll._o__get_initial_wide_environment api-ms-win-crt-private-l1-1-0.dll._o__initialize_wide_environment api-ms-win-crt-private-l1-1-0.dll._o__seh_filter_exe api-ms-win-crt-private-l1-1-0.dll._o__set_app_type api-ms-win-crt-private-l1-1-0.dll._o__set_fmode
It's unfortunate that the initial commit which adds 'api-ms-win-crt-private-l1-1-0.dll' doesn't tell which exact Windows version *and* build and/or Windows SDK version was used to generate the export list.
https://source.winehq.org/git/wine.git/commitdiff/a3e183572a7621635025fed02c...
Also no Bugzilla ticket found related to the addition:
https://bugs.winehq.org/buglist.cgi?bug_status=bug_status%3DCLOSED&f1=cf...
After some archaeology I found it mentioned in the mailing list:
https://www.winehq.org/pipermail/wine-patches/2015-August/
https://www.winehq.org/pipermail/wine-patches/2015-August/141297.html ("[PATCH v2 01/22] ucrtbase: Add the new universal CRT DLL.") ... https://www.winehq.org/pipermail/wine-patches/2015-August/141306.html ("[PATCH v2 16/22] api-ms-win-crt-private-l1-1-0: Add stub dll.")
--- quote --- ... Since MSVC 2015/Windows 10, the C runtime has now been split into two parts, ucrtbase, which is the generic C runtime which is now considered a system component (in Windows 10, and as an extra installed runtime component for older Windows version), and vcruntimeX which is specific to the compiler version.
This uses the msvcrt implementation, just like the earlier msvcr* DLLs.
Functions with names that existed in msvcr120 are hooked up so far. --- This is updated, based on ucrtbase.dll from Windows 10 RTM. --- --- quote ---
https://technet.microsoft.com/en-us/en-en/windows/release-info.aspx
Windows 10 RTM -> Version 1507 (RTM) -> my guess it's OS build 10240.16xxx where the initial dump information was generated from.
https://www.opendll.com/index.php?file-download=api-ms-win-crt-private-l1-1-...
-> 10.0.10586.212 shows these imports/exports so it's likely the API set was updated in Windows 10 Version 1511 (OS build 10586)
That's why I like have tickets (preferably with exact information on origin) when new (stub) dlls are added to avoid wasting time for this kind of research.
$ sha1sum adksetup.exe 92892e71b083fc46c907b657c300ffc32608d223 adksetup.exe
$ du -sh adksetup.exe 1.7M adksetup.exe
$ wine --version wine-3.0-180-g85635db0ea
Regards
https://bugs.winehq.org/show_bug.cgi?id=44469
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |https://developer.microsoft | |.com/en-us/windows/hardware | |/windows-assessment-deploym | |ent-kit Hardware|x86 |x86-64
https://bugs.winehq.org/show_bug.cgi?id=44469
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de
--- Comment #1 from André H. nerv@dawncrow.de --- (In reply to Anastasius Focht from comment #0)
$ wine ./pkgmgr.exe ... wine: Call from 0x7bc62a40 to unimplemented function api-ms-win-crt-private-l1-1-0.dll._o__set_app_type, aborting wine: Call from 0x7bc62a40 to unimplemented function api-ms-win-crt-private-l1-1-0.dll._o__seh_filter_exe, aborting
Sadly those functions are stubs anyway
https://bugs.winehq.org/show_bug.cgi?id=44469
tokktokk fdsfgs@krutt.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs@krutt.org
https://bugs.winehq.org/show_bug.cgi?id=44469
Józef Kucia joseph.kucia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |joseph.kucia@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=44469
--- Comment #2 from Józef Kucia joseph.kucia@gmail.com --- This also affects new DirectX Shader Compiler dxc.exe: https://github.com/Microsoft/DirectXShaderCompiler
https://bugs.winehq.org/show_bug.cgi?id=44469
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Windows 10 DISM pkgmgr.exe |Multiple apps using Windows |crashes due to multiple |10 v1507+ UCRT crash due to |api-ms-win-crt-private-l1-1 |multiple missing |-0.dll._o__xxx |api-ms-win-crt-private-l1-1 |stubs/forwards to |-0.dll._o__xxx |'ucrtbase' missing (added |stubs/forwards (Win10 DISM |with Windows 10 Version |pkgmgr.exe, MS DirectX |1507 OS build 10586) |Shader Compiler)
--- Comment #3 from Anastasius Focht focht@gmx.net --- Hello Józef,
thanks, refining summary to include more apps.
Download:
https://github.com/Microsoft/DirectXShaderCompiler/releases/download/v1.2.0-...
--- snip --- $ unzip -l dxil.zip Archive: dxil.zip Length Date Time Name --------- ---------- ----- ---- 0 11-30-2017 11:51 dxil/extras/ 16642 11-16-2017 17:50 dxil/extras/dxcapi.h 0 11-30-2017 11:51 dxil/extras/x64/ 2344 11-21-2017 15:53 dxil/extras/x64/dxcompiler.lib 0 11-30-2017 11:51 dxil/extras/x86/ 2302 11-21-2017 14:40 dxil/extras/x86/dxcompiler.lib 0 11-30-2017 11:51 dxil/x64/ 179832 11-28-2017 17:37 dxil/x64/dxc.exe 15836800 11-21-2017 16:01 dxil/x64/dxcompiler.dll 1102648 09-29-2017 00:59 dxil/x64/dxil.dll 0 11-30-2017 11:51 dxil/x86/ 139896 11-28-2017 17:36 dxil/x86/dxc.exe 11480184 11-21-2017 16:06 dxil/x86/dxcompiler.dll 759608 09-28-2017 21:31 dxil/x86/dxil.dll --------- ------- 29520256 14 files
$ unzip dxil.zip Archive: dxil.zip creating: dxil/extras/ inflating: dxil/extras/dxcapi.h creating: dxil/extras/x64/ inflating: dxil/extras/x64/dxcompiler.lib creating: dxil/extras/x86/ inflating: dxil/extras/x86/dxcompiler.lib creating: dxil/x64/ inflating: dxil/x64/dxc.exe inflating: dxil/x64/dxcompiler.dll inflating: dxil/x64/dxil.dll creating: dxil/x86/ inflating: dxil/x86/dxc.exe inflating: dxil/x86/dxcompiler.dll inflating: dxil/x86/dxil.dll
$ wine ./dxc.exe --help 0009:fixme:msvcrt:_configure_wide_argv (1) stub 0009:fixme:msvcrt:_initialize_wide_environment stub 0009:fixme:ntdll:EtwEventRegister ({5c65fe8c-9f96-4bfd-9a87-9f8ebd45da64}, 0x100128b0, 0x10a86000, 0x10a98c08) stub. wine: Call from 0x7b43c79b to unimplemented function api-ms-win-crt-private-l1-1-0.dll._o__initialize_onexit_table, aborting wine: Call from 0x7bc53071 to unimplemented function api-ms-win-crt-private-l1-1-0.dll._o__seh_filter_dll, aborting ... --- snip ---
$ du -sh dxil.zip 13M dxil.zip
$ sha1sum dxil.zip 55af716e1ade5493de1d5571e5743567627412d9 dxil.zip
$ wine --version wine-3.17-95-g726abdb388
Regards
https://bugs.winehq.org/show_bug.cgi?id=44469
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
--- Comment #4 from Fabian Maurer dark.shadow4@web.de --- Send to patches to address this issue: - https://source.winehq.org/patches/data/155381 - https://source.winehq.org/patches/data/155382
dxc.exe and pkgmgr.exe display the help now, but I didn't test further - no idea how the programs works.
https://bugs.winehq.org/show_bug.cgi?id=44469
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Staged patchset| |https://github.com/wine-sta | |ging/wine-staging/tree/mast | |er/patches/ucrtbase-_o_ Status|NEW |STAGED
https://bugs.winehq.org/show_bug.cgi?id=44469
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|STAGED |RESOLVED Fixed by SHA1| |e9c90afc065d7a3c57b532aa214 | |b9b4b4546ee83 Resolution|--- |FIXED
--- Comment #5 from Fabian Maurer dark.shadow4@web.de --- Should be fixed with https://source.winehq.org/git/wine.git/?a=commit;h=e9c90afc065d7a3c57b532aa2...
https://bugs.winehq.org/show_bug.cgi?id=44469
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.1.
https://bugs.winehq.org/show_bug.cgi?id=44469
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.0.x
https://bugs.winehq.org/show_bug.cgi?id=44469
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|4.0.x |---
--- Comment #7 from Michael Stefaniuc mstefani@winehq.org --- Removing the 4.0.x milestone from bug fixes included in 4.0.1.
https://bugs.winehq.org/show_bug.cgi?id=44469
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|api-ms-win-* |msvcrt
https://bugs.winehq.org/show_bug.cgi?id=44469
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|https://developer.microsoft |https://web.archive.org/web |.com/en-us/windows/hardware |/20200910234247/https://git |/windows-assessment-deploym |hub.com/microsoft/DirectXSh |ent-kit |aderCompiler/releases/downl | |oad/v1.2.0-alpha/dxil.zip