microsoft / microsoft/ProcDump-for-Linux

Race condition during exit where RestrackThread can leave a mutex orphaned due to thread cancellation

Open
#249 1 comment 0 reactions 1 assignee View on GitHub

@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
  1. sudo procdump -restrack
System information (e.g., distro, kernel version, etc.)

N/A

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.