AddressSanitizer's allocator is terminating the process instead of returning 0

偏执的磊子 2019-01-07 05:29:43
工程遇到一个问题
==3983==AddressSanitizer's allocator is terminating the process instead of returning 0
==3983==If you don't like this behavior set allocator_may_return_null=1
==3983==AddressSanitizer CHECK failed: /BuildRoot/Library/Caches/com.apple.xbs/Sources/clang_compiler_rt_Fall2018/clang_Fall2018-1000.11.45.5/src/projects/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc:225 "((0)) != (0)" (0x0, 0x0)
==3983==AddressSanitizer's allocator is terminating the process instead of returning 0
==3983==If you don't like this behavior set allocator_may_return_null=1
==3983==AddressSanitizer CHECK failed: /BuildRoot/Library/Caches/com.apple.xbs/Sources/clang_compiler_rt_Fall2018/clang_Fall2018-1000.11.45.5/src/projects/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc:225 "((0)) != (0)" (0x0, 0x0)

控制台上报这个错误,一直锁定不了问题,希望大家帮帮忙!
...全文
798 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Anday_ 2020-01-09
  • 打赏
  • 举报
回复
同遇到这个问题
==652==ERROR: AddressSanitizer failed to deallocate 0x20000 (131072) bytes at address 0x00017a3bc800
==652==AddressSanitizer CHECK failed: /BuildRoot/Library/Caches/com.apple.xbs/Sources/clang_compiler_rt/clang-1100.0.33.16/src/projects/compiler-rt/lib/sanitizer_common/sanitizer_posix.cc:62 "(("unable to unmap" && 0)) != (0)" (0x0, 0x0)
#0 0x106333558 in __asan::AsanCheckFailed(char const*, int, char const*, unsigned long long, unsigned long long)
请问解决了吗
whiskee 2019-01-10
  • 打赏
  • 举报
回复
我也是遇到这个问题: AddressSanitizer CHECK failed: /BuildRoot/Library/Caches/com.apple.xbs/Sources/clang_compiler_rt_Fall2018/clang_Fall2018-1000.11.45.5/src/projects/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc:225 "((0)) != (0)" (0x0, 0x0) 你解决了吗?

29,028

社区成员

发帖
与我相关
我的任务
社区描述
主要讨论与iOS相关的软件和技术
社区管理员
  • iOS
  • 大熊猫侯佩
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