我正在尝试使用-fsanitize=address在godbolt.org中启用地址杀毒程序,但收到错误:
==3==ERROR: AddressSanitizer failed to allocate 0xdfff0001000 (15392894357504) bytes at address 2008fff7000 (errno: 12)
==3==ReserveShadowMemoryRange failed while trying to map 0xdfff0001000 bytes. Perhaps you're using ulimit -v示例:https://godbolt.org/z/5GDtrr
如何正确启用地址消毒器?
发布于 2019-11-24 01:41:53
根据设计,Asan在启动时分配了大量的虚拟内存(在x86_64机器上为20 Tb )(详细信息here)。如果是overcommit is disabled或virtual memory is limited with ulimit -v,这可能是一个问题。
在这两种情况下,Asan都无能为力--您需要在https://github.com/mattgodbolt/compiler-explorer/issues中使用Godbolt维护者来解决这个问题
https://stackoverflow.com/questions/59007118
复制相似问题