Catch exceptions and signals thrown inside of JNI and Agent modules and clean up all JVM resources
Matthewacon opened this issue · comments
Matthewacon commented
Allow for user-registered exception and signal handlers, but provide default handlers for both so that all resources are cleaned up before failing gracefully.
Matthewacon commented
Look into adding libunwind support to create backtraces into attached libraries when encountering a JNI or unhandled exception.
meme commented
Just note that I'm pretty sure unwinding outside of your own executable is UB, though I don't imagine it will actually cause issues (just use it with care)
Matthewacon commented
Closed as of c207a3b.