Closed
Description
Failing inside a destructor is broken to begin with, but failing from within the cycle collector is even worse:
- The cycle collector won't catch the failure and continue
- The cycle collector jumps from the C stack to the Rust stack to run the destructor but does not do the proper maintenance if the destructor throws
- The logic that prevents failure in crust functions is in effect because of reentry into the Rust stack, so the runtime will abort
- The final cycle collection happens outside of any try-catch block so the runtime will abort