https://bugs.winehq.org/show_bug.cgi?id=46902
Bug ID: 46902 Summary: SIMATIC WinCC V15.1 Runtime installer: S7Inst64.exe sub-installer crashes on unimplemented function msvcr110.dll._wcsnset_s Product: Wine Version: 4.4 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: msvcrt Assignee: wine-bugs@winehq.org Reporter: focht@gmx.net Distribution: ---
Hello folks,
as it says. Continuation of bug 46899
Bug 46900 seems to be non-fatal, installer can be restarted/resumed from that point.
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files/Common Files/Siemens/Automation/Simatic OAM/Drivers
$ wine ./S7Inst64.exe /Inf "C:\Program Files\Common Files\Siemens\Automation\Simatic OAM\Drivers\EPROM\s7otmcd64x.inf" /HardwareID *SIEA093 ... wine: Call from 0x7b497b7e to unimplemented function msvcr110.dll._wcsnset_s, aborting wine: Unimplemented function msvcr110.dll._wcsnset_s called at address 0x7b497b7e (thread 0040), starting debugger... --- snip ---
Application log:
--- snip --- 21:28:01| |StartAppl | Start Application silent: C:\Program Files\Common Files\Siemens\Automation\Simatic OAM\Drivers\S7Inst64.exe with parameter: /Inf "C:\Program Files\Common Files\Siemens\Automation\Simatic OAM\Drivers\EPROM\s7otmcd64x.inf" /HardwareID *SIEA093 21:28:01| |::LaunchAppGetExitCode | LaunchAppGetExitCode Start 21:28:01| |::LaunchAppGetExitCode | Command: C:\Program Files\Common Files\Siemens\Automation\Simatic OAM\Drivers\S7Inst64.exe 21:28:01| |::LaunchAppGetExitCode | Parameters: /Inf "C:\Program Files\Common Files\Siemens\Automation\Simatic OAM\Drivers\EPROM\s7otmcd64x.inf" /HardwareID *SIEA093 21:28:01| |::LaunchAppGetExitCode | StartDir: C:\Program Files\Common Files\Siemens\Automation\Simatic OAM\Drivers 21:28:01| |::LaunchAppGetExitCode | Silent: 1 21:28:01| |::LaunchAppGetExitCodeC | call CreateProcess 21:28:01| |::LaunchAppGetExitCodeC | TimeOutWaitingForAppl= 20 minutes 21:28:20| |::LaunchAppGetExitCodeC | WaitForSingleObject ReturnValue= 0 21:28:20| |::LaunchAppGetExitCode | END LaunchAppGetExitCode ReturnValue= -2147483392 21:28:20| |StartAppl | Elapsed time= 18,7 seconds 21:28:20| |StartAppl | Successfully started: C:\Program Files\Common Files\Siemens\Automation\Simatic OAM\Drivers\S7Inst64.exe /Inf "C:\Program Files\Common Files\Siemens\Automation\Simatic OAM\Drivers\EPROM\s7otmcd64x.inf" /HardwareID *SIEA093 ReturnValue=-2147483392 --- snip ---
Dumping the imports ...
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files/Common Files/Siemens/Automation/Simatic OAM/Drivers
$ winedump -j import S7Inst64.exe | sed -n '/MSVCR110.dll/,/^$/p' offset 0000b090 MSVCR110.dll Hint/Name Table: 0000BED0 TimeDateStamp: 00000000 (Thu Jan 1 01:00:00 1970) ForwarderChain: 00000000 First thunk RVA: 00009200 Thunk Ordn Name 00009200 289 ?_type_info_dtor_internal_method@type_info@@QEAAXXZ 00009208 313 ?terminate@@YAXXZ 00009210 727 _initterm_e 00009218 534 _commode 00009220 621 _fmode 00009228 1263 _wcmdln 00009230 726 _initterm 00009238 408 __crtSetUnhandledExceptionFilter 00009240 330 _CxxThrowException 00009248 358 __CxxFrameHandler3 00009250 1529 memcpy 00009258 1125 _strlwr_s 00009260 462 __setusermatherr 00009268 535 _configthreadlocale 00009270 519 _cexit 00009278 593 _exit 00009280 1119 _stricmp 00009288 1567 sprintf_s 00009290 1533 memset 00009298 648 _fstat64i32 000092a0 837 _localtime64_s 000092a8 1575 strchr 000092b0 1416 atoi 000092b8 584 _errno 000092c0 1552 remove 000092c8 1450 fopen_s 000092d0 1626 vsprintf_s 000092d8 1579 strcpy_s 000092e0 654 _ftime64 000092e8 1583 strftime 000092f0 1530 memcpy_s 000092f8 1090 _sopen_s 00009300 1470 fwrite 00009308 1592 strrchr 00009310 1467 ftell 00009318 1417 atol 00009320 1599 strtoul 00009328 1574 strcat_s 00009330 1465 fseek 00009338 1436 fclose 00009340 572 _difftime64 00009348 1589 strncpy_s 00009350 1167 _time64 00009358 532 _close 00009360 1459 free 00009368 1281 _wcsnicmp 00009370 1277 _wcslwr_s 00009378 1653 wcsstr 00009380 1656 wcstok_s 00009388 1286 _wcsnset_s 00009390 1633 wcscat_s 00009398 1638 wcscpy_s 000093a0 1267 _wcsdup 000093a8 1531 memmove 000093b0 1017 _purecall 000093b8 115 ??3@YAXPEAX@Z 000093c0 113 ??2@YAPEAX_K@Z 000093c8 411 __crt_debugger_hook 000093d0 410 __crtUnhandledException 000093d8 409 __crtTerminateProcess 000093e0 384 __crtCaptureCurrentContext 000093e8 385 __crtCapturePreviousContext 000093f0 838 _lock 000093f8 1195 _unlock 00009400 518 _calloc_crt 00009408 413 __dllonexit 00009410 352 __C_specific_handler 00009418 1005 _onexit 00009420 348 _XcptFilter 00009428 398 __crtGetShowWindowMode 00009430 496 _amsg_exit 00009438 482 __wgetmainargs 00009440 460 __set_app_type 00009448 1432 exit --- snip ---
One liner showing all imported functions from 'MSVCR110.dll' that are stubs:
--- snip --- $ winedump -j import S7Inst64.exe | sed -n '/MSVCR110.dll/,/^$/p' | sed -n 's/.*[[:xdigit:]]+[[:blank:]]+[[:digit:]]+[[:blank:]]+(.*)/\1/p' | xargs -n1 -I '{}' grep '.*[[:blank:]]{}' /home/focht/projects/wine/mainline-src/dlls/msvcr110/*.spec | grep stub
@ stub -arch=win64 ?_type_info_dtor_internal_method@type_info@@QEAAXXZ # public: void __cdecl type_info::_type_info_dtor_internal_method(void) __ptr64 @ stub _wcsnset_s --- 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=46902
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dotnet, download, Installer URL| |https://support.industry.si | |emens.com/cs/document/10976 | |1576/simatic-wincc-v15-1-ru | |ntime-(tia-portal)?dti=0&lc | |=en-US
https://bugs.winehq.org/show_bug.cgi?id=46902
--- Comment #1 from Gijs Vermeulen gijsvrm@gmail.com --- Should be fixed by https://source.winehq.org/git/wine.git/commit/92ba9e7b6dd3b4d5fe2349ea1a5c413778c53143
https://bugs.winehq.org/show_bug.cgi?id=46902
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Fixed by SHA1| |92ba9e7b6dd3b4d5fe2349ea1a5 | |c413778c53143 Resolution|--- |FIXED
--- Comment #2 from Anastasius Focht focht@gmx.net --- Hello folks,
this is fixed by commit https://source.winehq.org/git/wine.git/commitdiff/92ba9e7b6dd3b4d5fe2349ea1a...
Thanks Gijs
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files/Common Files/Siemens/Automation/Simatic OAM/Drivers
$ WINEDEBUG=+seh,+relay,+setupapi,+msvcrt wine ./S7Inst64.exe /Inf "C:\Program Files\Common Files\Siemens\Automation\Simatic OAM\Drivers\EPROM\s7otmcd64x.inf" /HardwareID *SIEA093 >>log.txt 2>&1 ... 00ca:Call setupapi.SetupDiEnumDeviceInfo(000888b0,00000000,0023f948) ret=14000511d 00ca:trace:setupapi:SetupDiEnumDeviceInfo devinfo 0x888b0, index 0, device_data 0x23f948 00ca:Ret setupapi.SetupDiEnumDeviceInfo() retval=00000001 ret=14000511d 00ca:Call msvcr110._wcsnset_s(000880a0 L"",00000400,00000000,00000400) ret=140005144 00ca:Ret msvcr110._wcsnset_s() retval=00000000 ret=140005144 00ca:Call setupapi.SetupDiGetDeviceRegistryPropertyW(000888b0,0023f948,00000001,0023f940,000880a0,00000400,0023f944) ret=140005174 00ca:trace:setupapi:SetupDiGetDeviceRegistryPropertyW devinfo 0x888b0, device_data 0x23f948, prop 1, type 0x23f940, buffer 0x880a0, size 1024, required 0x23f944 00ca:Call advapi32.RegQueryValueExW(0000006c,7ff830e7b670 L"HardwareID",00000000,0023f940,000880a0,0023f788) ret=7ff830e43283 00ca:Ret advapi32.RegQueryValueExW() retval=00000000 ret=7ff830e43283 00ca:Ret setupapi.SetupDiGetDeviceRegistryPropertyW() retval=00000001 ret=140005174 ... 00ca:Call msvcr110._wcsnset_s(000880a0 L"Root\dpmconv",00000400,00000000,00000400) ret=140005144 00ca:Ret msvcr110._wcsnset_s() retval=00000000 ret=140005144 00ca:Call setupapi.SetupDiGetDeviceRegistryPropertyW(000888b0,0023f948,00000001,0023f940,000880a0,00000400,0023f944) ret=140005174 00ca:trace:setupapi:SetupDiGetDeviceRegistryPropertyW devinfo 0x888b0, device_data 0x23f948, prop 1, type 0x23f940, buffer 0x880a0, size 1024, required 0x23f944 00ca:Call advapi32.RegQueryValueExW(00000070,7ff830e7b670 L"HardwareID",00000000,0023f940,000880a0,0023f788) ret=7ff830e43283 00ca:Ret advapi32.RegQueryValueExW() retval=00000000 ret=7ff830e43283 00ca:Ret setupapi.SetupDiGetDeviceRegistryPropertyW() retval=00000001 ret=140005174 ... --- snip ---
$ wine --version wine-4.5-138-g8268c47462
Regards
https://bugs.winehq.org/show_bug.cgi?id=46902
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.6.
https://bugs.winehq.org/show_bug.cgi?id=46902
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.0.x
https://bugs.winehq.org/show_bug.cgi?id=46902
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|4.0.x |---
--- Comment #4 from Michael Stefaniuc mstefani@winehq.org --- Removing the 4.0.x milestone from bug fixes included in 4.0.2.
https://bugs.winehq.org/show_bug.cgi?id=46902
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|https://support.industry.si |https://archive.org/downloa |emens.com/cs/document/10976 |d/simatic-win-cc-runtime-ad |1576/simatic-wincc-v15-1-ru |vanced-v-15-1/SIMATIC_WinCC |ntime-(tia-portal)?dti=0&lc |_Runtime_Advanced_V15_1.exe |=en-US |