DynamoRIO / DynamoRIO/dynamorio

Tools directory location doesn't work when run via PATH

Open
#1,757 0 comments 0 reactions 0 assignees View on GitHub
Component-Tools help wanted
Dominant language
C
Stars
3.2k
Forks
629
Avg merge
2d 18h
Merged PRs (30d)
30

Description

Looks like drrun locates the tools subdirectory by looking at argv[0], and if this is just a bare name (as it would be when executed via PATH) then it looks for the tools subdirectory relative to the current directory:

```
$ cwd /my/project
$ drrun -t drcov -- ls
ERROR: cannot find tool config file /my/project/../tools/drcov/drrun64
...
$ `which drrun` -t drcov -- ls
... works as expected ...
```

Using the --root option seems to have no effect.

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.