[compiler-rt] [compiler-rt] [sanitizer_common] Add a testcase reproducing SIGSEGV in ForEachMappedRegion (PR #208358)

Thurston Dang via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 8 19:22:41 PDT 2026


================
@@ -0,0 +1,57 @@
+// RUN: %clang -g %s -o %t
+// RUN: %clang -g %s -DBUILD_SO -fPIC -o %t-so.so -shared -Wl,--image-base=0x4000000
+// RUN: %run %t 2>&1
+
+// REQUIRES: lld-available
----------------
thurstond wrote:

CI is still failing (https://github.com/llvm/llvm-project/actions/runs/28988142615/job/86023583283?pr=208358).

I believe `// REQUIRES: lld-available` doesn't guarantee lld will be the default linker - you still need to manually specify `-fuse-ld=lld`. OTOH `// REQUIRES: lld` will default to lld.

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


More information about the llvm-commits mailing list