[Bug sanitizer/65662] AddressSanitizer CHECK failed: ../../../../gcc/libsanitizer/sanitizer_common/sanitizer_allocator.h:835 "((res)) < ((kNumPossibleRegions))" (0x3ffb49, 0x80000)

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Apr 5 20:48:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65662

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to vekumar from comment #6)
> For 42 bit VA,  I have to change the SANITIZER_MMAP_RANGE_SIZE to  1 <<42.

Sure.

> Also compiler has to add the shadow offset instead of Oring it.

You don't, see my patch.
As I said, the hard part is making sure all 3 layouts work with the same
libasan library - the problem is that the library assumes some decisions (like
whether to use 32-bit or 64-bit allocator) have to be done at library compile
time, when for aarch64 they really have to be done at runtime.



More information about the Gcc-bugs mailing list