[compiler-rt] [ASan] [HWASan] Add __sanitizer_ignore_free_hook() (PR #96749)

Amy Huang via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 22 15:09:38 PDT 2024


amykhuang wrote:

The ignore_free_hooks test is failing on mac with the error 

```
/Users/akhuang/llvm-project/build/projects/compiler-rt/test/asan/X86_64DarwinConfig/TestCases/Posix/Output/ignore_free_hook.cpp.script: line 1: syntax error near unexpected token `&'
/Users/akhuang/llvm-project/build/projects/compiler-rt/test/asan/X86_64DarwinConfig/TestCases/Posix/Output/ignore_free_hook.cpp.script: line 1: `set -o pipefail;set -x;{ { set +x; } 2>/dev/null && echo 'RUN: at line 1': '/Users/akhuang/llvm-project/build/./bin/clang  --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only  -arch x86_64 -stdlib=libc++ -mmacosx-version-min=10.13 -isysroot /Users/akhuang/llvm-project/build/../sysroot/MacOSX.sdk  -shared-libasan -O2 /Users/akhuang/llvm-project/compiler-rt/test/asan/TestCases/Posix/ignore_free_hook.cpp -o /Users/akhuang/llvm-project/build/projects/compiler-rt/test/asan/X86_64DarwinConfig/TestCases/Posix/Output/ignore_free_hook.cpp.tmp -DTEST=basic_hook_works && not  /Users/akhuang/llvm-project/build/projects/compiler-rt/test/asan/X86_64DarwinConfig/TestCases/Posix/Output/ignore_free_hook.cpp.tmp    |& FileCheck /Users/akhuang/llvm-project/compiler-rt/test/asan/TestCases/Posix/ignore_free_hook.cpp -check-prefix=CHECK-BASIC' >&2 && { set -x; } 2>/dev/null && {      /Users/akhuang/llvm-project/build/./bin/clang  --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only  -arch x86_64 -stdlib=libc++ -mmacosx-version-min=10.13 -isysroot /Users/akhuang/llvm-project/build/../sysroot/MacOSX.sdk  -shared-libasan -O2 /Users/akhuang/llvm-project/compiler-rt/test/asan/TestCases/Posix/ignore_free_hook.cpp -o /Users/akhuang/llvm-project/build/projects/compiler-rt/test/asan/X86_64DarwinConfig/TestCases/Posix/Output/ignore_free_hook.cpp.tmp -DTEST=basic_hook_works && not  /Users/akhuang/llvm-project/build/projects/compiler-rt/test/asan/X86_64DarwinConfig/TestCases/Posix/Output/ignore_free_hook.cpp.tmp    |& FileCheck /Users/akhuang/llvm-project/compiler-rt/test/asan/TestCases/Posix/ignore_free_hook.cpp -check-prefix=CHECK-BASIC; }; } &&'
```

https://github.com/llvm/llvm-project/pull/96749


More information about the llvm-commits mailing list