Skip to content

Commit

Permalink
Dump siginfo and signal to be delivered when we get an unexpected sig…
Browse files Browse the repository at this point in the history
…nal while trying to enter a user signal handler
  • Loading branch information
rocallahan committed Aug 1, 2023
1 parent ceb05ee commit 53a1a75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/RecordSession.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,8 @@ static bool inject_handled_signal(RecordTask* t) {

// We stepped into a user signal handler.
ASSERT(t, t->stop_sig() == SIGTRAP)
<< "Got unexpected status " << t->status();
<< "Got unexpected status " << t->status() << " trying to deliver " << sig
<< " siginfo is " << t->get_siginfo();
ASSERT(t, t->get_signal_user_handler(sig) == t->ip())
<< "Expected handler IP " << t->get_signal_user_handler(sig) << ", got "
<< t->ip()
Expand Down

0 comments on commit 53a1a75

Please sign in to comment.