wytsai7660
wytsai7660

Reputation: 66

What is the current status of support for Asan (AddressSanitizer) and Lsan (LeakSanitizer) on Apple silicon (Arm64) MacOS?

As specified in AddressSanitizer · google/sanitizers Wiki, Arm64 OS X is not officially supported yet, as verified in the discussion gcc Apple Silicon missing AddressSanitizer/UBSanitizer libraries? · Homebrew · Discussion #3384. However, I have noticed that clang installed via Homebrew is capable of using Asan, and Lsan (kinda) works when ASAN_OPTIONS=detect_leaks=1 is set. Nonetheless, there seems to be some issues with the leak check functionality, as indicated in this report: Does LeakSanitizer not work on macOS 13 / Apple Silicon?.

I am perplexed about the current state of support for Apple silicon (Arm64) MacOS. The Asan libraries are not built with gcc currently, and while clang supports Asan, it appears to be not fully correct and functional, contrary to the information provided in the official wiki. Can anyone shed light on the current status and provide insights into the usability and potential issues with Asan and Lsan on Apple silicon MacOS?

(All the processes proceed on Apple silicon (Arm64) MacOS)

Upvotes: 4

Views: 775

Answers (0)

Related Questions