Julia exceptions in C

Yes, it goes out of scope before any other call into Julia. I’ve fixed this in https://github.com/JuliaLang/julia/pull/28886. I’d be happy to know what else is wrong in the PR.