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