How can I catch SIGSEGV (segmentation fault) and get a stack trace under JNI on Android?
Edit: From Jelly Bean onwards you can’t get the stack trace, because READ_LOGS went away. 🙁 I actually got a signal handler working without doing anything too exotic, and have released code using it, which you can see on github (edit: linking to historical release; I removed the crash handler since then). Here’s how: Use … Read more