[PATCH] D29586: [lsan] Enable LSan for arm Linux

Maxim Ostapenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 6 09:53:36 PST 2017


m.ostapenko added inline comments.


================
Comment at: test/lsan/TestCases/swapcontext.cc:8
+//
+// UNSUPPORTED: arm
 
----------------
ygribov wrote:
> Deserves an explanation.
The point here is that this test fails on arm with SIGBUS due to **child_stack** is unaligned:

```
bash-3.2# LSAN_OPTIONS=log_pointers=1 /build/llvm/projects/compiler-rt/test/lsan/ARMLsanConfig/TestCases/Output/swapcontext.cc.tmp fooChild stack: 0x7e9ee5f3
Bus error
```
I can align it manually or use **malloc/aligned_alloc** instead of **new[]** to avoid the issue.


Repository:
  rL LLVM

https://reviews.llvm.org/D29586





More information about the llvm-commits mailing list