The problem is that without SA_RESTORER flag, kernel ignores the handler. So tracer actually did not setup any handler.
Add SA_RESTORER flag when setting up handlers.
Add a test that causes SIGSEGV in stoptheworld callback.
Move SignalContext from asan to sanitizer_common to print better diagnostics about signal in the tracer thread.
Details
Details
- Reviewers
earthdok
Diff Detail
Diff Detail
Event Timeline
lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc | ||
---|---|---|
106 | as per offline discussion the comment is revoked |
why?