Wow, the world of 1Tb RAM machines is here.
1) You can try to allocate 156Gb of memory with mmap() instead of malloc().
2) 64Gb is a hard limit on allocation size in ASan runtime. You can try to
bump this limit (kMaxAllowedMallocSize in lib/asan/asan_allocator.cc) and
rebuilt it from source.

On Fri, Jun 5, 2015 at 7:37 AM, Sebastiano Vigna <[email protected]
> wrote:

> I am experimenting allocation failure on a large allocation:
>
> ==40324==WARNING: AddressSanitizer failed to allocate 0x002400ec3700 bytes
>
> ==40324==AddressSanitizer's allocator is terminating the process instead
> of returning 0
>
> ==40324==If you don't like this behavior set allocator_may_return_null=1
>
> ==40324==AddressSanitizer CHECK failed:
> ../../../../libsanitizer/sanitizer_common/sanitizer_allocator.cc:147 "((0))
> != (0)" (0x0, 0x0)
>
>     #0 0x7f3facdc0050 (/lib64/libasan.so.1+0x5d050)
>
>     #1 0x7f3facdc42b3 in __sanitizer::CheckFailed(char const*, int, char
> const*, unsigned long long, unsigned long long)
> (/lib64/libasan.so.1+0x612b3)
>
>
> The hardware has 1TB of core memory, and the same allocation works without
> problems without -fsanitize=address.
>
>
> Can anyone suggest a workaround? Thanks!
>
>
> seba
>
> --
> You received this message because you are subscribed to the Google Groups
> "address-sanitizer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Alexey Samsonov, Mountain View, CA

-- 
You received this message because you are subscribed to the Google Groups 
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to