Skip to content

Instantly share code, notes, and snippets.

@dangarbri
Created November 14, 2023 03:21
Show Gist options
  • Save dangarbri/9f89e444997fb3468c985de246e420a2 to your computer and use it in GitHub Desktop.
Save dangarbri/9f89e444997fb3468c985de246e420a2 to your computer and use it in GitHub Desktop.
Send segfault to the specified program as soon as it starts.
while true; do
kill -SIGSEGV $(ps -a | grep $1 | cut -d' ' -f 2) 2> /dev/null
done
@dangarbri
Copy link
Author

Usage: segfaulter <program_name> &

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment