longjmp is only supposed to be used to jump up the stack, not to a stack frame that has been exited. To fix this would require integrating the setjmp/longjmp into the invoker itself, which would be a bit unclean.