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 <[email protected]>
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"])

_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to