https://bugs.winehq.org/show_bug.cgi?id=47309
Bug ID: 47309 Summary: WinML tool 'mlgen.exe' from Windows 10 SDK ( 10.0.17763.x) crashes on startup, requires several api-ms-win-crt-private-l1-1-0.dll._o__* API functions Product: Wine Version: 4.9 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: api-ms-win-* Assignee: wine-bugs@winehq.org Reporter: focht@gmx.net Distribution: ---
Hello folks,
as it says.
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x64
$ wine ./mlgen.exe ... wine: Call from 0x7b45330c to unimplemented function api-ms-win-crt-private-l1-1-0.dll._o__get_stream_buffer_pointers, aborting 0035:err:module:LdrInitializeThunk "mlgenlib.dll" failed to initialize, aborting 0035:err:module:LdrInitializeThunk Initializing dlls for L"C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64\mlgen.exe" failed, status 80000100 --- snip ---
--- snip --- $ winedump -j import ./mlgen.exe | sed -n '/api-ms-win-crt-private/,/^$/p' offset 00032db0 api-ms-win-crt-private-l1-1-0.dll Hint/Name Table: 00034798 TimeDateStamp: 00000000 (Thu Jan 1 01:00:00 1970) ForwarderChain: 00000000 First thunk RVA: 000298D0 Thunk Ordn Name 000298d0 101 _o___stdio_common_vfwprintf 000298d8 109 _o___stdio_common_vsprintf_s 000298e0 144 _o__callnewh 000298e8 145 _o__calloc_base 000298f0 146 _o__cexit 000298f8 158 _o__configthreadlocale 00029900 160 _o__configure_wide_argv 00029908 166 _o__crt_atexit 00029910 191 _o__errno 00029918 198 _o__exit 00029920 240 _o__free_base 00029928 243 _o__fseeki64 00029930 245 _o__fsopen 00029938 270 _o__get_initial_wide_environment 00029940 54 _o__Getdays 00029948 55 _o__Getmonths 00029950 56 _o__Gettnames 00029958 316 _o__initialize_onexit_table 00029960 317 _o__initialize_wide_environment 00029968 318 _o__invalid_parameter_noinfo 00029970 319 _o__invalid_parameter_noinfo_noreturn 00029978 340 _o__ismbblead 00029980 413 _o__lock_file 00029988 427 _o__malloc_base 00029990 578 _o__purecall 00029998 590 _o__realloc_base 000299a0 592 _o__register_onexit_function 000299a8 601 _o__seh_filter_exe 000299b0 603 _o__set_app_type 000299b8 606 _o__set_fmode 000299c0 609 _o__set_new_mode 000299c8 57 _o__Strftime 000299d0 700 _o__unlock_file 000299d8 58 _o__W_Getdays 000299e0 59 _o__W_Getmonths 000299e8 60 _o__W_Gettnames 000299f0 712 _o__wcsdup 000299f8 61 _o__Wcsftime 00029a00 832 _o_abort 00029a08 859 _o_calloc 00029a10 876 _o_exit 00029a18 883 _o_fclose 00029a20 886 _o_fflush 00029a28 887 _o_fgetc 00029a30 888 _o_fgetpos 00029a38 890 _o_fgetwc 00029a40 903 _o_fputwc 00029a48 907 _o_free 00029a50 910 _o_frexp 00029a58 912 _o_fsetpos 00029a60 914 _o_fwrite 00029a68 932 _o_islower 00029a70 935 _o_isspace 00029a78 936 _o_isupper 00029a80 952 _o_ldexp 00029a88 962 _o_localeconv 00029a90 982 _o_malloc 00029a98 1009 _o_pow 00029aa0 1010 _o_powf 00029aa8 1045 _o_setlocale 00029ab0 1046 _o_setvbuf 00029ab8 1062 _o_strtod 00029ac0 1063 _o_strtof 00029ac8 1076 _o_terminate 00029ad0 1082 _o_tolower 00029ad8 1086 _o_ungetc 00029ae0 1087 _o_ungetwc 00029ae8 48 __uncaught_exception 00029af0 1119 memchr 00029af8 12 __C_specific_handler 00029b00 1 _CxxThrowException 00029b08 97 _o___stdio_common_vfprintf 00029b10 94 _o___std_exception_destroy 00029b18 93 _o___std_exception_copy 00029b20 91 _o___pctype_func 00029b28 82 _o___p__commode 00029b30 80 _o___p___wargv 00029b38 78 _o___p___argc 00029b40 66 _o___acrt_iob_func 00029b48 65 _o____mb_cur_max_func 00029b50 64 _o____lc_locale_name_func 00029b58 63 _o____lc_collate_cp_func 00029b60 62 _o____lc_codepage_func 00029b68 18 __CxxFrameHandler3 00029b70 1120 memcmp 00029b78 1121 memcpy 00029b80 1122 memmove --- snip ---
Actually most of the imports are just auto-stubs hence I made the summary line more wildcardish.
Wine source:
https://source.winehq.org/git/wine.git/blob/HEAD:/dlls/api-ms-win-crt-privat...
$ sha1sum 17763.1.180914-1434.rs5_release_WindowsSDK.iso e702b5e5f2597d01eaee1eb1be7a34b0da0b6211 17763.1.180914-1434.rs5_release_WindowsSDK.iso
$ du -sh 17763.1.180914-1434.rs5_release_WindowsSDK.iso 815M 17763.1.180914-1434.rs5_release_WindowsSDK.iso
$ wine --version wine-4.9-216-g381c4e7b66
Regards
https://bugs.winehq.org/show_bug.cgi?id=47309
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |https://software-download.m | |icrosoft.com/download/pr/17 | |763.1.180914-1434.rs5_relea | |se_WindowsSDK.iso
https://bugs.winehq.org/show_bug.cgi?id=47309
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|WinML tool 'mlgen.exe' from |Multiple WinML tools from |Windows 10 SDK ( |Windows 10 SDK ( |10.0.17763.x) crashes on |10.0.17763.x) crash on |startup, requires several |startup, requiring several |api-ms-win-crt-private-l1-1 |api-ms-win-crt-private-l1-1 |-0.dll._o__* API functions |-0.dll._o_* API functions | |(mlgen, winmdidl)
--- Comment #1 from Anastasius Focht focht@gmx.net --- Hello folks,
making it more wildcardish to include '_o_xxx' as well. There is no point in creating dozen issues as of now - just targeting the single API set stub dll.
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x64
$ wine ./winmdidl.exe ... wine: Call from 0x7b45330c to unimplemented function api-ms-win-crt-private-l1-1-0.dll._o_wmemcpy_s, aborting wine: Unimplemented function api-ms-win-crt-private-l1-1-0.dll._o_wmemcpy_s called at address 0x7b45330c (thread 0035), starting debugger... Unhandled exception: unimplemented function api-ms-win-crt-private-l1-1-0.d._o_wmemcpy_s called in 64-bit code (0x000000007b45330c). ... --- snip ---
--- snip --- winedump -j import ./winmdidl.exe | sed -n '/api-ms-win-crt-private/,/^$/p' offset 0003d828 api-ms-win-crt-private-l1-1-0.dll Hint/Name Table: 0003EE28 TimeDateStamp: 00000000 (Thu Jan 1 01:00:00 1970) ForwarderChain: 00000000 First thunk RVA: 00031358 Thunk Ordn Name 00031358 101 _o___stdio_common_vfwprintf 00031360 111 _o___stdio_common_vswprintf 00031368 113 _o___stdio_common_vswprintf_s 00031370 144 _o__callnewh 00031378 145 _o__calloc_base 00031380 146 _o__cexit 00031388 158 _o__configthreadlocale 00031390 160 _o__configure_wide_argv 00031398 166 _o__crt_atexit 000313a0 191 _o__errno 000313a8 198 _o__exit 000313b0 240 _o__free_base 000313b8 270 _o__get_initial_wide_environment 000313c0 316 _o__initialize_onexit_table 000313c8 317 _o__initialize_wide_environment 000313d0 318 _o__invalid_parameter_noinfo 000313d8 319 _o__invalid_parameter_noinfo_noreturn 000313e0 340 _o__ismbblead 000313e8 427 _o__malloc_base 000313f0 578 _o__purecall 000313f8 592 _o__register_onexit_function 00031400 601 _o__seh_filter_exe 00031408 603 _o__set_app_type 00031410 606 _o__set_fmode 00031418 609 _o__set_new_mode 00031420 689 _o__ultow_s 00031428 712 _o__wcsdup 00031430 722 _o__wcslwr_s 00031438 773 _o__wfopen_s 00031440 784 _o__wmkdir 00031448 832 _o_abort 00031450 876 _o_exit 00031458 883 _o_fclose 00031460 884 _o_feof 00031468 891 _o_fgetws 00031470 904 _o_fputws 00031478 907 _o_free 00031480 982 _o_malloc 00031488 1021 _o_realloc 00031490 1045 _o_setlocale 00031498 1076 _o_terminate 000314a0 1093 _o_wcscpy_s 000314a8 1103 _o_wcstol 000314b0 1113 _o_wmemcpy_s 000314b8 12 __C_specific_handler 000314c0 48 __uncaught_exception 000314c8 1 _CxxThrowException 000314d0 82 _o___p__commode 000314d8 97 _o___stdio_common_vfprintf 000314e0 94 _o___std_exception_destroy 000314e8 93 _o___std_exception_copy 000314f0 91 _o___pctype_func 000314f8 80 _o___p___wargv 00031500 78 _o___p___argc 00031508 66 _o___acrt_iob_func 00031510 65 _o____mb_cur_max_func 00031518 64 _o____lc_locale_name_func 00031520 63 _o____lc_collate_cp_func 00031528 62 _o____lc_codepage_func 00031530 1125 strchr 00031538 1130 wcsrchr 00031540 1131 wcsstr 00031548 1129 wcschr 00031550 18 __CxxFrameHandler3 00031558 1120 memcmp 00031560 1121 memcpy 00031568 1122 memmove --- snip ---
Regards
https://bugs.winehq.org/show_bug.cgi?id=47309
pattietreutel katyaberezyaka@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |katyaberezyaka@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=47309
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|api-ms-win-* |msvcrt
https://bugs.winehq.org/show_bug.cgi?id=47309
BieHDC byi5000@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |byi5000@gmail.com
--- Comment #2 from BieHDC byi5000@gmail.com --- Adding BeamNG.drive to the list which requires several of them since the 0.17 update
"_o_getenv" has already been fixed, now it crashes on that one: wine: Call from 0x7b454366 to unimplemented function api-ms-win-crt-private-l1-1-0.dll._o_floor, aborting
https://bugs.winehq.org/show_bug.cgi?id=47309
--- Comment #3 from BieHDC byi5000@gmail.com --- Created attachment 65072 --> https://bugs.winehq.org/attachment.cgi?id=65072 Forward mbstrlen
(In reply to BieHDC from comment #2)
Adding BeamNG.drive to the list which requires several of them since the 0.17 update
"_o_getenv" has already been fixed, now it crashes on that one: wine: Call from 0x7b454366 to unimplemented function api-ms-win-crt-private-l1-1-0.dll._o_floor, aborting
Ok, after applying these 2 pending patches https://source.winehq.org/patches/data/168696 https://source.winehq.org/patches/data/168697
and adding my hack-ish mbstrlen (attached), the game works again.
In case by patch would somehow have license things, its a free for all, whoever can implement this the proper way.
https://bugs.winehq.org/show_bug.cgi?id=47309
Vijay Kamuju infyquest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |infyquest@gmail.com Fixed by SHA1| |e045f4fc2088e7f2cabf6ed2f71 | |e8b94c8cbbbe2 Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #4 from Vijay Kamuju infyquest@gmail.com --- Fixes already in wine 4.15 https://source.winehq.org/git/wine.git/commitdiff/6ed6d33ec252eff8eb6584b288... https://source.winehq.org/git/wine.git/commitdiff/e045f4fc2088e7f2cabf6ed2f7...
https://bugs.winehq.org/show_bug.cgi?id=47309
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.18.
https://bugs.winehq.org/show_bug.cgi?id=47309
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|https://software-download.m |https://web.archive.org/web |icrosoft.com/download/pr/17 |/20190317015617/https://sof |763.1.180914-1434.rs5_relea |tware-download.microsoft.co |se_WindowsSDK.iso |m/download/pr/17763.1.18091 | |4-1434.rs5_release_WindowsS | |DK.iso