[Lldb-commits] [lldb] [lldb] Fix SIGSEGV in `GetPtraceScope()` in `Procfs.cpp` (PR #142224)
Jordan Rupprecht via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 2 10:36:57 PDT 2025
================
@@ -104,7 +104,7 @@ TEST(Perf, RealLogicalCoreIDs) {
ASSERT_GT((int)cpu_ids->size(), 0) << "We must see at least one core";
}
-TEST(Perf, RealPtraceScope) {
+TEST(Perf, RealPtraceScopeWhenExist) {
----------------
rupprecht wrote:
I think it's a bug that I wrote `if (!*ptrace_scope_file)` instead of `if (!ptrace_scope_file)` -- I don't think there was anything I had in mind when writing it that way, e.g. if we should be able to assume the ptrace scope file exists & is readable. I'm surprised nobody noticed this bug earlier.
https://github.com/llvm/llvm-project/pull/142224
More information about the lldb-commits
mailing list