<div dir="ltr"><div>If your application is mapped at 0x55555...., then that means you are running a PIE binary with ASLR disabled. This can happen if you're running under gdb, which disables ASLR. This particular choice of address space layout conflicted with MSan's shadow memory.</div><div><br></div><div>This problem has been addressed in more recent versions of LLVM: <a href="https://github.com/google/sanitizers/issues/579">https://github.com/google/sanitizers/issues/579</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 4, 2016 at 2:30 AM, Nathan Schagen via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi there,<div><br></div><div>I'm trying to use the memory sanitizer of LLVM 3.3. It's crashing during MSan initialization (__msan::InitShadow). Here's the strace output.</div><div><br></div><div><div>mmap(0x400000000000, 35184372088831, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x400000000000</div><div>--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_ACCERR, si_addr=0x55edf4b36720} ---</div><div>+++ killed by SIGSEGV (core dumped) +++</div></div><div><br></div><div>Because of the -fsanitize=memory option, clang maps all segments in the 0x5555555????? range which is zero'ed out by this mmap. According to the Memory Sanitizer paper, the application is expected between 0x600000000000 and 0x7fffffffffff. Why aren't the application segments mapped there?</div><div><br></div><div>Can anyone shed some light on this?</div><div><br></div><div>I would like to stick with 3.3 if that's possible.</div><div><br></div><div>Thanks alot,</div><div>Nathan</div></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>