-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Build Failure with ASAN Due to ENOMEM Error Despite Sufficient Memory #1833
Comments
I am assuming your host is 64-bit, right? |
Yes, I am using 64-bit host machine |
Oh, sorry, I must have misread the original request. In general, it is perfectly fine for the compiler to require more memory than usual in both cases I mentioned. If you believe the memory consumption is unreasonably high for a particular file, can you provide a preprocessed reproducer together with the command invoking the compiler? |
We are linking the ASan runtime (libasan) to our PowerPC library during compilation, with the host system being x64 Linux. The compiler itself is not built with ASan, we are adding ASan support manually. |
Hi,
We are trying to compile our workspace with the ASAN library, but during the compilation, one of the application requests around 3.2 GB of memory. Despite having enough available memory and swap space, we are encountering an "ENOMEM" error, causing the build to fail.
Below is the system snap shot
free -h
total used free shared buff/cache available
Mem: 31Gi 1.2Gi 3.1Gi 35Mi 27Gi 29Gi
Swap: 4.0Gi 2.3Gi 1.7Gi
This is the error log we traced through strace
openat(AT_FDCWD, "build/rcp/magnum/ppc4/program/rcpd/rcpd-v", O_RDONLY|O_LARGEFILE) = 7
mmap2(NULL, 3283073560, PROT_READ, MAP_SHARED, 7, 0) = -1 ENOMEM (Cannot allocate memory)
openat(AT_FDCWD, "/etc/localtime", O_RDONLY|O_CLOEXEC) = 8
Note: We are building it for powerpc 32-bit.
The text was updated successfully, but these errors were encountered: