DR client crashes when call system() in Windows 10
Created by: mxmssh
When DR client is calling system e.g. system("ipconfig")
in Windows 10, we have the following problem:
[0x0] 0x0
[0x1] KERNELBASE_241b6600000!CreateProcessInternalW + 0xe3a
[0x2] KERNELBASE_241b6600000!CreateProcessW + 0x66
[0x3] KERNEL32_241b64a0000!CreateProcessWStub + 0x53
[0x4] Test_system!__acrt_CreateProcessA + 0x249
[0x5] Test_system!__crt_char_traits::create_process + 0x55
[0x6] Test_system!execute_command + 0x145
[0x7] Test_system!common_spawnv + 0x185
[0x8] Test_system!__crt_char_traits::tspawnve + 0x14
[0x9] Test_system!common_system + 0x84
[0xa] Test_system!system + 0xa7
[0xb] Test_system!dr_client_main + 0x59
[0xc] dynamorio!instrument_init + 0xe4
[0xd] dynamorio!dynamorio_app_init + 0x227
[0xe] dynamorio!auto_setup + 0x1c
[0xf] dynamorio!dynamo_auto_start + 0x10
[0x10] KERNEL32!GetProcAddressStub
[0x11] dynamorio!dynamo_auto_start
The same client works fine in Windows 7. Probably, there is a problem with kernelbase.dll
exported functions resolution because it should call BasepCheckWebBladeHashes
instead of 0x0.