DynamoRIO / DynamoRIO/dynamorio

[drmemtrace] -record_syscall fails to record syscalls with zero args

Open
#7,482 0 comments 0 reactions 0 assignees View on GitHub
Bug-ToolCrash Component-DrMemtrace
Dominant language
C
Stars
3.2k
Forks
629
Avg merge
2d 15h
Merged PRs (30d)
31

Description

Specifying 0 args for a syscall in `-record_syscall` to drmemtrace fails with the following assert:

```
$ ./bin64/drrun -t drmemtrace -record_syscall "1|0" -- suite/tests/bin/simple_app
...
ASSERT FAILURE: dynamorio/ext/drcontainers/hashtable.c:365: payload != NULL (hashtable_add_replace internal error)
```

Of course `-record_syscall "1|1"` in the above works fine.

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.