HANG drcachesim offline tests on win10 1903
Xref #3858 which is a hang on the online drcachesim due to the process under DR crashing at init time. This is different: here the process under DR hangs at init time.
Various tests, including all of the drcachesim tests, are hanging on my Win10 1903 machine. windbg has trouble breaking in to see what is going on but I did manage to get a callstack:
0:000> kn
# Child-SP RetAddr Call Site
00 0000007c`d20fdfd8 00007ffe`62a5735b 0x0
01 0000007c`d20fdfe0 00007ffe`62b3b1e9 dbghelp!Debugger::Telemetry::InitializeTelemetry+0x33
02 0000007c`d20fe040 00007ffe`62a59d2b dbghelp!DllMain+0xa1
03 0000007c`d20fe070 00000000`153fdbdf dbghelp!dllmain_dispatch+0x8f
04 0000007c`d20fe0d0 00000000`1522d555 dynamorio!privload_call_entry+0x2cf [d:\derek\dr\git\src\core\win32\loader.c @ 1325]
05 0000007c`d20fe200 00000000`1522c5c2 dynamorio!privload_load_finalize+0x155 [d:\derek\dr\git\src\core\loader_shared.c @ 708]
06 0000007c`d20fe270 00000000`15401979 dynamorio!privload_load+0x3b2 [d:\derek\dr\git\src\core\loader_shared.c @ 577]
07 0000007c`d20fe2f0 00000000`15402f9f dynamorio!privload_locate_and_load+0x2e9 [d:\derek\dr\git\src\core\win32\loader.c @ 1674]
08 0000007c`d20fe380 00000000`153fe1de dynamorio!privload_lookup_locate_and_load+0x21f [d:\derek\dr\git\src\core\win32\loader.c @ 1026]
09 0000007c`d20fe400 00000000`1522d4b6 dynamorio!privload_process_imports+0x32e [d:\derek\dr\git\src\core\win32\loader.c @ 1100]
0a 0000007c`d20fe4c0 00000000`1522c5c2 dynamorio!privload_load_finalize+0xb6 [d:\derek\dr\git\src\core\loader_shared.c @ 699]
0b 0000007c`d20fe530 00000000`15401868 dynamorio!privload_load+0x3b2 [d:\derek\dr\git\src\core\loader_shared.c @ 577]
0c 0000007c`d20fe5b0 00000000`15402f9f dynamorio!privload_locate_and_load+0x1d8 [d:\derek\dr\git\src\core\win32\loader.c @ 1657]
0d 0000007c`d20fe640 00000000`153fe1de dynamorio!privload_lookup_locate_and_load+0x21f [d:\derek\dr\git\src\core\win32\loader.c @ 1026]
0e 0000007c`d20fe6c0 00000000`1522d4b6 dynamorio!privload_process_imports+0x32e [d:\derek\dr\git\src\core\win32\loader.c @ 1100]
0f 0000007c`d20fe780 00000000`1522bd9e dynamorio!privload_load_finalize+0xb6 [d:\derek\dr\git\src\core\loader_shared.c @ 699]
10 0000007c`d20fe7f0 00000000`15010862 dynamorio!loader_init+0x25e [d:\derek\dr\git\src\core\loader_shared.c @ 123]
11 0000007c`d20fea60 00000000`1533de2e dynamorio!dynamorio_app_init+0x3d2 [d:\derek\dr\git\src\core\dynamo.c @ 567]
12 0000007c`d20ff3d0 00000000`1533ea00 dynamorio!auto_setup+0x2e [d:\derek\dr\git\src\core\arch\x86_code.c @ 169]
This is using c:/windows/system32/dbghelp.dll Version: 10.0.18362.1 (WinBuild.160101.0800)
If I replace with some other version the hang goes away:
% rsync -av '/c/Program Files (x86)/Microsoft Visual Studio 12.0/Common7/IDE/Remote Debugger/x64/dbghelp.dll' ext/lib64/debug/
Version: 6.3.9600.16384 (debuggers(dbg).130821-1623)