Failed to fetch symbols for ntdll.dll

217 views
Skip to first unread message

Jerry Harmon

unread,
Sep 30, 2019, 12:24:10 PM9/30/19
to Dr. Memory Users

I am running into an issue when I try to run Dr Memory in an Windows automated build service (Atlassian Bamboo).

If I login normally and run Dr Memory it works fine.  But when I run the same Dr Memory command in a script run by a Windows service I get the following error fetching symbols (I am using the same user to login manually and run the service so the user has the same permissions):


drmemory.exe -no_use_stderr -batch -light -- <my_test_command>

WARNING: Running on an unsupported 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 "C:\bamboo-agent-home\xml-data\build-dir\CSM-DM1-XD\x64\Debug\DrMemoryLog\symcache"
Fetching symbols for "C:\WINDOWS\system32\ntdll.dll", attempt #0
Ignoring local _NT_SYMBOL_PATH in next attempt.
Fetching symbols for "C:\WINDOWS\system32\ntdll.dll", attempt #1
Ignoring local _NT_SYMBOL_PATH in next attempt.
Failed to fetch symbols for C:\WINDOWS\system32\ntdll.dll: error 1
~~Dr.M~~ WARNING: application exited with abnormal code 0xc000a004


Running on Windows 10 1809 build 17763.737

Is there a a diagnostic option that would give more info about why it failed to fetch symbols?  I have tried --verbose and --debug and it doesnt give me any more info on the error.

Is it possible for me to fetch the symbols in a manual run and save them in a directory which I could use for later automated runs so the build service wouldnt need to fetch symbols?

Thanks.  Dr Memory is awesome by the way.

Derek Bruening

unread,
Sep 30, 2019, 1:19:52 PM9/30/19
to drmemor...@googlegroups.com
The fetching only happens once, so yes, you can do it just once manually.  It produces a single text file syscalls_{x64,wow64,x86}.txt and stores it in the symcache/ subdirectory of the logs directory: from your output that is "C:\bamboo-agent-home\xml-data\build-dir\CSM-DM1-XD\x64\Debug\DrMemoryLog\symcache".  You can take the syscall_*.txt file from your run as your user and copy that in there, or even from another machine with the same 1809 version: the file should be identical.

To diagnose the failure, please pass "-vvv" to drmemory.exe which should provide further information.

--

---
You received this message because you are subscribed to the Google Groups "Dr. Memory Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drmemory-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drmemory-users/9446ce83-48fc-4277-81c7-05f1285ec04d%40googlegroups.com.

Jerry Harmon

unread,
Sep 30, 2019, 5:17:41 PM9/30/19
to Dr. Memory Users
Thank you!  I was able to get things working by using -syscall_number_path and pointing at it the syscalls file I generated in my manual run.
To unsubscribe from this group and stop receiving emails from it, send an email to drmemor...@googlegroups.com.

Derek Bruening

unread,
Sep 30, 2019, 6:38:44 PM9/30/19
to drmemor...@googlegroups.com
For improving Dr. Memory, could you share additional diagnostic information from -vvv to try and understand why it originally failed?

To unsubscribe from this group and stop receiving emails from it, send an email to drmemory-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drmemory-users/5b057339-e6b6-4b5b-9158-3b8f6091b51c%40googlegroups.com.

Jerry Harmon

unread,
Sep 30, 2019, 7:41:59 PM9/30/19
to Dr. Memory Users
When I run with -vvv I get this output:

C:/Program Files (x86)/Dr. Memory/bin64/drmemory.exe -logdir C:\bamboo-agent-home\xml-data\build-dir\CSM-DM1-XD\x64\Debug\DrMemoryLog -no_use_stderr -batch -light -vvv -- C:\bamboo-agent-home\xml-data\build-dir\CSM-DM1-XD\x64\Debug\testApp

