Question./build-infer.sh -y clang [...] [ 34%] Building CXX object compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.i386.dir/sanitizer_errno.cpp.o [ 34%] Copying CXX header __system_error/errc.h In file included from /projects/infer/facebook-clang-plugins/clang/src/download/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_errno.cpp:19: In file included from /usr/include/errno.h:28: In file included from /usr/include/bits/errno.h:26: /usr/include/linux/errno.h:1:10: fatal error: 'asm/errno.h' file not found 1 | #include <asm/errno.h> | ^~~~~~~~~~~~~ Answersudo ln -sf /usr/include/x86_64-linux-gnu/asm /usr/include/asm
Questionexport LD_PRELOAD="/lib/libtcmalloc.so" env HEAPCHECK=normal ./leak WARNING: Perftools heap leak checker is active -- Performance may suffer Thread finding failed with -1 errno=9 Could not find thread stacks. Will likely report false leak positives. Bus error AnswerCaused by using old version of gperftools
The following confirmed to be working
Question from /[...]/sentry-native/src/sentry_json.c:8: /[...]/sentry-native/include/sentry.h:503:5: error: unknown type name 'ucontext_t' ucontext_t *user_context; ^~~~~~~~~~ Answer#include <ucontext.