[PATCH] D73557: [GWP-ASan] Crash Handler API.

Evgenii Stepanov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 31 17:22:41 PST 2020


eugenis added inline comments.


================
Comment at: compiler-rt/lib/gwp_asan/crash_handler.cpp:79
+
+bool __gwp_asan_has_metadata(const gwp_asan::AllocatorState *State,
+                             const gwp_asan::AllocationMetadata *Metadata,
----------------
Why not return the metadata pointer and null if it could not be found, and then pass it to all other query functions?


================
Comment at: compiler-rt/lib/gwp_asan/optional/segv_handler_posix.cpp:53
+    // signal, install the default handler and re-raise the signal in order to
+    // get a core dump and terminate this process.
+    signal(SIGSEGV, SIG_DFL);
----------------
We should not kill the process if it had SIGSEGV ignored, and we do not recognize the crash.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73557/new/

https://reviews.llvm.org/D73557





More information about the llvm-commits mailing list