Sysinternals / ProcDump-for-Linux

A Linux version of the ProcDump Sysinternals tool
MIT License
2.91k stars 302 forks source link

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

Open MarioHewardt opened 2 months ago

MarioHewardt commented 2 months ago

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