Created
November 14, 2023 03:21
-
-
Save dangarbri/9f89e444997fb3468c985de246e420a2 to your computer and use it in GitHub Desktop.
Send segfault to the specified program as soon as it starts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true; do | |
kill -SIGSEGV $(ps -a | grep $1 | cut -d' ' -f 2) 2> /dev/null | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage:
segfaulter <program_name> &