DR crashes when running C# on Win 10
Dynamorio crashes when running a simple C# Application on Windows 10:
OS: Windows 10
DR: drrun version 7.0.0 -- build 1
(both 32 and 64 bit)
Compiler: MSBuild\15.0\Bin\Roslyn\csc.exe
C# Code:
class MainProgram
{
static void Main(string[] args)
{ }
}
Execution:
/DynamoRIO-Windows-7.0.0-RC1/bin32/drrun.exe -debug -- test/mini-apps/cs-lock/Debug/gp-cs-lock.exe
<Application C:\Users\felix\CMakeBuilds\b76e3c80-c08f-0039-98b4-7033c70ea08f\build\x86-Debug-msvc\test\mini-apps\cs-lock\Debug\gp-cs-lock.exe (10788). Internal Error: DynamoRIO debug check failure: D:\dynamorio_package\core\win32\ntdll.c:662 (byte *) get_proc_address(ntdllh, syscall_names[i]) != NULL && (*((int *)(((byte *) get_proc_address(ntdllh, syscall_names[i])) + SYSNUM_OFFS)) == syscalls[i] || ALLOW_HOOKER((byte *) get_proc_add
version 7.0.0, build 1
0x00b3f00c 0x143d7e84
0x00b3f144 0x145bf2a0
0x00b3f1c4 0x1431c07f
0x00b3fa88 0x14568d51
0x00b3fae8 0x14569718>
Edit: When using, drrun version 7.0.17689 -- build 0
the output is more precise:
<Starting application C:\Users\felix\CMakeBuilds\b76e3c80-c08f-0039-98b4-7033c70ea08f\build\x64-Debug-msvc\test\mini-apps\cs-lock\Debug\gp-cs-lock.exe (7260)>
<Early threads found>
<Initial options = -no_dynamic_options -code_api -probe_api -stack_size 56K -max_elide_jmp 0 -max_elide_call 0 -no_inline_ignored_syscalls -native_exec_default_list '' -no_native_exec_managed_code -no_indcall2direct -no_aslr_dr -pad_jmps_mark_no_trace >
<intercept_syscall_wrapper: not hooking NtSetContextThread due to conflict @0x77b934f5>
<intercept_syscall_wrapper: not hooking NtGetContextThread due to conflict @0x77b92ba5>
<intercept_syscall_wrapper: not hooking NtTerminateProcess due to conflict @0x77b91fd5>
<intercept_syscall_wrapper: not hooking NtCreateThread due to conflict @0x77b921f5>
<intercept_syscall_wrapper: not hooking NtCreateThreadEx due to conflict @0x77b928a5>
<intercept_syscall_wrapper: not hooking NtResumeThread due to conflict @0x77b92235>
<intercept_syscall_wrapper: not hooking NtQueryInformationThread due to conflict @0x77b91f65>
<intercept_syscall_wrapper: not hooking NtProtectVirtualMemory due to conflict @0x77b92215>
<intercept_syscall_wrapper: not hooking NtMapViewOfSection due to conflict @0x77b91f95>
<intercept_syscall_wrapper: not hooking NtUnmapViewOfSection due to conflict @0x77b91fb5>
<Stopping application C:\Users\felix\CMakeBuilds\b76e3c80-c08f-0039-98b4-7033c70ea08f\build\x64-Debug-msvc\test\mini-apps\cs-lock\Debug\gp-cs-lock.exe (7260)>
Segmentation fault