<div dir="ltr">Hi Bill:<div><br></div><div>Not sure if it was intentional, but the old builds set CC, CXX, and LD_LIBRARY_PATH explicitly, but the new ones don't.  Also, you seem to be linking against gcc 7.2 libs above, but building with gcc 6.4.1.<br></div><div><br></div><div>hth...</div><div>don</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 12, 2017 at 6:15 PM, Bill Seurer 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">I updated one of my powerpc64le llvm test systems to Fedora 25 and I started getting a whole bunch of sanitizer test case failures.  I tried testing some earlier revisions on the new OS that had worked fine under the old but they generate the same errors now so it isn't any changes in llvm.<br>
<br>
There are two different errors:<br>
<br>
FATAL: ThreadSanitizer: unsupported VMA range<br>
FATAL: Found 47 - Supported 44 and 46<br>
<br>
and<br>
<br>
FATAL: Code 0x00010eddf660 is out of application range. Non-PIE build?<br>
FATAL: MemorySanitizer can not mmap the shadow memory.<br>
FATAL: Make sure to compile with -fPIE and to link with -pie.<br>
FATAL: Disabling ASLR is known to cause this error.<br>
FATAL: If running under GDB, try 'set disable-randomization off'.<br>
<br>
Obviously something changed when I updated the OS but I am not sure how to fix it.  The compilation options didn't change and ASLR isn't disabled.  I used the same gcc compiler to build llvm under the different OS releases.<br>
<br>
The first full test after the OS update is here: <a href="http://lab.llvm.org:8011/builders/sanitizer-ppc64le-linux/builds/3636" rel="noreferrer" target="_blank">http://lab.llvm.org:8011/build<wbr>ers/sanitizer-ppc64le-linux/<wbr>builds/3636</a><br>
<br>
Any ideas?  Thanks!<br>
<br>
<br>
Here's the full output from one of the failures:<br>
<br>
FAIL: MemorySanitizer-powerpc64le :: Linux/mallinfo.cc (34091 of 34964)<br>
******************** TEST 'MemorySanitizer-powerpc64le :: Linux/mallinfo.cc' FAILED ********************<br>
Script:<br>
--<br>
/home/seurer/llvm/build/llvm-t<wbr>est/./bin/clang --driver-mode=g++ -fsanitize=memory -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -m64 -fno-function-sections -gline-tables-only -O0 -g /home/seurer/llvm/llvm-test/pr<wbr>ojects/compiler-rt/test/msan/<wbr>Linux/mallinfo.cc -o /home/seurer/llvm/build/llvm-t<wbr>est/projects/compiler-rt/test/<wbr>msan/POWERPC64LEConfig/Linux/<wbr>Output/mallinfo.cc.tmp && /home/seurer/llvm/build/llvm-t<wbr>est/projects/compiler-rt/test/<wbr>msan/POWERPC64LEConfig/Linux/<wbr>Output/mallinfo.cc.tmp<br>
--<br>
Exit Code: 77<br>
<br>
Command Output (stderr):<br>
--<br>
FATAL: Code 0x00010eddf660 is out of application range. Non-PIE build?<br>
FATAL: MemorySanitizer can not mmap the shadow memory.<br>
FATAL: Make sure to compile with -fPIE and to link with -pie.<br>
FATAL: Disabling ASLR is known to cause this error.<br>
FATAL: If running under GDB, try 'set disable-randomization off'.<br>
==6632==Process memory map follows:<br>
        0x00010ed90000-0x00010eea0000 /home/seurer/llvm/build/llvm-t<wbr>est/projects/compiler-rt/test/<wbr>msan/POWERPC64LEConfig/Linux/<wbr>Output/mallinfo.cc.tmp<br>
        0x00010eea0000-0x00010eeb0000 /home/seurer/llvm/build/llvm-t<wbr>est/projects/compiler-rt/test/<wbr>msan/POWERPC64LEConfig/Linux/<wbr>Output/mallinfo.cc.tmp<br>
        0x00010eeb0000-0x00010eec0000 /home/seurer/llvm/build/llvm-t<wbr>est/projects/compiler-rt/test/<wbr>msan/POWERPC64LEConfig/Linux/<wbr>Output/mallinfo.cc.tmp<br>
        0x00010eec0000-0x0001113a0000   <br>
        0x7fff8abe0000-0x7fff8af80000   <br>
        0x7fff8af80000-0x7fff8b160000   /usr/lib64/<a href="http://libc-2.24.so" rel="noreferrer" target="_blank">libc-2.24.so</a><br>
        0x7fff8b160000-0x7fff8b170000   /usr/lib64/<a href="http://libc-2.24.so" rel="noreferrer" target="_blank">libc-2.24.so</a><br>
        0x7fff8b170000-0x7fff8b180000   /usr/lib64/<a href="http://libc-2.24.so" rel="noreferrer" target="_blank">libc-2.24.so</a><br>
        0x7fff8b180000-0x7fff8b1a0000 /home/seurer/gcc/install/gcc-7<wbr>.2.0/lib64/libgcc_s.so.1<br>
        0x7fff8b1a0000-0x7fff8b1b0000 /home/seurer/gcc/install/gcc-7<wbr>.2.0/lib64/libgcc_s.so.1<br>
        0x7fff8b1b0000-0x7fff8b1c0000 /home/seurer/gcc/install/gcc-7<wbr>.2.0/lib64/libgcc_s.so.1<br>
        0x7fff8b1c0000-0x7fff8b1d0000   /usr/lib64/<a href="http://libdl-2.24.so" rel="noreferrer" target="_blank">libdl-2.24.so</a><br>
        0x7fff8b1d0000-0x7fff8b1e0000   /usr/lib64/<a href="http://libdl-2.24.so" rel="noreferrer" target="_blank">libdl-2.24.so</a><br>
        0x7fff8b1e0000-0x7fff8b1f0000   <br>
        0x7fff8b1f0000-0x7fff8b200000   /usr/lib64/<a href="http://librt-2.24.so" rel="noreferrer" target="_blank">librt-2.24.so</a><br>
        0x7fff8b200000-0x7fff8b210000   /usr/lib64/<a href="http://librt-2.24.so" rel="noreferrer" target="_blank">librt-2.24.so</a><br>
        0x7fff8b210000-0x7fff8b220000   /usr/lib64/<a href="http://librt-2.24.so" rel="noreferrer" target="_blank">librt-2.24.so</a><br>
        0x7fff8b220000-0x7fff8b240000   /usr/lib64/<a href="http://libpthread-2.24.so" rel="noreferrer" target="_blank">libpthread-2.24.so</a><br>
        0x7fff8b240000-0x7fff8b250000   /usr/lib64/<a href="http://libpthread-2.24.so" rel="noreferrer" target="_blank">libpthread-2.24.so</a><br>
        0x7fff8b250000-0x7fff8b260000   /usr/lib64/<a href="http://libpthread-2.24.so" rel="noreferrer" target="_blank">libpthread-2.24.so</a><br>
        0x7fff8b260000-0x7fff8b330000   /usr/lib64/<a href="http://libm-2.24.so" rel="noreferrer" target="_blank">libm-2.24.so</a><br>
        0x7fff8b330000-0x7fff8b340000   /usr/lib64/<a href="http://libm-2.24.so" rel="noreferrer" target="_blank">libm-2.24.so</a><br>
        0x7fff8b340000-0x7fff8b350000   /usr/lib64/<a href="http://libm-2.24.so" rel="noreferrer" target="_blank">libm-2.24.so</a><br>
        0x7fff8b350000-0x7fff8b360000   <br>
        0x7fff8b360000-0x7fff8b590000 /home/seurer/gcc/install/gcc-7<wbr>.2.0/lib64/libstdc++.so.6.0.24<br>
        0x7fff8b590000-0x7fff8b5a0000 /home/seurer/gcc/install/gcc-7<wbr>.2.0/lib64/libstdc++.so.6.0.24<br>
        0x7fff8b5a0000-0x7fff8b5b0000 /home/seurer/gcc/install/gcc-7<wbr>.2.0/lib64/libstdc++.so.6.0.24<br>
        0x7fff8b5b0000-0x7fff8b5c0000 /home/seurer/gcc/install/gcc-7<wbr>.2.0/lib64/libstdc++.so.6.0.24<br>
        0x7fff8b5c0000-0x7fff8b5e0000   [vdso]<br>
        0x7fff8b5e0000-0x7fff8b620000   /usr/lib64/<a href="http://ld-2.24.so" rel="noreferrer" target="_blank">ld-2.24.so</a><br>
        0x7fff8b620000-0x7fff8b630000   /usr/lib64/<a href="http://ld-2.24.so" rel="noreferrer" target="_blank">ld-2.24.so</a><br>
        0x7fff8b630000-0x7fff8b640000   /usr/lib64/<a href="http://ld-2.24.so" rel="noreferrer" target="_blank">ld-2.24.so</a><br>
        0x7fffcfde0000-0x7fffcfe10000   [stack]<br>
==6632==End of process memory map.<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
<br>
-Bill Seurer<br>
<br>
______________________________<wbr>_________________<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="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
</font></span></blockquote></div><br></div>