ocaml-multicore / eio

Effects-based direct-style IO for multicore OCaml
Other
559 stars 72 forks source link

Preserve backtraces in fork_daemon and fork_promise_exn #779

Closed talex5 closed 6 days ago

talex5 commented 6 days ago

If the fiber fails, record the backtrace when failing the switch. fork itself already did this, but fork_daemon and fork_promise_exn didn't.

This caused unhelpful errors such as:

Fatal error: exception Not_found
Raised at Eio__core__Switch.maybe_raise_exs in file "lib_eio/core/switch.ml", line 119, characters 21-56