Silly me, this special syscall even already exists! How about stuffing
this in a SIGSEGV signal handler.
/* Dump some core. */
if (fork() == 0) raise(SIGABRT);
/* Magic to initiate an exception from whatever context we were running
in before our signal handler got called */
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds