`syscall(SYS_pidfd_open)` should produce clear error when `ENOSYS`
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- cpp
- Domain
- operating-systems
Research direction
Start in config.hpp and trace the V2 process-spawn path that calls syscall(SYS_pidfd_open). Reproduce the older-kernel ENOSYS case and verify that it reports a clear exception instead of the misleading Bad file descriptor error.
Written by the indexing model from the issue text.
Description
While building on an older Linux kernel for compatibility, all V2 process spawns failed with Bad file descriptor. We traced this back to syscall(SYS_pidfd_open) returning -1 and errno == ENOSYS.
In config.hpp, even though SYS_pidfd_open is #defined, it doesn't appear to mean that it will work.
We now detect and define BOOST_PROCESS_V2_DISABLE_PIDFD_OPEN and things work as expected, but it took some time to figure out that we needed to do this.
It would be nice if an exception was thrown when this failed syscall produced ENOSYS.
- Dominant language
- C++
- Stars
- 145
- Forks
- 151
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
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.
More from boostorg/process
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
All issues in boostorg/process
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
google/libultrahdr#485 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
godotengine/godot#123776 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 60/100
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
ros2/common_interfaces#344 ·