[PATCH] D48257: [asan] Use MADV_NOCORE for use_madv_dontdump on FreeBSD.

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 16 14:55:51 PDT 2018


MaskRay added a comment.

On Linux, I can observe the effect of the option:

  ulimit -c 100; rm -f core; ASAN_OPTIONS=abort_on_error=1:disable_coredump=0:use_madv_dontdump=1 ./a; readelf -Wl core | grep 2008f
  ulimit -c 100; rm -f core; ASAN_OPTIONS=abort_on_error=1:disable_coredump=0:use_madv_dontdump=0 ./a; readelf -Wl core | grep 2008f

  # the file size field is 0 with use_madv_dontdump=1
    LOAD           0x92e000 0x000002008fff7000 0x0000000000000000 0xdfff0001000 0xdfff0001000 RW  0x1000


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D48257





More information about the llvm-commits mailing list