<div dir="ltr">This one runs with Asan <a href="https://lab.llvm.org/buildbot/#/builders/168">https://lab.llvm.org/buildbot/#/builders/168</a> and does check-llvm<div>However we don't set <span style="font-family:monospace">-DBUILD_SHARED_LIBS=On</span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 15 Nov 2021 at 10:11, Mitch Phillips <<a href="mailto:mitchp@google.com">mitchp@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Ellis,<div><br></div><div>Are you building using GCC as the host compiler? I can't say that building clang with gcc-ASan is a well tested (or well-supported) configuration.</div><div><br></div><div>We do have ASan buildbots that run check-all, but the host compiler is clang: <a href="https://lab.llvm.org/buildbot/#/builders/168/builds/3354/steps/12/logs/stdio" target="_blank">https://lab.llvm.org/buildbot/#/builders/168/builds/3354/steps/12/logs/stdio</a></div><div><br></div><div>Thanks,</div><div>Mitch.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 15, 2021 at 10:08 AM Ellis Hoag via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I recently built with <span style="font-family:monospace">-DLLVM_USE_SANITIZER=Address</span>, ran the LIT tests, and noticed we have at least two tests with memory bugs on main. Here are the commands I ran</div><div><br></div><div><br></div><div><span style="font-family:monospace">$ cmake -GNinja -DLLVM_ENABLE_PROJECTS="clang;" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLLVM_ENABLE_ASSERTIONS=On -DBUILD_SHARED_LIBS=On -DLLVM_USE_SANITIZER=Address ../llvm</span></div><div><span style="font-family:monospace">$ ninja check-llvm</span></div><div><span style="font-family:monospace">...</span></div><div><span style="font-family:monospace">==2157126==ERROR: AddressSanitizer: global-buffer-overflow on address 0x7fb9f778c55f at pc 0x7fba0487419d bp 0x7ffe92a0a230 sp 0x7ffe92a099d8<br>READ of size 1 at 0x7fb9f778c55f thread T0<br>    #0 0x7fba0487419c  (/lib64/libasan.so.5+0xad19c)<br>    #1 0x7fb9e7bcc439 in llvm::StringRef::strLen(char const*) /home/ellishoag/local/repos/llvm-project/llvm/include/llvm/ADT/StringRef.h:86<br>    #2 0x7fb9e7bcc439 in llvm::StringRef::StringRef(char const*) /home/ellishoag/local/repos/llvm-project/llvm/include/llvm/ADT/StringRef.h:108<br>    #3 0x7fb9e7bcc439 in getMnemonic /home/ellishoag/local/repos/llvm-project/llvm/lib/MC/MCAsmStreamer.cpp:159</span></div><div><span style="font-family:monospace">...<br></span></div><div><span style="font-family:monospace">Failed Tests (2):<br>  LLVM :: CodeGen/AArch64/machine-outliner-remarks.ll<br>  LLVM :: CodeGen/X86/x86-shrink-wrapping.ll</span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace"><font face="arial,sans-serif">I think check-clang also has some broken tests. Should we be running these checks in <a href="https://lab.llvm.org/buildbot/" target="_blank">https://lab.llvm.org/buildbot/</a> ?</font> <span style="font-family:arial,sans-serif">I'm not super familiar with this site, but it seems that we have asan builds, but that we don't run check-llvm or check-clang.</span><br></span></div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>
</blockquote></div>