[Lldb-commits] [lldb] [lldb][test] Add LLDB test for UBSan trap frame recognizer (PR #151231)

Dan Liew via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 30 10:58:45 PDT 2025


================
@@ -0,0 +1,17 @@
+# REQUIRES: clang
+
+# RUN: %clang_host -g -O0 %S/Inputs/ubsan_add_overflow.cpp -o %t.out \
+# RUN: -fsanitize=signed-integer-overflow -fsanitize-trap=signed-integer-overflow
+
+# RUN: %lldb -b -s %s %t.out | FileCheck %s
+
+run
+# CHECK: thread #{{.*}} stop reason = Undefined Behavior Sanitizer: Integer addition overflowed
+
+frame info
+# CHECK: frame #{{.*}}`main at ubsan_add_overflow.cpp
----------------
delcypher wrote:

Shouldn't we be checking we skipped frame 0, and moved to frame 1? This `CHECK` line doesn't appear to do that.

https://github.com/llvm/llvm-project/pull/151231


More information about the lldb-commits mailing list