We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfbf971 commit e3d558aCopy full SHA for e3d558a
1 file changed
src/RecordSession.cc
@@ -150,8 +150,12 @@ static bool handle_ptrace_exit_event(RecordTask* t) {
150
// highly improbable.
151
// Record the syscall-entry event that we otherwise failed to record.
152
t->canonicalize_regs(t->arch());
153
- SyscallEvent event(t->regs().original_syscallno(),
154
- t->detect_syscall_arch());
+ // Assume it's a native-arch syscall. If it isn't, it doesn't matter
+ // all that much since we aren't actually going to do anything with it
155
+ // in this task.
156
+ // Avoid calling detect_syscall_arch here since it could fail if the
157
+ // task is already completely dead and gone.
158
+ SyscallEvent event(t->regs().original_syscallno(), t->arch());
159
event.state = ENTERING_SYSCALL;
160
t->record_event(event);
161
}
0 commit comments