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

Fix "ocamlrun -b" crash #11824

Merged
merged 2 commits into from Dec 21, 2022
Merged

Fix "ocamlrun -b" crash #11824

merged 2 commits into from Dec 21, 2022

Conversation

Octachron
Copy link
Member

The code paths for ocamlrun -b and OCAMLRUNPARAM=b ocamlrun ... have currently diverged in such way that the former is currently segfaulting.

The issue is that ocamlrun -b calls caml_record_backtraces before domains are fully initialized, which results in a crash once caml_record_backtraces try to access Caml_state.

This PR fixes the divergence and the crash by setting caml_params<-backtrace_enabled to true in both code paths.

@shindere
Copy link
Contributor

shindere commented Dec 19, 2022 via email

@Octachron Octachron merged commit 67e998b into ocaml:trunk Dec 21, 2022
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.

None yet

2 participants