Skip to content
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

Open
Techinfo0708 opened this issue Dec 27, 2024 · 0 comments
Open

Comments

@Techinfo0708
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant