[PATCH] D102543: [Scudo] Make -fsanitize=scudo use standalone. Migrate tests.

Mitch Phillips via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 27 12:12:00 PDT 2021


hctim added a comment.

In D102543#2783516 <https://reviews.llvm.org/D102543#2783516>, @cryptoad wrote:

> I saw some bots failure for preinit.c:
>
>   FAIL: ScudoStandalone-i386 :: preinit.c (768 of 856)
>   ******************** TEST 'ScudoStandalone-i386 :: preinit.c' FAILED ********************
>   Script:
>   --
>   : 'RUN: at line 1';      /b/sanitizer-x86_64-linux/build/clang_build/./bin/clang   -m32  -pthread -fPIE -pie -O0 -UNDEBUG -Wl,--gc-sections -resource-dir=/b/sanitizer-x86_64-linux/build/clang_build/./lib/clang/13.0.0/lib/linux/../../ -fsanitize=scudo /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/scudo/standalone/preinit.c -o /b/sanitizer-x86_64-linux/build/clang_build/projects/compiler-rt/test/scudo/standalone/I386LinuxConfig/Output/preinit.c.tmp
>   : 'RUN: at line 2';    /b/sanitizer-x86_64-linux/build/clang_build/projects/compiler-rt/test/scudo/standalone/I386LinuxConfig/Output/preinit.c.tmp 2>&1
>   --
>   Exit Code: 139
>   
>   Command Output (stderr):
>   --
>   /b/sanitizer-x86_64-linux/build/clang_build/projects/compiler-rt/test/scudo/standalone/I386LinuxConfig/Output/preinit.c.script: line 2: 20628 Segmentation fault      /b/sanitizer-x86_64-linux/build/clang_build/projects/compiler-rt/test/scudo/standalone/I386LinuxConfig/Output/preinit.c.tmp 2>&1
>
> Do you know what went on with those?

Hmm, nope, didn't see them or know what's going on. It doesn't repro using one of my configs - do you have a link to the buildbot?

There were two other issues I spotted:

1. Tests were being run when scudo wasn't supported (COMPILER_RT_HAS_SCUDO_STANDALONE != true), which popped up because the Android bots tried to run Scudo standalone tests before D103200 <https://reviews.llvm.org/D103200> landed. This is fixed in the patchset.
2. The qemu sanitizer bot failed to find `stdint.h`. I have the same problem on my local checkout, most of the libc headers come from one directory, but stdint.h and friends need to come from the compiler, and the compiler's include dir isn't part of the default set. Needs to be fixed on bot, but I haven't got around to that.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102543/new/

https://reviews.llvm.org/D102543



More information about the cfe-commits mailing list