To make pid initialized for Msan.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc | ||
---|---|---|
2434 | Why not check the argv[] array, too? |
Comment Actions
The test fails to link on Android: https://lab.llvm.org/buildbot/#/builders/77/builds/11014/steps/16/logs/stdio
ld.lld: error: undefined symbol: posix_spawnattr_init >>> referenced by posix_spawn.c:19 (/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/posix_spawn.c:19) >>> /tmp/posix_spawn-9331fd.o:(main) ld.lld: error: undefined symbol: posix_spawn_file_actions_init >>> referenced by posix_spawn.c:23 (/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/posix_spawn.c:23) >>> /tmp/posix_spawn-9331fd.o:(main)
Comment Actions
Disabled the test on Android: https://reviews.llvm.org/rGb298d6d16203
There might be a way to re-enable on Android by not using the init functions.
Comment Actions
The test fails on macOS: https://green.lab.llvm.org/green/job/clang-stage2-Rthinlto/4694/
Can you please take a look and revert if the fix is not obvious? Cheers.
Why not check the argv[] array, too?