[compiler-rt] abc394c - [sanitizer] Fix-forward "[sanitizer] Print diagnostic if ptrace syscall fails #151406"
Thurston Dang via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 4 15:51:16 PDT 2025
Author: Thurston Dang
Date: 2025-08-04T22:50:31Z
New Revision: abc394c6576eba790fd5eed02da19527981618bc
URL: https://github.com/llvm/llvm-project/commit/abc394c6576eba790fd5eed02da19527981618bc
DIFF: https://github.com/llvm/llvm-project/commit/abc394c6576eba790fd5eed02da19527981618bc.diff
LOG: [sanitizer] Fix-forward "[sanitizer] Print diagnostic if ptrace syscall fails #151406"
Use internal__exit instead of _exit
Buildbot: https://lab.llvm.org/buildbot/#/builders/174/builds/22276
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp
index 8ce69fd8ea783..d5cf0f14dfeb8 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp
@@ -426,13 +426,13 @@ static void TestPTrace() {
if (internal_iserror(pid, &rverrno)) {
Report("WARNING: TestPTrace() failed to fork (errno %d)\n", rverrno);
}
- _exit(-1);
+ internal__exit(-1);
}
if (pid == 0) {
// Child subprocess
internal_ptrace(PTRACE_ATTACH, 0, nullptr, nullptr);
- _exit(0);
+ internal__exit(0);
} else {
int wstatus;
internal_waitpid(pid, &wstatus, 0);
More information about the llvm-commits
mailing list