<div dir="ltr">This seems problematic in general - we have a bot that is failing due to a particular test. Is this patch necessary for correctness somewhere else? Can it be reverted until we can figure out what's going on?<div><br></div><div>-eric</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jan 24, 2017 at 11:29 AM Kostya Serebryany via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg">Hi Bill, <div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">thanks for the report. </div><div class="gmail_msg">Unfortunately, I don't have anyone working on the PPC side at the moment and the test passes on x86. </div><div class="gmail_msg">So, the only thing I can propose now is to disable this test on PPC. </div><div class="gmail_msg">(Maybe it's not that bad, I was going to kill at least some of the related code this year). </div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">--kcc </div></div><div class="gmail_extra gmail_msg"><br class="gmail_msg"><div class="gmail_quote gmail_msg">On Tue, Jan 24, 2017 at 8:44 AM, Bill Seurer <span dir="ltr" class="gmail_msg"><<a href="mailto:seurer@linux.vnet.ibm.com" class="gmail_msg" target="_blank">seurer@linux.vnet.ibm.com</a>></span> wrote:<br class="gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This broke the powerpc sanitizers.<br class="gmail_msg">
<br class="gmail_msg">
updatellvm 292861<br class="gmail_msg">
ninja<br class="gmail_msg">
ninja check-asan<br class="gmail_msg">
Testing Time: 29.65s<br class="gmail_msg">
Expected Passes : 457<br class="gmail_msg">
Expected Failures : 1<br class="gmail_msg">
Unsupported Tests : 157<br class="gmail_msg">
<br class="gmail_msg">
updatellvm 292862<br class="gmail_msg">
ninja<br class="gmail_msg">
ninja check-asan<br class="gmail_msg">
<br class="gmail_msg">
FAIL: AddressSanitizer-powerpc64le-linux :: TestCases/Posix/coverage-direct.cc (528 of 615)<br class="gmail_msg">
******************** TEST 'AddressSanitizer-powerpc64le-linux :: TestCases/Posix/coverage-direct.cc' FAILED ********************<br class="gmail_msg">
Script:<br class="gmail_msg">
--<br class="gmail_msg">
/home/seurer/llvm/build/llvm-test2/./bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -m64 -fsanitize-coverage=func -DSHARED /home/seurer/llvm/llvm-test2/projects/compiler-rt/test/asan/TestCases/Posix/coverage-direct.cc -shared -o /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/lib$(basename /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct.cc.tmp).dynamic.so -fPIC<br class="gmail_msg">
/home/seurer/llvm/build/llvm-test2/./bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -m64 -fsanitize-coverage=func /home/seurer/llvm/llvm-test2/projects/compiler-rt/test/asan/TestCases/Posix/coverage-direct.cc -ldl -o /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct.cc.tmp<br class="gmail_msg">
rm -rf /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct<br class="gmail_msg">
mkdir -p /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/normal<br class="gmail_msg">
env ASAN_OPTIONS=coverage=1:coverage_direct=0:coverage_dir=/home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/normal:verbosity=1 <br class="gmail_msg">
/home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct.cc.tmp /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/lib$(basename /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct.cc.tmp).dynamic.so<br class="gmail_msg">
/usr/bin/python2.7 /home/seurer/llvm/llvm-test2/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py print /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/normal/*.sancov >/home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/normal/out.txt<br class="gmail_msg">
mkdir -p /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/direct<br class="gmail_msg">
env ASAN_OPTIONS=coverage=1:coverage_direct=1:coverage_dir=/home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/direct:verbosity=1 <br class="gmail_msg">
/home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct.cc.tmp /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/lib$(basename /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct.cc.tmp).dynamic.so<br class="gmail_msg">
cd /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/direct<br class="gmail_msg">
/usr/bin/python2.7 /home/seurer/llvm/llvm-test2/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py rawunpack *.sancov.raw<br class="gmail_msg">
/usr/bin/python2.7 /home/seurer/llvm/llvm-test2/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py print *.sancov >out.txt<br class="gmail_msg">
cd ../..<br class="gmail_msg">
diff -u coverage-direct/normal/out.txt coverage-direct/direct/out.txt<br class="gmail_msg">
/home/seurer/llvm/build/llvm-test2/./bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -m64 -fsanitize-coverage=bb -DSHARED /home/seurer/llvm/llvm-test2/projects/compiler-rt/test/asan/TestCases/Posix/coverage-direct.cc -shared -o /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/lib$(basename /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct.cc.tmp).dynamic.so -fPIC<br class="gmail_msg">
/home/seurer/llvm/build/llvm-test2/./bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -m64 -fsanitize-coverage=bb -DSO_DIR=\"/home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output\" /home/seurer/llvm/llvm-test2/projects/compiler-rt/test/asan/TestCases/Posix/coverage-direct.cc -ldl -o /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct.cc.tmp<br class="gmail_msg">
rm -rf /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct<br class="gmail_msg">
mkdir -p /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/normal<br class="gmail_msg">
env ASAN_OPTIONS=coverage=1:coverage_direct=0:coverage_dir=/home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/normal:verbosity=1 <br class="gmail_msg">
/home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct.cc.tmp /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/lib$(basename /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct.cc.tmp).dynamic.so<br class="gmail_msg">
/usr/bin/python2.7 /home/seurer/llvm/llvm-test2/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py print /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/normal/*.sancov >/home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/normal/out.txt<br class="gmail_msg">
mkdir -p /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/direct<br class="gmail_msg">
env ASAN_OPTIONS=coverage=1:coverage_direct=1:coverage_dir=/home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/direct:verbosity=1 <br class="gmail_msg">
/home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct.cc.tmp /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/lib$(basename /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct.cc.tmp).dynamic.so<br class="gmail_msg">
cd /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/direct<br class="gmail_msg">
/usr/bin/python2.7 /home/seurer/llvm/llvm-test2/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py rawunpack *.sancov.raw<br class="gmail_msg">
/usr/bin/python2.7 /home/seurer/llvm/llvm-test2/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py print *.sancov >out.txt<br class="gmail_msg">
cd ../..<br class="gmail_msg">
diff -u coverage-direct/normal/out.txt coverage-direct/direct/out.txt<br class="gmail_msg">
/home/seurer/llvm/build/llvm-test2/./bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -m64 -fsanitize-coverage=edge -DSHARED /home/seurer/llvm/llvm-test2/projects/compiler-rt/test/asan/TestCases/Posix/coverage-direct.cc -shared -o /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/lib$(basename /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct.cc.tmp).dynamic.so -fPIC<br class="gmail_msg">
/home/seurer/llvm/build/llvm-test2/./bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -m64 -fsanitize-coverage=edge -DSO_DIR=\"/home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output\" /home/seurer/llvm/llvm-test2/projects/compiler-rt/test/asan/TestCases/Posix/coverage-direct.cc -ldl -o /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct.cc.tmp<br class="gmail_msg">
rm -rf /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct<br class="gmail_msg">
mkdir -p /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/normal<br class="gmail_msg">
env ASAN_OPTIONS=coverage=1:coverage_direct=0:coverage_dir=/home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/normal:verbosity=1 <br class="gmail_msg">
/home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct.cc.tmp /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/lib$(basename /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct.cc.tmp).dynamic.so<br class="gmail_msg">
/usr/bin/python2.7 /home/seurer/llvm/llvm-test2/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py print /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/normal/*.sancov >/home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/normal/out.txt<br class="gmail_msg">
mkdir -p /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/direct<br class="gmail_msg">
env ASAN_OPTIONS=coverage=1:coverage_direct=1:coverage_dir=/home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/direct:verbosity=1 <br class="gmail_msg">
/home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct.cc.tmp /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/lib$(basename /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct.cc.tmp).dynamic.so<br class="gmail_msg">
cd /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/direct<br class="gmail_msg">
/usr/bin/python2.7 /home/seurer/llvm/llvm-test2/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py rawunpack *.sancov.raw<br class="gmail_msg">
/usr/bin/python2.7 /home/seurer/llvm/llvm-test2/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py print *.sancov >out.txt<br class="gmail_msg">
cd ../..<br class="gmail_msg">
diff -u coverage-direct/normal/out.txt coverage-direct/direct/out.txt<br class="gmail_msg">
--<br class="gmail_msg">
Exit Code: 1<br class="gmail_msg">
<br class="gmail_msg">
Command Output (stdout):<br class="gmail_msg">
--<br class="gmail_msg">
bar<br class="gmail_msg">
bar<br class="gmail_msg">
bar<br class="gmail_msg">
bar<br class="gmail_msg">
--- coverage-direct/normal/out.txt 2017-01-24 10:20:41.258917000 -0600<br class="gmail_msg">
+++ coverage-direct/direct/out.txt 2017-01-24 10:20:41.638917000 -0600<br class="gmail_msg">
@@ -1 +1,2 @@<br class="gmail_msg">
0x10128bb0<br class="gmail_msg">
+0x10128bb0<br class="gmail_msg">
<br class="gmail_msg">
--<br class="gmail_msg">
Command Output (stderr):<br class="gmail_msg">
--<br class="gmail_msg">
==18701==AddressSanitizer: failed to intercept '__isoc99_printf'<br class="gmail_msg">
==18701==AddressSanitizer: failed to intercept '__isoc99_sprintf'<br class="gmail_msg">
==18701==AddressSanitizer: failed to intercept '__isoc99_snprintf'<br class="gmail_msg">
==18701==AddressSanitizer: failed to intercept '__isoc99_fprintf'<br class="gmail_msg">
==18701==AddressSanitizer: failed to intercept '__isoc99_vprintf'<br class="gmail_msg">
==18701==AddressSanitizer: failed to intercept '__isoc99_vsprintf'<br class="gmail_msg">
==18701==AddressSanitizer: failed to intercept '__isoc99_vsnprintf'<br class="gmail_msg">
==18701==AddressSanitizer: failed to intercept '__isoc99_vfprintf'<br class="gmail_msg">
==18701==AddressSanitizer: libc interceptors initialized<br class="gmail_msg">
|| `[0x0a0000000000, 0x3fffffffffff]` || HighMem ||<br class="gmail_msg">
|| `[0x034000000000, 0x09ffffffffff]` || HighShadow ||<br class="gmail_msg">
|| `[0x024000000000, 0x033fffffffff]` || ShadowGap ||<br class="gmail_msg">
|| `[0x020000000000, 0x023fffffffff]` || LowShadow ||<br class="gmail_msg">
|| `[0x000000000000, 0x01ffffffffff]` || LowMem ||<br class="gmail_msg">
MemToShadow(shadow): 0x024000000000 0x0247ffffffff 0x026800000000 0x033fffffffff<br class="gmail_msg">
redzone=16<br class="gmail_msg">
max_redzone=2048<br class="gmail_msg">
quarantine_size_mb=256M<br class="gmail_msg">
thread_local_quarantine_size_kb=1024K<br class="gmail_msg">
malloc_context_size=30<br class="gmail_msg">
SHADOW_SCALE: 3<br class="gmail_msg">
SHADOW_GRANULARITY: 8<br class="gmail_msg">
SHADOW_OFFSET: 0x20000000000<br class="gmail_msg">
==18701==Installed the sigaction for signal 11<br class="gmail_msg">
==18701==Installed the sigaction for signal 7<br class="gmail_msg">
==18701==Installed the sigaction for signal 8<br class="gmail_msg">
==18701==T0: stack [0x3fffdd8c0000,0x3fffde0c0000) size 0x800000; local=0x3fffde0ba450<br class="gmail_msg">
==18701==AddressSanitizer Init done<br class="gmail_msg">
PID: 18701<br class="gmail_msg">
==18701== CovDump: /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/normal/coverage-direct.cc.tmp.18701.sancov: 1 PCs written<br class="gmail_msg">
==18701== CovDump: /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/normal/libcoverage-<a href="http://direct.cc.tmp.dynamic.so" class="gmail_msg" target="_blank">direct.cc.tmp.dynamic.so</a>.18701.sancov: 1 PCs written<br class="gmail_msg">
/home/seurer/llvm/llvm-test2/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py: read 1 64-bit PCs from /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/normal/coverage-direct.cc.tmp.18701.sancov<br class="gmail_msg">
/home/seurer/llvm/llvm-test2/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py: read 1 64-bit PCs from /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/normal/libcoverage-<a href="http://direct.cc.tmp.dynamic.so" class="gmail_msg" target="_blank">direct.cc.tmp.dynamic.so</a>.18701.sancov<br class="gmail_msg">
/home/seurer/llvm/llvm-test2/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py: 2 files merged; 2 PCs total<br class="gmail_msg">
==19909==AddressSanitizer: failed to intercept '__isoc99_printf'<br class="gmail_msg">
==19909==AddressSanitizer: failed to intercept '__isoc99_sprintf'<br class="gmail_msg">
==19909==AddressSanitizer: failed to intercept '__isoc99_snprintf'<br class="gmail_msg">
==19909==AddressSanitizer: failed to intercept '__isoc99_fprintf'<br class="gmail_msg">
==19909==AddressSanitizer: failed to intercept '__isoc99_vprintf'<br class="gmail_msg">
==19909==AddressSanitizer: failed to intercept '__isoc99_vsprintf'<br class="gmail_msg">
==19909==AddressSanitizer: failed to intercept '__isoc99_vsnprintf'<br class="gmail_msg">
==19909==AddressSanitizer: failed to intercept '__isoc99_vfprintf'<br class="gmail_msg">
==19909==AddressSanitizer: libc interceptors initialized<br class="gmail_msg">
|| `[0x0a0000000000, 0x3fffffffffff]` || HighMem ||<br class="gmail_msg">
|| `[0x034000000000, 0x09ffffffffff]` || HighShadow ||<br class="gmail_msg">
|| `[0x024000000000, 0x033fffffffff]` || ShadowGap ||<br class="gmail_msg">
|| `[0x020000000000, 0x023fffffffff]` || LowShadow ||<br class="gmail_msg">
|| `[0x000000000000, 0x01ffffffffff]` || LowMem ||<br class="gmail_msg">
MemToShadow(shadow): 0x024000000000 0x0247ffffffff 0x026800000000 0x033fffffffff<br class="gmail_msg">
redzone=16<br class="gmail_msg">
max_redzone=2048<br class="gmail_msg">
quarantine_size_mb=256M<br class="gmail_msg">
thread_local_quarantine_size_kb=1024K<br class="gmail_msg">
malloc_context_size=30<br class="gmail_msg">
SHADOW_SCALE: 3<br class="gmail_msg">
SHADOW_GRANULARITY: 8<br class="gmail_msg">
SHADOW_OFFSET: 0x20000000000<br class="gmail_msg">
==19909==Installed the sigaction for signal 11<br class="gmail_msg">
==19909==Installed the sigaction for signal 7<br class="gmail_msg">
==19909==Installed the sigaction for signal 8<br class="gmail_msg">
==19909==T0: stack [0x3fffe86a0000,0x3fffe8ea0000) size 0x800000; local=0x3fffe8e91da0<br class="gmail_msg">
==19909==AddressSanitizer Init done<br class="gmail_msg">
PID: 19909<br class="gmail_msg">
/home/seurer/llvm/llvm-test2/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py: reading map 19909.sancov.map<br class="gmail_msg">
/home/seurer/llvm/llvm-test2/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py: unpacking 19909.sancov.raw<br class="gmail_msg">
/home/seurer/llvm/llvm-test2/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py: writing 1 PCs to coverage-direct.cc.tmp.19909.sancov<br class="gmail_msg">
/home/seurer/llvm/llvm-test2/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py: writing 1 PCs to libcoverage-direct.cc.tmp.dynamic.so.19909.sancov<br class="gmail_msg">
/home/seurer/llvm/llvm-test2/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py: read 1 64-bit PCs from coverage-direct.cc.tmp.19909.sancov<br class="gmail_msg">
/home/seurer/llvm/llvm-test2/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py: read 1 64-bit PCs from libcoverage-direct.cc.tmp.dynamic.so.19909.sancov<br class="gmail_msg">
/home/seurer/llvm/llvm-test2/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py: 2 files merged; 2 PCs total<br class="gmail_msg">
==27096==AddressSanitizer: failed to intercept '__isoc99_printf'<br class="gmail_msg">
==27096==AddressSanitizer: failed to intercept '__isoc99_sprintf'<br class="gmail_msg">
==27096==AddressSanitizer: failed to intercept '__isoc99_snprintf'<br class="gmail_msg">
==27096==AddressSanitizer: failed to intercept '__isoc99_fprintf'<br class="gmail_msg">
==27096==AddressSanitizer: failed to intercept '__isoc99_vprintf'<br class="gmail_msg">
==27096==AddressSanitizer: failed to intercept '__isoc99_vsprintf'<br class="gmail_msg">
==27096==AddressSanitizer: failed to intercept '__isoc99_vsnprintf'<br class="gmail_msg">
==27096==AddressSanitizer: failed to intercept '__isoc99_vfprintf'<br class="gmail_msg">
==27096==AddressSanitizer: libc interceptors initialized<br class="gmail_msg">
|| `[0x0a0000000000, 0x3fffffffffff]` || HighMem ||<br class="gmail_msg">
|| `[0x034000000000, 0x09ffffffffff]` || HighShadow ||<br class="gmail_msg">
|| `[0x024000000000, 0x033fffffffff]` || ShadowGap ||<br class="gmail_msg">
|| `[0x020000000000, 0x023fffffffff]` || LowShadow ||<br class="gmail_msg">
|| `[0x000000000000, 0x01ffffffffff]` || LowMem ||<br class="gmail_msg">
MemToShadow(shadow): 0x024000000000 0x0247ffffffff 0x026800000000 0x033fffffffff<br class="gmail_msg">
redzone=16<br class="gmail_msg">
max_redzone=2048<br class="gmail_msg">
quarantine_size_mb=256M<br class="gmail_msg">
thread_local_quarantine_size_kb=1024K<br class="gmail_msg">
malloc_context_size=30<br class="gmail_msg">
SHADOW_SCALE: 3<br class="gmail_msg">
SHADOW_GRANULARITY: 8<br class="gmail_msg">
SHADOW_OFFSET: 0x20000000000<br class="gmail_msg">
==27096==Installed the sigaction for signal 11<br class="gmail_msg">
==27096==Installed the sigaction for signal 7<br class="gmail_msg">
==27096==Installed the sigaction for signal 8<br class="gmail_msg">
==27096==T0: stack [0x3ffffe510000,0x3ffffed10000) size 0x800000; local=0x3ffffed04100<br class="gmail_msg">
==27096==AddressSanitizer Init done<br class="gmail_msg">
PID: 27096<br class="gmail_msg">
==27096== CovDump: /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/normal/coverage-direct.cc.tmp.27096.sancov: 1 PCs written<br class="gmail_msg">
==27096== CovDump: /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/normal/libcoverage-<a href="http://direct.cc.tmp.dynamic.so" class="gmail_msg" target="_blank">direct.cc.tmp.dynamic.so</a>.27096.sancov: 1 PCs written<br class="gmail_msg">
/home/seurer/llvm/llvm-test2/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py: read 1 64-bit PCs from /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/normal/coverage-direct.cc.tmp.27096.sancov<br class="gmail_msg">
/home/seurer/llvm/llvm-test2/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py: read 1 64-bit PCs from /home/seurer/llvm/build/llvm-test2/projects/compiler-rt/test/asan/POWERPC64LELinuxConfig/TestCases/Posix/Output/coverage-direct/normal/libcoverage-<a href="http://direct.cc.tmp.dynamic.so" class="gmail_msg" target="_blank">direct.cc.tmp.dynamic.so</a>.27096.sancov<br class="gmail_msg">
/home/seurer/llvm/llvm-test2/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py: 2 files merged; 1 PCs total<br class="gmail_msg">
==27521==AddressSanitizer: failed to intercept '__isoc99_printf'<br class="gmail_msg">
==27521==AddressSanitizer: failed to intercept '__isoc99_sprintf'<br class="gmail_msg">
==27521==AddressSanitizer: failed to intercept '__isoc99_snprintf'<br class="gmail_msg">
==27521==AddressSanitizer: failed to intercept '__isoc99_fprintf'<br class="gmail_msg">
==27521==AddressSanitizer: failed to intercept '__isoc99_vprintf'<br class="gmail_msg">
==27521==AddressSanitizer: failed to intercept '__isoc99_vsprintf'<br class="gmail_msg">
==27521==AddressSanitizer: failed to intercept '__isoc99_vsnprintf'<br class="gmail_msg">
==27521==AddressSanitizer: failed to intercept '__isoc99_vfprintf'<br class="gmail_msg">
==27521==AddressSanitizer: libc interceptors initialized<br class="gmail_msg">
|| `[0x0a0000000000, 0x3fffffffffff]` || HighMem ||<br class="gmail_msg">
|| `[0x034000000000, 0x09ffffffffff]` || HighShadow ||<br class="gmail_msg">
|| `[0x024000000000, 0x033fffffffff]` || ShadowGap ||<br class="gmail_msg">
|| `[0x020000000000, 0x023fffffffff]` || LowShadow ||<br class="gmail_msg">
|| `[0x000000000000, 0x01ffffffffff]` || LowMem ||<br class="gmail_msg">
MemToShadow(shadow): 0x024000000000 0x0247ffffffff 0x026800000000 0x033fffffffff<br class="gmail_msg">
redzone=16<br class="gmail_msg">
max_redzone=2048<br class="gmail_msg">
quarantine_size_mb=256M<br class="gmail_msg">
thread_local_quarantine_size_kb=1024K<br class="gmail_msg">
malloc_context_size=30<br class="gmail_msg">
SHADOW_SCALE: 3<br class="gmail_msg">
SHADOW_GRANULARITY: 8<br class="gmail_msg">
SHADOW_OFFSET: 0x20000000000<br class="gmail_msg">
==27521==Installed the sigaction for signal 11<br class="gmail_msg">
==27521==Installed the sigaction for signal 7<br class="gmail_msg">
==27521==Installed the sigaction for signal 8<br class="gmail_msg">
==27521==T0: stack [0x3fffcdaf0000,0x3fffce2f0000) size 0x800000; local=0x3fffce2e5b00<br class="gmail_msg">
==27521==AddressSanitizer Init done<br class="gmail_msg">
PID: 27521<br class="gmail_msg">
/home/seurer/llvm/llvm-test2/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py: reading map 27521.sancov.map<br class="gmail_msg">
/home/seurer/llvm/llvm-test2/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py: unpacking 27521.sancov.raw<br class="gmail_msg">
/home/seurer/llvm/llvm-test2/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py: writing 2 PCs to coverage-direct.cc.tmp.27521.sancov<br class="gmail_msg">
/home/seurer/llvm/llvm-test2/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py: read 2 64-bit PCs from coverage-direct.cc.tmp.27521.sancov<br class="gmail_msg">
/home/seurer/llvm/llvm-test2/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py: 1 file merged; 2 PCs total<br class="gmail_msg">
<br class="gmail_msg">
--<br class="gmail_msg">
<br class="gmail_msg">
********************<div class="m_-5206130622111796024HOEnZb gmail_msg"><div class="m_-5206130622111796024h5 gmail_msg"><br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
On 01/23/2017 06:57 PM, Kostya Serebryany via llvm-commits wrote:<br class="gmail_msg">
<blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Author: kcc<br class="gmail_msg">
Date: Mon Jan 23 18:57:31 2017<br class="gmail_msg">
New Revision: 292862<br class="gmail_msg">
<br class="gmail_msg">
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=292862&view=rev" rel="noreferrer" class="gmail_msg" target="_blank">http://llvm.org/viewvc/llvm-project?rev=292862&view=rev</a><br class="gmail_msg">
Log:<br class="gmail_msg">
[sanitizer-coverage] emit __sanitizer_cov_trace_pc_guard w/o a preceding 'if' by default. Update the docs, also add deprecation notes around other parts of sanitizer coverage<br class="gmail_msg">
<br class="gmail_msg">
Modified:<br class="gmail_msg">
llvm/trunk/lib/Transforms/Instrumentation/SanitizerCoverage.cpp<br class="gmail_msg">
llvm/trunk/test/Instrumentation/SanitizerCoverage/coverage.ll<br class="gmail_msg">
llvm/trunk/test/Instrumentation/SanitizerCoverage/coverage2-dbg.ll<br class="gmail_msg">
<br class="gmail_msg">
Modified: llvm/trunk/lib/Transforms/Instrumentation/SanitizerCoverage.cpp<br class="gmail_msg">
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/SanitizerCoverage.cpp?rev=292862&r1=292861&r2=292862&view=diff" rel="noreferrer" class="gmail_msg" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/SanitizerCoverage.cpp?rev=292862&r1=292861&r2=292862&view=diff</a><br class="gmail_msg">
==============================================================================<br class="gmail_msg">
--- llvm/trunk/lib/Transforms/Instrumentation/SanitizerCoverage.cpp (original)<br class="gmail_msg">
+++ llvm/trunk/lib/Transforms/Instrumentation/SanitizerCoverage.cpp Mon Jan 23 18:57:31 2017<br class="gmail_msg">
@@ -95,7 +95,7 @@ static cl::opt<unsigned> ClCoverageBlock<br class="gmail_msg">
"sanitizer-coverage-block-threshold",<br class="gmail_msg">
cl::desc("Use a callback with a guard check inside it if there are"<br class="gmail_msg">
" more than this number of blocks."),<br class="gmail_msg">
- cl::Hidden, cl::init(500));<br class="gmail_msg">
+ cl::Hidden, cl::init(0));<br class="gmail_msg">
<br class="gmail_msg">
static cl::opt<bool><br class="gmail_msg">
ClExperimentalTracing("sanitizer-coverage-experimental-tracing",<br class="gmail_msg">
<br class="gmail_msg">
Modified: llvm/trunk/test/Instrumentation/SanitizerCoverage/coverage.ll<br class="gmail_msg">
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Instrumentation/SanitizerCoverage/coverage.ll?rev=292862&r1=292861&r2=292862&view=diff" rel="noreferrer" class="gmail_msg" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Instrumentation/SanitizerCoverage/coverage.ll?rev=292862&r1=292861&r2=292862&view=diff</a><br class="gmail_msg">
==============================================================================<br class="gmail_msg">
--- llvm/trunk/test/Instrumentation/SanitizerCoverage/coverage.ll (original)<br class="gmail_msg">
+++ llvm/trunk/test/Instrumentation/SanitizerCoverage/coverage.ll Mon Jan 23 18:57:31 2017<br class="gmail_msg">
@@ -1,6 +1,6 @@<br class="gmail_msg">
; RUN: opt < %s -sancov -sanitizer-coverage-level=0 -S | FileCheck %s --check-prefix=CHECK0<br class="gmail_msg">
; RUN: opt < %s -sancov -sanitizer-coverage-level=1 -S | FileCheck %s --check-prefix=CHECK1<br class="gmail_msg">
-; RUN: opt < %s -sancov -sanitizer-coverage-level=2 -S | FileCheck %s --check-prefix=CHECK2<br class="gmail_msg">
+; RUN: opt < %s -sancov -sanitizer-coverage-level=2 -S | FileCheck %s --check-prefix=CHECK_WITH_CHECK<br class="gmail_msg">
; RUN: opt < %s -sancov -sanitizer-coverage-level=2 -sanitizer-coverage-block-threshold=10 -S | FileCheck %s --check-prefix=CHECK2<br class="gmail_msg">
; RUN: opt < %s -sancov -sanitizer-coverage-level=2 -sanitizer-coverage-block-threshold=0 -S | FileCheck %s --check-prefix=CHECK_WITH_CHECK<br class="gmail_msg">
; RUN: opt < %s -sancov -sanitizer-coverage-level=2 -sanitizer-coverage-block-threshold=1 -S | FileCheck %s --check-prefix=CHECK_WITH_CHECK<br class="gmail_msg">
<br class="gmail_msg">
Modified: llvm/trunk/test/Instrumentation/SanitizerCoverage/coverage2-dbg.ll<br class="gmail_msg">
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Instrumentation/SanitizerCoverage/coverage2-dbg.ll?rev=292862&r1=292861&r2=292862&view=diff" rel="noreferrer" class="gmail_msg" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Instrumentation/SanitizerCoverage/coverage2-dbg.ll?rev=292862&r1=292861&r2=292862&view=diff</a><br class="gmail_msg">
==============================================================================<br class="gmail_msg">
--- llvm/trunk/test/Instrumentation/SanitizerCoverage/coverage2-dbg.ll (original)<br class="gmail_msg">
+++ llvm/trunk/test/Instrumentation/SanitizerCoverage/coverage2-dbg.ll Mon Jan 23 18:57:31 2017<br class="gmail_msg">
@@ -17,8 +17,8 @@ target triple = "x86_64-unknown-linux-gn<br class="gmail_msg">
; Check that __sanitizer_cov call has !dgb pointing to the beginning<br class="gmail_msg">
; of appropriate basic blocks.<br class="gmail_msg">
; CHECK-LABEL:_Z3fooPi<br class="gmail_msg">
-; CHECK: call void @__sanitizer_cov(i32*{{.*}}), !dbg [[A:!.*]]<br class="gmail_msg">
-; CHECK: call void @__sanitizer_cov(i32*{{.*}}), !dbg [[B:!.*]]<br class="gmail_msg">
+; CHECK: call void @__sanitizer_cov{{.*}}(i32*{{.*}}), !dbg [[A:!.*]]<br class="gmail_msg">
+; CHECK: call void @__sanitizer_cov{{.*}}(i32*{{.*}}), !dbg [[B:!.*]]<br class="gmail_msg">
; CHECK: ret void<br class="gmail_msg">
; CHECK: [[A]] = !DILocation(line: 1, scope: !{{.*}})<br class="gmail_msg">
; CHECK: [[B]] = !DILocation(line: 3, column: 5, scope: !{{.*}})<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
llvm-commits mailing list<br class="gmail_msg">
<a href="mailto:llvm-commits@lists.llvm.org" class="gmail_msg" target="_blank">llvm-commits@lists.llvm.org</a><br class="gmail_msg">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br class="gmail_msg">
<br class="gmail_msg">
</blockquote>
<br class="gmail_msg">
<br class="gmail_msg"></div></div><span class="m_-5206130622111796024HOEnZb gmail_msg"><font color="#888888" class="gmail_msg">
-- <br class="gmail_msg">
<br class="gmail_msg">
-Bill Seurer<br class="gmail_msg">
<br class="gmail_msg">
</font></span></blockquote></div><br class="gmail_msg"></div>
_______________________________________________<br class="gmail_msg">
llvm-commits mailing list<br class="gmail_msg">
<a href="mailto:llvm-commits@lists.llvm.org" class="gmail_msg" target="_blank">llvm-commits@lists.llvm.org</a><br class="gmail_msg">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br class="gmail_msg">
</blockquote></div>