rust-lang / rustc_codegen_cranelift

Cranelift based backend for rustc
Apache License 2.0
1.64k stars 101 forks source link

`panic in a function that cannot unwind` anytime a thread panics #1499

Closed SUPERCILEX closed 5 months ago

SUPERCILEX commented 5 months ago

Running thread::spawn(|| panic!("wat")); is enough to cause a whole program abort which is unfortunate.

bjorn3 commented 5 months ago

Cranelift doesn't yet support unwinding, so any panic will always abort.

SUPERCILEX commented 5 months ago

Ohhhh, ok that makes sense. Thanks!