You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a program which needs around 400G memory. But asan reports oom while cosuming around 300G memory on a server has 700G memory available.
Below is the error message
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
AddressSanitizer: Out of memory. The process has exhausted 65536MB for size class 96.
==49==AddressSanitizer's allocator is terminating the process instead of returning 0
==49==If you don't like this behavior set allocator_may_return_null=1
==49==AddressSanitizer CHECK failed: ../../../../libsanitizer/sanitizer_common/sanitizer_allocator.cc:216 "((0)) != (0)" (0x0, 0x0)
My program is built by bazel with gcc 8.3.1 and parameters as following
In your case, the region for 96-bytes memory-chunk allocation is exhausted.
IMO, there is no workaround on the ASan part, you need to change your code to reduce live 96-bytes chunks to not exceed 64G. You can set environment variable ASAN_OPTIONS='heap_profile=true' to enable heap profiler and check which parts allocate such huge memory.
I have a program which needs around 400G memory. But asan reports oom while cosuming around 300G memory on a server has 700G memory available.
Below is the error message
My program is built by bazel with gcc 8.3.1 and parameters as following
I have found similar problem in #607, But I can't update gcc or migrate to clang.
Is there any other workarounds?
The text was updated successfully, but these errors were encountered: