问题
clang(llvm) 编译 c++程序, 带内存问题检查工具选项-fsanitize=address -fsanitize=undefined
之后出现:
malloc: nano zone abandoned due to inability to reserve vm space.
解决
vi ~/.zshrc
# 加入:
export MallocNanoZone=0
source ~/.zshrc
参考:
ios - malloc: nano zone abandoned due to inability to preallocate reserved vm space - Stack Overflow;