microsoft / microsoft/ProcDump-for-Linux
Race condition during exit where RestrackThread can leave a mutex orphaned due to thread cancellation
Open
@MarioHewardt is already working on this.
Since May 16, 2024.
bug
- Dominant language
- C
- Stars
- 3.1k
- Forks
- 327
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 7
Description
Expected behavior
When running using -restrack, no error shown at the end of the run.
Actual behavior
Internal error displayed as a result of the RestrackTread being cancelled while waiting on the quit event which results in an orphaned mutex.
Steps to reproduce the behavior
- sudo procdump -restrack
System information (e.g., distro, kernel version, etc.)
N/A
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.
Assessment
This issue has not been assessed yet.