[all-commits] [llvm/llvm-project] d54fad: [Sanitizer] Call Die() instead of Abort() when fai...

Enna1 via All-commits all-commits at lists.llvm.org
Mon Sep 9 02:53:58 PDT 2024


  Branch: refs/heads/users/Enna1/die-if-reserve-shadow-fail
  Home:   https://github.com/llvm/llvm-project
  Commit: d54fad87f7868d347ce2c41c771e14c15a0fd5d7
      https://github.com/llvm/llvm-project/commit/d54fad87f7868d347ce2c41c771e14c15a0fd5d7
  Author: xumingjie.enna1 <xumingjie.enna1 at bytedance.com>
  Date:   2024-09-09 (Mon, 09 Sep 2024)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cpp

  Log Message:
  -----------
  [Sanitizer] Call Die() instead of Abort() when failed to reserve shadow memory range

I grep the code and find that `Abort()` is only called in `Die()` when the flag `abort_on_error`
is set.
Thus, if reserving shadow memory range fails, `Die()` rather than `Abort()` should
be called. In this case, the flag abort_on_error will be respected and the die callbacks will be called.



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