Bug 23480

Summary: bpfinterp.cxx should respond to ^C
Product: systemtap Reporter: Serhei Makarov <serhei>
Component: bpfAssignee: Unassigned <systemtap>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description Serhei Makarov 2018-08-02 16:55:00 UTC
# stap --bpf -v -e 'probe begin { for(;;) { printf("whoosh!") } }'

Cannot be interrupted with ^C, forcing the user to kill the process.
Comment 1 Serhei Makarov 2018-08-20 18:56:59 UTC
Correction: this only happens when 'probe end { ... }' is being executed. That is because the signal handler in stapbpf.cxx sets the exit flag, which has no effect once the end probes are already running.

Fixed in commit 9d29349 by restoring signal handlers before running exit probes, and having these handlers exit immediately rather than setting exit status.