Skip to content

Commit 2198932

Browse files
authored
[sanitizer] Downgrade TestPTrace() Reports to VReport (#152350)
Requested in #152072 (comment)
1 parent 54f92c7 commit 2198932

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -413,11 +413,12 @@ static void TestPTrace() {
413413
// internal_fork() on SPARC actually calls __fork(). We can't safely fork,
414414
// because it's possible seccomp has been configured to disallow fork() but
415415
// allow clone().
416-
Report("WARNING: skipping TestPTrace() because this is SPARC\n");
417-
Report(
418-
"If seccomp blocks ptrace, LeakSanitizer may hang without further "
419-
"notice\n");
420-
Report(
416+
VReport(1, "WARNING: skipping TestPTrace() because this is SPARC\n");
417+
VReport(1,
418+
"If seccomp blocks ptrace, LeakSanitizer may hang without further "
419+
"notice\n");
420+
VReport(
421+
1,
421422
"If seccomp does not block ptrace, you can safely ignore this warning\n");
422423
# else
423424
// Heuristic: only check the first time this is called. This is not always
@@ -438,7 +439,7 @@ static void TestPTrace() {
438439
if (pid < 0) {
439440
int rverrno;
440441
if (internal_iserror(pid, &rverrno))
441-
Report("WARNING: TestPTrace() failed to fork (errno %d)\n", rverrno);
442+
VReport(0, "WARNING: TestPTrace() failed to fork (errno %d)\n", rverrno);
442443

443444
// We don't abort the sanitizer - it's still worth letting the sanitizer
444445
// try.

0 commit comments

Comments
 (0)