drmemory icon indicating copy to clipboard operation
drmemory copied to clipboard

Hung on Windows Server 2022 when using github actions

Open ShabalinAnton opened this issue 2 years ago • 2 comments

Hello everyone,

I am trying to run Dr.Memory using github actions in a Windows-latest environment. When I run Dr.Memory with my app, it starts successfully, but then it never ends. My application uses a dll where I want to investigate memory leaks. Here is the log I've got:

drmemory.exe -debug -dr_debug -logdir D:\a\_temp\memtest_createimages_testdir -leaks_only -verbose 5 -- D:\a\_temp\memtest_createimages_testdir\memtest_createimages.exe
  
<Starting application D:\a\_temp\memtest_createimages_testdir\memtest_createimages.exe (3548)>
<Running on newer-than-this-build "Microsoft Windows 10-2009 x64">
<Early threads found>
<Initial options = -no_dynamic_options -logdir 'D:\a\_temp\memtest_createimages_testdir\dynamorio' -client_lib 'D:\a\3rdparty\DrMemory-Windows-2.5.0\bin64\debug\drmemorylib.dll;0;`-leaks_only` `-verbose` `5` -logdir `D:\a\_temp\memtest_createimages_testdir` -symcache_dir `D:\a\_temp\memtest_createimages_testdir\symcache` -lib_blocklist_default `C:\Windows*.d??,C:\Program Files\Common Files\Microsoft Shared*.d??,C:\Program Files (x86)\Common Files\Microsoft Shared*.d??` -resfile 3548 ' -client_lib64 'D:\a\3rdparty\DrMemory-Windows-2.5.0\bin64\debug\drmemorylib.dll;0;`-leaks_only` `-verbose` `5` -logdir `D:\a\_temp\memtest_createimages_testdir` -symcache_dir `D:\a\_temp\memtest_createimages_testdir\symcache` -lib_blocklist_default `C:\Windows*.d??,C:\Pr...
~~Dr.M~~ Dr. Memory version 2.5.0
~~Dr.M~~ Running "D:\a\_temp\memtest_createimages_testdir/memtest_createimages.exe"
~~Dr.M~~ options are "`-leaks_only` `-verbose` `5` -logdir `D:\a\_temp\memtest_createimages_testdir` -symcache_dir `D:\a\_temp\memtest_createimages_testdir\symcache` -lib_blocklist_default `C:\Windows*.d??,C:\Program Files\Common Files\Microsoft Shared*.d??,C:\Program Files (x86)\Common Files\Microsoft Shared*.d??` -resfile 3548 "
~~Dr.M~~ log dir is D:\a\_temp\memtest_createimages_testdir\DrMemory-memtest_createimages.exe.3548.000
~~Dr.M~~ System call information is missing for this operating system: WinVer=105;Rel=2009;Build=20348;Edition=ServerDatacenter. Restarting to trigger auto-generation of system call information. Re-run with -ignore_kernel to attempt to continue instead.
WARNING: System call information is missing for this operating system version. Attempting to auto-generate system call information...
drsys_find_sysnum_libs: C:\Windows\system32\ntdll.dll is readable
drsys_find_sysnum_libs: C:\Windows\system32\kernelbase.dll is readable
drsys_find_sysnum_libs: C:\Windows\system32\kernel32.dll is readable
drsys_find_sysnum_libs: C:\Windows\system32\gdi32.dll is readable
drsys_find_sysnum_libs: C:\Windows\system32\imm32.dll is readable
drsys_find_sysnum_libs: C:\Windows\system32\user32.dll is readable
drsys_find_sysnum_libs: C:\Windows\system32\win32u.dll is readable
drsys_find_sysnum_libs: C:\Windows\system32\ntdll.dll is readable
drsys_find_sysnum_libs: C:\Windows\system32\kernelbase.dll is readable
drsys_find_sysnum_libs: C:\Windows\system32\kernel32.dll is readable
drsys_find_sysnum_libs: C:\Windows\system32\gdi32.dll is readable
drsys_find_sysnum_libs: C:\Windows\system32\imm32.dll is readable
drsys_find_sysnum_libs: C:\Windows\system32\user32.dll is readable
drsys_find_sysnum_libs: C:\Windows\system32\win32u.dll is readable
Symbol cache directory is "D:\a\_temp\memtest_createimages_testdir\symcache"
Fetching symbols for "C:\Windows\system32\ntdll.dll", attempt #0
    Successfully fetched or found symbols at "D:\a\_temp\memtest_createimages_testdir\symcache\symbols\ntdll.pdb\0ADF62812708CFE13125A0E82555162A1\ntdll.pdb"
Fetching symbols for "C:\Windows\system32\kernelbase.dll", attempt #0
	Successfully fetched or found symbols at "D:\a\_temp\memtest_createimages_testdir\symcache\symbols\kernelbase.pdb\59B807A1CE0BD2806534963CDE91E0A31\kernelbase.pdb"
Fetching symbols for "C:\Windows\system32\kernel32.dll", attempt #0
	Successfully fetched or found symbols at "D:\a\_temp\memtest_createimages_testdir\symcache\symbols\kernel32.pdb\E3D30A17E8D733F76AECD5F901AD9EFC1\kernel32.pdb"
Fetching symbols for "C:\Windows\system32\gdi32.dll", attempt #0
	Successfully fetched or found symbols at "D:\a\_temp\memtest_createimages_testdir\symcache\symbols\gdi32.pdb\86E5988CE4F63C2FB265BA10E6A5A4031\gdi32.pdb"
