Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve backtraces in fork_daemon and fork_promise_exn #779

Merged
merged 1 commit into from
Nov 16, 2024

Conversation

talex5
Copy link
Collaborator

@talex5 talex5 commented Nov 16, 2024

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

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.
@talex5 talex5 changed the title Preserve backtraces in fork_daemon and fork_promise Preserve backtraces in fork_daemon and fork_promise_exn Nov 16, 2024
@talex5 talex5 merged commit 9b939ab into ocaml-multicore:main Nov 16, 2024
5 checks passed
@talex5 talex5 deleted the fork-bt branch November 16, 2024 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant