DynamoRIO / DynamoRIO/dynamorio
Tools directory location doesn't work when run via PATH
Open
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
Assessment
This issue has not been assessed yet.