[all-commits] [llvm/llvm-project] 723276: [sanitizer] Suggest checking ulimit -d in addition...
Ilya Leoshkevich via All-commits
all-commits at lists.llvm.org
Sat Jul 13 01:31:13 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7232763a965e1d34a14f745d74245685898e4907
https://github.com/llvm/llvm-project/commit/7232763a965e1d34a14f745d74245685898e4907
Author: Ilya Leoshkevich <iii at linux.ibm.com>
Date: 2024-07-13 (Sat, 13 Jul 2024)
Changed paths:
M compiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cpp
Log Message:
-----------
[sanitizer] Suggest checking ulimit -d in addition to ulimit -v (#98625)
Since Linux 4.7, RLIMIT_DATA may result in mmap() returning ENOMEM.
Example:
$ clang -fsanitize=address -o hello hello.c
$ ulimit -d 100000
$ ./hello
==3349007==ERROR: AddressSanitizer failed to allocate 0x10000000
(268435456) bytes at address 7fff7000 (errno: 12)
==3349007==ReserveShadowMemoryRange failed while trying to map
0x10000000 bytes. Perhaps you're using ulimit -v
Suggest checking ulimit -d in addition to ulimit -v.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list