Tag: 地址消毒器

如何让ASAN使用4.12.3 Linux内核?

我试图设置/修复在我的docker集装箱asan。 为此,我使用一个简单的示例程序 int main() { return 16; } 并与之编译 clang++ -std=c++1z -O1 -fsanitize=address test.cpp 随着铛4.0.1(它使没有什么区别,我使用)。 这产生了4.12.3-1-ARCH内核版本的错误,而且我没有4.12.3-1-ARCH谷歌或asan FAQ的东西似乎改变了这一点。 $ ./a.out ==13178==Shadow memory range interleaves with an existing memory mapping. ASan cannot proceed correctly. ABORTING. ==13178==ASan shadow was supposed to be located in the [0x00007fff7000-0x10007fff7fff] range. ==13178==Process memory map follows: 0x00eda9b0a000-0x00eda9c4e000 /tmp/a.out 0x00eda9e4e000-0x00eda9e4f000 /tmp/a.out 0x00eda9e4f000-0x00eda9e52000 /tmp/a.out 0x00eda9e52000-0x00edaab37000 […]