dukeify / fake-jni

An implementation of the JNI and JVMTI with support for direct interaction between natively registered classes and JVM objects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Catch exceptions and signals thrown inside of JNI and Agent modules and clean up all JVM resources

Matthewacon opened this issue · comments

Allow for user-registered exception and signal handlers, but provide default handlers for both so that all resources are cleaned up before failing gracefully.

Look into adding libunwind support to create backtraces into attached libraries when encountering a JNI or unhandled exception.

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)

Closed as of c207a3b.