-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assertion `mmap(__ag_high_shadow, (0xdfff0000fffULL), 0x1 | 0x2, 0x02 | 0x10 | 0x04000 | 0x20, -1, 0) != ((void *) -1)' failed. #32
Comments
what are you talking about? 15392894357503 byte of memory? that would be 15392894 GB ... impossible :) |
The size mapped is defined by HIGH_SHADOW_SIZE, from line https://github.com/AFLplusplus/qemuafl/blob/master/qemuafl/asan-giovese.h#L45. |
https://github.com/google/sanitizers/wiki/AddressSanitizerAlgorithm Because it is a shadow memory |
Thank you for the explanation. So the shadow memory are calculated by the following equation: [0x10007fff8000, 0x7fffffffffff] | HighMem Back to this assertion error, the mmap is mapping HighShadow but failed. |
I don't really know what CentOS does, but you can check with /proc//maps what is overlapping the shadow memory regions before all the mmaps |
Thank you for this great project! Currently I'm trying to use afl++ in qemu mode. Everything is OK when I run it on Ubuntu 20.04. However, when I run qemu mode on my CentOS server, and when I set the AFL_USE_QASAN environment option to turn on QASAN module, the assertion error occurs. The assert triggered on line https://github.com/AFLplusplus/qemuafl/blob/master/qemuafl/asan-giovese-inl.h#L110
This is the configuration of my CentOS server:
Also I write a simple mmap test program, the same assertion error occurs
I am sure that there is enough memory space, but why the mmap with the options failed with
Cannot allocate memory
on the CentOS system?Thanks a lot for any suggestions.
The text was updated successfully, but these errors were encountered: