Skip to content

Commit

Permalink
[sanitizer] VReport thread status for failed PTRACE_ATTACH (#111901)
Browse files Browse the repository at this point in the history
Such threads can cause false leak reports,
but often it's hard to diagnose the reason of
failed PTRACE_ATTACH. Maybe we can find
a clue from `/proc/*/task/*/status`
  • Loading branch information
vitalybuka authored Oct 10, 2024
1 parent 5deadc6 commit af7fa27
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ bool ThreadSuspender::SuspendAllThreads() {
for (tid_t tid : threads) {
if (SuspendThread(tid))
retry = true;
else
VReport(2, "%llu/status: %s\n", tid, thread_lister.LoadStatus(tid));
}
if (retry)
VReport(1, "SuspendAllThreads retry: %d\n", i);
Expand Down

0 comments on commit af7fa27

Please sign in to comment.