DynamoRIO / DynamoRIO/drmemory
Nudging Deamon Apps on Win 10 not working
- Dominant language
- C
- Stars
- 2.7k
- Forks
- 290
- PR merge metrics
- No merged PRs in 30d
Description
**Steps to reproduce the issue:**
1.) open a command line (cmd1),
2.) execute on cmd1: ```drmemory.exe -- <#path to deamon app#> <#args to deamon app#>```
2a.) starts and runs drmemory and deamon app correctly
3.) get the process identifier (PID) of the deamon app started in cmd1 using the task manager.
4.) open another command line (cmd2)
5.) execute on cmd2: ```drmemory.exe -nudge <#PID#>```
5a.) return: ```ERROR: error nudging <#PID#>, error code 6 (unknown failure)```
5b.) expected: correct nudging of the deamon app.
**Software Versions:**
Dr. Memory 1.11.0. release
Microsoft Windows 10 Pro - Version 10.0.16299 Build 16299
**The problem remains:**
a) when the command lines (cmd1, cmd2) are run with administrator rights
b) Dr. Memory is run with the "-light" options, either on cmd1 only (and on cmd2 without the option) or on cmd2 only (and on cmd1 without the option) or both on cmd1 and cmd2.
c) Dr. Memory is run with the "-leaks_only -no_count_leaks -no_track_allocs" options, either on cmd1 only (and on cmd2 without the option) or on cmd2 only (and on cmd1 without the option) or both on cmd1 and cmd2.
**Running with "-debug -dr_debug -pause_at_assert" options:**
When run with those options on cmd1 (step 2) the output is:
```
(148)>
(148). Internal Error: DynamoRIO debug check failure: D:\drmemory_package\dynamorio\core\win32\callback.c:3715 instr_get_opcode(&instr) == OP_lea && (opnd_get_disp(instr_get_src(&instr, 0)) == 0x10 || opnd_get_disp(instr_get_src(&instr, 0)) == 0x2dc)
(Error occurred @0 frags)
version 6.1.17042, custom build
-no_dynamic_options -logdir '<#path to user#>\AppData\Roaming\Dr. Memory\dynamorio' -client_lib 'C:\Program Files (x86)\Dr. Memory\bin\debug\drmemorylib.dll;0;`-pause_at_assert` -logdir `<#path to user#>\AppData\Roaming\Dr. Memory` -symcache_dir `<#path to user#>\AppData\Roaming\Dr. Memory\symcache` -lib_blacklist `C:\WINDO
0x005af090 0x54116a74
0x005af1c8 0x542eb084
0x005af250 0x542f26f3
0x005af290 0x5405b7aa
0x005afb54 0x542a44d1
0x005afbb4 0x542a4e88>
~~Dr.M~~ WARNING: unable to locate results file: can't open <#path to user#>\AppData\Roaming\Dr. Memory/resfile.148 (code=2).
Dr. Memory failed to start the target application, perhaps due to
interference from invasive security software.
Try disabling other software or running in a virtual machine.
~~Dr.M~~ WARNING: application exited with abnormal code 0xffffffff
```
the following steps (3 to 5) of the test are not executed.
When cmd2 is run with those options, the issue remains (same output as in "steps to reproduce the issue")
**Not reproducable on Win 7**
The issue can not be reproduced on Windows 7, i.e. following the same test procedure, with the same deamon app and Dr. Memory version but Windows 7 Enterprise - Version 6.1.7601 Service Pack 1 Release 7601 results in nudging of Dr. Memory and the deamon app as intended.
Contributor guide
Assessment
This issue has not been assessed yet.