<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 20, 2014 at 9:34 PM, Greg Fitzgerald <span dir="ltr"><<a href="mailto:gregf@codeaurora.org" target="_blank">gregf@codeaurora.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">> Fast stack unwind should work on ARM for Clang-compiled code, no matter Android or not.<br>
It requires -marm -fno-omit-frame-pointer.<br>
<br>
</div>Hmm, I'm not seeing that.  Zooming in on "TestCases/double-free.cc", I see that it is being compiled with -fno-omit-frame-pointer (and -marm is the default for armv7 targets).  I double-checked and recompiled with those flags tacked onto the end of the clang invocation, but the result is the same:<br>

<br>
  ==12127==ERROR: AddressSanitizer: attempting double-free on 0x41e007f0 in thread T0:<br>
      #0 0x7269b in free compiler-rt/lib/asan/asan_malloc_linux.cc:65<br>
      #1 0x896e3 in main compiler-rt/test/asan/TestCases/double-free.cc:15<br>
    LLVMSymbolizer: error reading file: No such file or directory.<br></blockquote><div><br></div><div>I don't like this line ^^^^ </div><div>(although it may be an unrelated problem)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

      #2 0x40a142cb (/lib/arm-linux-gnueabi/libc.so.6+0x182cb)<br>
<br>
    0x41e007f0 is located 0 bytes inside of 10-byte region [0x41e007f0,0x41e007fa)<br>
    freed by thread T0 here:<br>
      #0 0x7269b in free compiler-rt/lib/asan/asan_malloc_linux.cc:65<br>
<br>
    previously allocated by thread T0 here:<br>
      #0 0x72859 in malloc compiler-rt/lib/asan/asan_malloc_linux.cc:75<br>
<br>
    SUMMARY: AddressSanitizer: double-free compiler-rt/lib/asan/asan_malloc_linux.cc:65 free<br>
    ==12127==ABORTING<br>
<br>
What am I missing?<br>
<br>
<a href="http://reviews.llvm.org/D3814" target="_blank">http://reviews.llvm.org/D3814</a><br>
<br>
<br>
</blockquote></div><br></div></div>