Author: Ebuka Ezike
Date: 2026-01-29T14:24:33Z
New Revision: a482eb793ad4c565482f703b5f9325d1d973eabe

URL: 
https://github.com/llvm/llvm-project/commit/a482eb793ad4c565482f703b5f9325d1d973eabe
DIFF: 
https://github.com/llvm/llvm-project/commit/a482eb793ad4c565482f703b5f9325d1d973eabe.diff

LOG: [lldb-dap] Conditionally check UBSan stack trace on Darwin only (#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

Added: 
    

Modified: 
    
lldb/test/API/tools/lldb-dap/exception/runtime-instruments/TestDAP_runtime_instruments.py

Removed: 
    


################################################################################
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