The easiest way is to call C -code. C provides a standard function abort() [1] that does what you want. You need to call: .Call("abort") .

As @Phillip pointed out you may need to load libc via: