DynamoRIO / DynamoRIO/dynamorio

Crash with nearly empty program compiled via yasm/nasm.

Open
#3,842 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
3.2k
Forks
629
Avg merge
2d 15h
Merged PRs (30d)
31

Description

I've been trying to isolate another issue and stumbled upon another issue where running a nearly empty program will just crash DynamoRIO without any logs or messages. I've tried to attach the debugger but it seems I'm unable to catch the exception.

To reproduce the issue I did following:
```
bits 64
global main

section code exec
main:
; Exit
xor eax, eax
ret
```
Compile above code with NASM or YASM
```
yasm.exe -f win64 -o input.obj input.asm -debug
```
Link with MSVC linker
```
link.exe input.obj /OUT:output.exe /entry:main /debug /LARGEADDRESSAWARE:NO /DYNAMICBASE:NO "Libs\x64\kernel32.lib"
```
And running it with DynamoRIO
```
drrun.exe -verbose -debug -- output.exe
```
I've tested following versions and all are affected:
```
DynamoRIO-Windows-7.1.0-1
DynamoRIO-Windows-7.91.18145-0
DynamoRIO-Windows-7.91.18151-0
```
Also the compiled binary to make things a little easier: [output.zip](https://github.com/DynamoRIO/dynamorio/files/3621127/output.zip)

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.