DynamoRIO / DynamoRIO/dynamorio

CRASH notepad under drcachesim on win11

Open
#5,726 1 comment 0 reactions 0 assignees View on GitHub
Bug-AppCrash Component-DrMemtrace OpSys-Windows Status-NeedInfo
Dominant language
C
Stars
3.2k
Forks
629
Avg merge
2d 18h
Merged PRs (30d)
30

Description

I am trying to instrument some Windows applications using DynamoRIO. As an example, I have tried to run `drcachesim` on Notepad like this:

```
drrun.exe -verbose -t drcachesim -- notepad.exe
```

However, DynamoRIO seems to just get stuck waiting for Notepad to terminate, even though Notepad never actually appears to launch on my screen. The output from the `-verbose` flag is below:

```
INFO: reading tool config file C:\dynamorio\DynamoRIO-Windows-9.0.1/tools/drcachesim.drrun32
INFO: client 0 path: C:\dynamorio\DynamoRIO-Windows-9.0.1\tools\lib32\release\drmemtrace.dll
INFO: client 1 path: C:\dynamorio\DynamoRIO-Windows-9.0.1\tools\lib32\release\drmemtrace.dll
INFO: targeting application: "C:\Windows\system32\notepad.exe"
INFO: app cmdline: "notepad.exe"
INFO: native tool cmdline: "C:\dynamorio\DynamoRIO-Windows-9.0.1/tools/bin32/drcachesim.exe" "-dr" "C:\dynamorio\DynamoRIO-Windows-9.0.1" "-dr_ops" "" "-tracer" "C:\dynamorio\DynamoRIO-Windows-9.0.1/tools/lib32/release/drmemtrace.dll" "-tracer_alt" "C:\dynamorio\DynamoRIO-Windows-9.0.1/tools/lib32/release/drmemtrace.dll" "--" "notepad.exe"
INFO: configuration directory is "C:\Users\peabr/dynamorio"
INFO: created child with pid 21240 for C:\dynamorio\DynamoRIO-Windows-9.0.1/tools/bin32/drcachesim.exe
INFO: waiting forever for app to exit...
```

I did some digging with Process Monitor and found that Notepad actually does get launched, only to almost immediately terminate with exit code -1073741819. You can see this in the screenshot below.

![image](https://user-images.githubusercontent.com/11084018/200953234-588f62f0-0e34-4c43-8c1f-936ff5b689ca.png)

**Additional System / Software Details**
- DynamoRIO version: Windows 9.0.1
- OS: Windows 11 Home, Version 10.0.22621 Build 22621

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.