Fetching symbols for "C:\Windows\system32\imm32.dll", attempt #0
	Successfully fetched or found symbols at "D:\a\_temp\memtest_createimages_testdir\symcache\symbols\imm32.pdb\C2EBF39F28736B6F787A55BC9D3CB33E1\imm32.pdb"
Fetching symbols for "C:\Windows\system32\user32.dll", attempt #0
	Successfully fetched or found symbols at "D:\a\_temp\memtest_createimages_testdir\symcache\symbols\user32.pdb\1EC4FE81950099A9ED5103C1C59181651\user32.pdb"
Fetching symbols for "C:\Windows\system32\win32u.dll", attempt #0
	Successfully fetched or found symbols at "D:\a\_temp\memtest_createimages_testdir\symcache\symbols\win32u.pdb\16B04AD05B7175DC634D138C568FC87C1\win32u.pdb"
Searching for system calls in "C:\Windows\system32\ntdll.dll"
	Found 481 system calls (0 usercalls) in "C:\Windows\system32\ntdll.dll"
Searching for system calls in "C:\Windows\system32\kernelbase.dll"
	Found 0 system calls (0 usercalls) in "C:\Windows\system32\kernelbase.dll"
Searching for system calls in "C:\Windows\system32\kernel32.dll"
	Found 0 system calls (0 usercalls) in "C:\Windows\system32\kernel32.dll"
Searching for system calls in "C:\Windows\system32\gdi32.dll"
	Found 0 system calls (0 usercalls) in "C:\Windows\system32\gdi32.dll"
Searching for system calls in "C:\Windows\system32\imm32.dll"
	Found 0 system calls (0 usercalls) in "C:\Windows\system32\imm32.dll"
Searching for system calls in "C:\Windows\system32\user32.dll"
	Found 0 system calls (0 usercalls) in "C:\Windows\system32\user32.dll"
Searching for system calls in "C:\Windows\system32\win32u.dll"
	Found 1456 system calls (0 usercalls) in "C:\Windows\system32\win32u.dll"
Writing to "D:\a\_temp\memtest_createimages_testdir\symcache\syscalls_x64.txt"
Successfully wrote "D:\a\_temp\memtest_createimages_testdir\symcache\syscalls_x64.txt"
~~Dr.M~~ Auto-generation succeeded.  Re-launching the application.
<Starting application D:\a\_temp\memtest_createimages_testdir\memtest_createimages.exe (6104)>
<Running on newer-than-this-build "Microsoft Windows 10-2009 x64">
<Early threads found>
<Initial options = -no_dynamic_options -logdir 'D:\a\_temp\memtest_createimages_testdir\dynamorio' -client_lib 'D:\a\3rdparty\DrMemory-Windows-2.5.0\bin64\debug\drmemorylib.dll;0;`-leaks_only` `-verbose` `5` -logdir `D:\a\_temp\memtest_createimages_testdir` -symcache_dir `D:\a\_temp\memtest_createimages_testdir\symcache` -lib_blocklist_default `C:\Windows*.d??,C:\Program Files\Common Files\Microsoft Shared*.d??,C:\Program Files (x86)\Common Files\Microsoft Shared*.d??` -resfile 6760 -resfile 4880 ' -client_lib64 'D:\a\3rdparty\DrMemory-Windows-2.5.0\bin64\debug\drmemorylib.dll;0;`-leaks_only` `-verbose` `5` -logdir `D:\a\_temp\memtest_createimages_testdir` -symcache_dir `D:\a\_temp\memtest_createimages_testdir\symcache` -lib_blocklist_default `C:\Wind...
~~Dr.M~~ Dr. Memory version 2.5.0
~~Dr.M~~ Running "D:\a\_temp\memtest_createimages_testdir/memtest_createimages.exe"
~~Dr.M~~ options are "`-leaks_only` `-verbose` `5` -logdir `D:\a\_temp\memtest_createimages_testdir` -symcache_dir `D:\a\_temp\memtest_createimages_testdir\symcache` -lib_blocklist_default `C:\Windows*.d??,C:\Program Files\Common Files\Microsoft Shared*.d??,C:\Program Files (x86)\Common Files\Microsoft Shared*.d??` -resfile 35[48](https://github.com/Luxand/FaceSDK-tests/runs/7208809566?check_suite_focus=true#step:6:49) -resfile 6104 "
~~Dr.M~~ log dir is D:\a\_temp\memtest_createimages_testdir\DrMemory-memtest_createimages.exe.4880.000
~~Dr.M~~ Using system call file D:\a\_temp\memtest_createimages_testdir\symcache\syscalls_x64.txt
<dr_fragment_app_pc is a DR/client pc>
<curiosity: rex.w on OPSZ_6_irex10_short4!>

My system info: OS Name: Microsoft Windows Server 2022 Datacenter OS Version: 10.0.2034 Build 20348

Environment: windows-2022 Version: 20220626.1 Included Software: https://github.com/actions/virtual-environments/blob/win22/20220626.1/images/win/Windows2022-Readme.md Image Release: https://github.com/actions/virtual-environments/releases/tag/win22%2F20220626.1

Dr Memory v.2.5.0

ShabalinAnton avatar Jul 06 '22 05:07 ShabalinAnton

You might need the -batch flag to prevent Dr. Memory from trying to open up Notepad.

cmazakas avatar Jul 18 '22 03:07 cmazakas

Yes, I've tried this flag also. It didn't help

ShabalinAnton avatar Jul 18 '22 09:07 ShabalinAnton