I found a way to catch panics from Rust guest plugins. But there seems to be a problem when cr does a reload after a rollback. Maybe a segfault happens in the cr reload code and it tries to siglongjmp back to cr_plugin_main()?
Might be useful to have an option to disable the setjmp/exception handling for a plugin.
This is the commit I was using:
Neopallium/cr-sys@8b7853c
With CR_DEBUG defined in src/host.cpp.
Output running under valgrind:
cr-sys-rollback-reload.log