[Lldb-commits] [lldb] [lldb-dap] Conditionally check UBSan stack trace on Darwin only (PR #178655)
Ebuka Ezike via lldb-commits
lldb-commits at lists.llvm.org
Thu Jan 29 05:51:52 PST 2026
https://github.com/da-viper created https://github.com/llvm/llvm-project/pull/178655
non-darwin platforms may have incorrect stop information location heuristics. Enable assertion once UBSan stopInfo heuristic is updated.
I hit this locally, I don't see it hitting any CI bot but should, Mostly likely the CI linux bots may not have `compiler_rt` run time enabled.
see https://github.com/llvm/llvm-project/pull/177964#discussion_r2732271531
>From a5ec01b64fb733e2b84a09f31dbd5fbbd36b4bdf Mon Sep 17 00:00:00 2001
From: Ebuka Ezike <yerimyah1 at gmail.com>
Date: Thu, 29 Jan 2026 13:44:40 +0000
Subject: [PATCH] [lldb-dap] Conditionally check UBSan stack trace on Darwin
only
non-darwin platforms may have incorrect stop information location
heuristics. Enable assertion once UBSan stopInfo heuristic is updated.
---
.../runtime-instruments/TestDAP_runtime_instruments.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lldb/test/API/tools/lldb-dap/exception/runtime-instruments/TestDAP_runtime_instruments.py b/lldb/test/API/tools/lldb-dap/exception/runtime-instruments/TestDAP_runtime_instruments.py
index 3fa7aca91a926..ffc02c9b60fd7 100644
--- a/lldb/test/API/tools/lldb-dap/exception/runtime-instruments/TestDAP_runtime_instruments.py
+++ b/lldb/test/API/tools/lldb-dap/exception/runtime-instruments/TestDAP_runtime_instruments.py
@@ -22,4 +22,8 @@ def test_ubsan(self):
self.assertEqual(exceptionInfo["breakMode"], "always")
self.assertRegex(exceptionInfo["description"], r"Out of bounds index")
self.assertEqual(exceptionInfo["exceptionId"], "runtime-instrumentation")
- self.assertIn("main.c", exceptionInfo["details"]["stackTrace"])
+
+ # FIXME: Check on non macOS platform the stop infomation location heuristic
+ # may be wrong. enable when we have updated Ubsan stopInfo heuristic.
+ if self.platformIsDarwin():
+ self.assertIn("main.c", exceptionInfo["details"]["stackTrace"])
More information about the lldb-commits
mailing list