Cannot opendir("/dev/dri/by-path")
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.7k
- Forks
- 662
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 2
Description
$ cat a.c
#include <stdio.h>
#include <dirent.h>
int main() {
DIR *dir = opendir("/dev/dri/by-path");
if (dir == NULL) {
puts("Failed to open");
return 0;
}
puts("Opened");
closedir(dir);
return 0;
}
$ gcc a.c
$ ./a.out
Opened
$ rr ./a.out
rr: Saving execution to trace directory `<...>'.
Failed to open
$ rr --version
rr version 5.3.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reproduced a.c program: run it directly and under rr 5.3.0, comparing the opendir result for /dev/dri/by-path. Trace the relevant rr behavior for this path and determine why the results differ. Done means the cause is identified and rr consistently handles this case, with the behavior verified using the reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, linux
- Domain
- devtools, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100