https://bugs.winehq.org/show_bug.cgi?id=46904
Bug ID: 46904 Summary: SIMATIC WinCC V15.1 Runtime: Automation License Manager 'almapp64x.exe' crashes on unimplemented function msvcp140.dll.?_XGetLastError@std@@YAXXZ Product: Wine Version: 4.4 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: msvcp Assignee: wine-bugs@winehq.org Reporter: focht@gmx.net Distribution: ---
Hello folks,
as it says.
--- snip --- Unhandled exception: unimplemented function msvcp140.dll.?_XGetLastError@std@@YAXXZ called in 64-bit code (0x000000007b497b7e). Register dump: rip:000000007b497b7e rsp:000000000022fa80 rbp:000000000022fbf0 eflags:00000202 ( - -- I - - - ) rax:000000007b478128 rbx:0000000140008590 rcx:000000000022faa0 rdx:0000000000000010 rsi:000000000022fc30 rdi:000000000022fac0 r8:0000000000000002 r9:000000000022fc30 r10:000000000022fab0 r11:0000000000000246 r12:0000000140157f90 r13:0000000000000000 r14:0000000140157f90 r15:00000000ffffffff ... Backtrace: =>0 0x000000007b497b7e RaiseException+0x110() [/home/focht/projects/wine/mainline-src/dlls/kernel32/except.c:86] in kernel32 (0x000000000022fbf0) 1 0x00007f0c03636411 __wine_spec_unimplemented_stub+0x46() [/home/focht/projects/wine/mainline-src/dlls/winecrt0/stub.c:34] in msvcp140 (0x000000000022fc40) 2 0x00007f0c0356eecf __wine_stub_msvcp140_dll_643+0x16() in msvcp140 (0x0000000140000000) 3 0x00000001400b0fa1 in almapp64x (+0xb0fa0) (0x0000000140000000) 4 0x00000001400085c1 in almapp64x (+0x85c0) (0x0000000140000000) 5 0x00000001802daf97 in mfc140u (+0x2daf96) (0x0000000140000000) 6 0x00000001400ca083 in almapp64x (+0xca082) (0x000000000022fdc0) 7 0x000000007b4da7ae call_process_entry+0x20() [/home/focht/projects/wine/mainline-src/dlls/kernel32/process.c:1224] in kernel32 (0x000000000022fdc0) 8 0x000000007b4da9f8 start_process+0x243() [/home/focht/projects/wine/mainline-src/dlls/kernel32/process.c:1256] in kernel32 (0x000000000022ffd0) 0x000000007b497b7e RaiseException+0x110 [/home/focht/projects/wine/mainline-src/dlls/kernel32/except.c:86] in kernel32: nop 86 } Modules: Module Address Debug info Name (138 modules) ELF 7b400000- 7b895000 Dwarf kernel32<elf> -PE 7b460000- 7b895000 \ kernel32 ELF 7bc00000- 7bdd4000 Deferred ntdll<elf> -PE 7bc80000- 7bdd4000 \ ntdll ELF 7c000000- 7c004000 Deferred <wine-loader> PE 140000000- 1401fd000 Export almapp64x PE 180000000- 1805d3000 Export mfc140u ELF 7f0bfd503000- 7f0bfd555000 Deferred hhctrl<elf> -PE 7f0bfd520000- 7f0bfd555000 \ hhctrl ELF 7f0bfd555000- 7f0bfd575000 Deferred concrt140<elf> -PE 7f0bfd560000- 7f0bfd575000 \ concrt140 ... ELF 7f0c03338000- 7f0c034c8000 Deferred msvcr120<elf> -PE 7f0c033b0000- 7f0c034c8000 \ msvcr120 ELF 7f0c034c8000- 7f0c036b8000 Dwarf msvcp140<elf> -PE 7f0c03560000- 7f0c036b8000 \ msvcp140 ... ELF 7f0c04829000- 7f0c049c0000 Deferred ucrtbase<elf> -PE 7f0c048a0000- 7f0c049c0000 \ ucrtbase ... ELF 7f0c13c36000- 7f0c13fe3000 Dwarf libwine.so.1 ELF 7f0c13fe5000- 7f0c1420e000 Deferred ld-linux-x86-64.so.2 ELF 7fff9976d000- 7fff9976e000 Deferred [vdso].so Threads: process tid prio (all id:s are in hex) 00000008 Start.exe 00000009 0 ... 000001f5 SmartServer.exe 000001fd 0 000001fe 0 000001f4 0 000000e0 (D) C:\Program Files (x86)\Siemens\Automation\Automation License Manager\almapp\almapp64x.exe 000000e1 0 <== --- snip ---
One liner showing all imported functions from 'MSVCP140.dll' that are stubs:
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files (x86)/Siemens/Automation/Automation License Manager/almapp
$ file *.{exe,dll} almapp64x.exe: PE32+ executable (GUI) x86-64, for MS Windows AlmConfigurator64.exe: PE32+ executable (GUI) x86-64 Mono/.Net assembly, for MS Windows almgui64x.exe: PE32+ executable (GUI) x86-64, for MS Windows AlmReporting64.exe: PE32+ executable (GUI) x86-64 Mono/.Net assembly, for MS Windows almaxc64x.dll: PE32+ executable (DLL) (GUI) x86-64, for MS Windows
$ winedump -j import almapp64x.exe | sed -n '/MSVCP140.dll/,/^$/p' | sed -n 's/.*[[:xdigit:]]+[[:blank:]]+[[:digit:]]+[[:blank:]]+(.*)/\1/p' | xargs -n1 -I '{}' grep '.*[[:blank:]]{}' /home/focht/projects/wine/mainline-src/dlls/msvcp140/*.spec | grep stub
@ stub _Wcsxfrm @ stub ?_Xregex_error@std@@YAXW4error_type@regex_constants@1@@Z @ stub ?_XGetLastError@std@@YAXXZ --- snip ---
$ sha1sum SIMATIC_WinCC_Runtime_Advanced_V15_1.exe db1f97bb648b62fa1c5d974d7f2bcb6b4a9fd786 SIMATIC_WinCC_Runtime_Advanced_V15_1.exe
$ du -sh SIMATIC_WinCC_Runtime_Advanced_V15_1.exe 1.3G SIMATIC_WinCC_Runtime_Advanced_V15_1.exe
$ wine --version wine-4.4-188-gc988910cae
Regards
https://bugs.winehq.org/show_bug.cgi?id=46904
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://support.industry.si | |emens.com/cs/document/10976 | |1576/simatic-wincc-v15-1-ru | |ntime-(tia-portal)?dti=0&lc | |=en-US Keywords| |dotnet, download, Installer
https://bugs.winehq.org/show_bug.cgi?id=46904
Vijay Kamuju infyquest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |infyquest@gmail.com
--- Comment #1 from Vijay Kamuju infyquest@gmail.com --- Created merge request for adding a stub: https://gitlab.winehq.org/wine/wine/-/merge_requests/4892
https://bugs.winehq.org/show_bug.cgi?id=46904
--- Comment #2 from Vijay Kamuju infyquest@gmail.com --- New merge request with implementation is provided: https://gitlab.winehq.org/wine/wine/-/merge_requests/4893
@ stub _Wcsxfrm is now implemented in wine 9.0 Only thing remaining might be @ stub ?_Xregex_error@std@@YAXW4error_type@regex_constants@1@@ But even without the above one this can move forward without any errors once the MR is committed.
https://bugs.winehq.org/show_bug.cgi?id=46904
Vijay Kamuju infyquest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Fixed by SHA1| |1d917529f13a14fc304cec8540e | |18c48ba39c15a Resolution|--- |FIXED
--- Comment #3 from Vijay Kamuju infyquest@gmail.com --- Fixed by https://source.winehq.org/git/wine.git/commit/1d917529f13a14fc304cec8540e18c...
https://bugs.winehq.org/show_bug.cgi?id=46904
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 9.1.