[LLVMbugs] [Bug 15702] Address sanitizer: setrlimit() fails

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 8 22:33:25 PDT 2013


Kostya Serebryany <kcc at google.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |kcc at google.com
         Resolution|---                         |WONTFIX

--- Comment #1 from Kostya Serebryany <kcc at google.com> ---
This is expected. 
>From https://code.google.com/p/address-sanitizer/wiki/Flags (just added that):

disable_core     0/1     Disable the core dumper. Since asan consumes many
terabytes of virtual memory on 64-bit, dumping core is unwise. Default: 0 on
32-bit and 1 on 64-bit.

% clang -fsanitize=address setrlimit.c ; ./a.out 
ret: -1, errno: 1, message: Operation not permitted
% clang -fsanitize=address setrlimit.c ; ASAN_OPTIONS=disable_core=0 ./a.out 
ret: 0, errno: 0, message: Success
% clang -m32 -fsanitize=address setrlimit.c ; ./a.out 
ret: 0, errno: 0, message: Success

Why would you want to have a 20Tb core file on your disk?

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130409/0add3808/attachment.html>

More information about the llvm-bugs mailing list