Post

Replies

Boosts

Views

Activity

Address Sanitizier crashes with puts function in Xcode14
The same thing happens with builds for iOS. A clang issue rather than an Xcode issue? Minimum sample source // main1.c #include <stdio.h> int main(int argc, char *argv[]) {  return 0; } int puts( const char *buffer ) { return 0; } Build clang -fsanitize=address -o main1 main1.c Execution result % ./main1  ==17795==ERROR: Interceptors are not working. This may be because AddressSanitizer is loaded too late (e.g. via dlopen). Please launch the executable with: DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib "interceptors not installed" && 0 zsh: abort   ./main1
5
1
1.7k
Dec ’22