blob: 677bd3e6cf4937e4c46de49c75c635d32d0e15d3 [file] [log] [blame]
#include <signal.h>
#include <sys/syscall.h>
int main() {
// Get the current thread ID
pid_t tid = syscall(SYS_gettid);
// Send a SIGSEGV signal to the current thread
syscall(SYS_tkill, tid, SIGSEGV);
return 0;
}