INFO: targeting application: "C:\bamboo-agent-home\xml-data\build-dir\CSM-DM1-XD\x64\Debug\testApp.exe"
INFO: app cmdline: "C:\bamboo-agent-home\xml-data\build-dir\CSM-DM1-XD\x64\Debug\testApp"
INFO: logdir is "C:\bamboo-agent-home\xml-data\build-dir\CSM-DM1-XD\x64\Debug\DrMemoryLog"
INFO: symcache_dir is "C:\bamboo-agent-home\xml-data\build-dir\CSM-DM1-XD\x64\Debug\DrMemoryLog\symcache"
drfront_set_client_symbol_search_path: setting C:\bamboo-agent-home\xml-data\build-dir\CSM-DM1-XD\x64\Debug\DrMemoryLog\symcache\symbols as the local store
drfront_set_client_symbol_search_path: returning srv*C:\bamboo-agent-home\xml-data\build-dir\CSM-DM1-XD\x64\Debug\DrMemoryLog\symcache\symbols*http://msdl.microsoft.com/download/symbols
drfront_set_symbol_search_path: set symbol search path to srv*C:\bamboo-agent-home\xml-data\build-dir\CSM-DM1-XD\x64\Debug\DrMemoryLog\symcache\symbols*http://msdl.microsoft.com/download/symbols
INFO: Setting TZ to Pacific Standard Time for i#2164 workaround
INFO: DynamoRIO configuration directory is C:\Users\svc-cdsbb-aa/dynamorio
INFO: configuring testApp.exe pid=9048 dr_ops="-disable_traces -bb_single_restore_prefix -max_bb_instrs 256 -vm_size 256M -no_enable_reset -no_vm_base_near_app -no_early_inject -msgbox_mask 0 -logdir `C:\bamboo-agent-home\xml-data\build-dir\CSM-DM1-XD\x64\Debug\DrMemoryLog\dynamorio` "
INFO: configuring client "C:\Program Files (x86)\Dr. Memory\bin64\debug\drmemorylib.dll" ops="`-no_use_stderr` `-light` -logdir `C:\bamboo-agent-home\xml-data\build-dir\CSM-DM1-XD\x64\Debug\DrMemoryLog` -symcache_dir `C:\bamboo-agent-home\xml-data\build-dir\CSM-DM1-XD\x64\Debug\DrMemoryLog\symcache` -lib_blacklist `C:\WINDOWS*.d??,C:\Program Files\Common Files\Microsoft Shared*.d??,C:\Program Files (x86)\Common Files\Microsoft Shared*.d??` -resfile 9048 "
INFO: waiting for app to exit...
WARNING: Running on an unsupported 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 "C:\bamboo-agent-home\xml-data\build-dir\CSM-DM1-XD\x64\Debug\DrMemoryLog\symcache"
drfront_set_client_symbol_search_path: setting C:\bamboo-agent-home\xml-data\build-dir\CSM-DM1-XD\x64\Debug\DrMemoryLog\symcache\symbols as the local store
drfront_set_client_symbol_search_path: returning srv*C:\bamboo-agent-home\xml-data\build-dir\CSM-DM1-XD\x64\Debug\DrMemoryLog\symcache\symbols*http://msdl.microsoft.com/download/symbols
drfront_set_symbol_search_path: set symbol search path to srv*C:\bamboo-agent-home\xml-data\build-dir\CSM-DM1-XD\x64\Debug\DrMemoryLog\symcache\symbols*http://msdl.microsoft.com/download/symbols
Fetching symbols for "C:\WINDOWS\system32\ntdll.dll", attempt #0
drfront_fetch_module_symbols: SymLoadModuleEx C:\WINDOWS\system32\ntdll.dll => 0x180000000
  failed to fetch pdb for C:\WINDOWS\system32\ntdll.dll, exports only
Ignoring local _NT_SYMBOL_PATH in next attempt.
drfront_set_client_symbol_search_path: setting C:\bamboo-agent-home\xml-data\build-dir\CSM-DM1-XD\x64\Debug\DrMemoryLog\symcache\symbols as the local store
drfront_set_client_symbol_search_path: returning srv*C:\bamboo-agent-home\xml-data\build-dir\CSM-DM1-XD\x64\Debug\DrMemoryLog\symcache\symbols*http://msdl.microsoft.com/download/symbols
drfront_set_symbol_search_path: set symbol search path to srv*C:\bamboo-agent-home\xml-data\build-dir\CSM-DM1-XD\x64\Debug\DrMemoryLog\symcache\symbols*http://msdl.microsoft.com/download/symbols
Fetching symbols for "C:\WINDOWS\system32\ntdll.dll", attempt #1
drfront_fetch_module_symbols: SymLoadModuleEx C:\WINDOWS\system32\ntdll.dll => 0x180000000
  failed to fetch pdb for C:\WINDOWS\system32\ntdll.dll, exports only
Ignoring local _NT_SYMBOL_PATH in next attempt.
drfront_set_client_symbol_search_path: setting C:\bamboo-agent-home\xml-data\build-dir\CSM-DM1-XD\x64\Debug\DrMemoryLog\symcache\symbols as the local store
drfront_set_client_symbol_search_path: returning srv*C:\bamboo-agent-home\xml-data\build-dir\CSM-DM1-XD\x64\Debug\DrMemoryLog\symcache\symbols*http://msdl.microsoft.com/download/symbols
drfront_set_symbol_search_path: set symbol search path to srv*C:\bamboo-agent-home\xml-data\build-dir\CSM-DM1-XD\x64\Debug\DrMemoryLog\symcache\symbols*http://msdl.microsoft.com/download/symbols
Failed to fetch symbols for C:\WINDOWS\system32\ntdll.dll: error 1
INFO: fetching symbols
~~Dr.M~~ WARNING: application exited with abnormal code 0xc000a004


Derek Bruening

unread,
Oct 28, 2019, 10:09:43 AM10/28/19
to drmemor...@googlegroups.com
Unfortunately it's not clear what the error was: SymLoadModuleEx succeeded but without a pdb.  https://github.com/DynamoRIO/drmemory/issues/2232 covers figuring this out.

To unsubscribe from this group and stop receiving emails from it, send an email to drmemory-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drmemory-users/bd21830b-4e24-4464-a440-66843d2e551e%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages