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

runtime events consumer: fix invalid value returned from runtime_events_read_poll #12178

Merged
merged 1 commit into from Apr 11, 2023

Conversation

TheLortex
Copy link
Contributor

@TheLortex TheLortex commented Apr 11, 2023

caml_ml_runtime_events_read_poll is supposed to return an OCaml integer, but the conversion was done the other way around, using Int_val instead of Val_int.

cc @sadiqj @Engil

@gasche
Copy link
Member

gasche commented Apr 11, 2023

Looks good to me, but I'm not sure this deserves a Changes entry.

@Octachron Octachron added the bug label Apr 11, 2023
@TheLortex
Copy link
Contributor Author

The Changes entry makes sense to me as this bug might have impacted existing users of runtime events, encountering incorrect behaviors and segmentation faults when using the return value of read_poll.

But I don't have a strong opinion on that matter so it can be removed if needed.

@gasche
Copy link
Member

gasche commented Apr 11, 2023

I suspect that the only user of caml_ml_runtime_events_read_poll is runtime_events_tools/olly.ml which ignores the return value, but okay.

@gasche gasche merged commit 54c81e5 into ocaml:trunk Apr 11, 2023
10 checks passed
gasche added a commit that referenced this pull request Apr 11, 2023
runtime events consumer: fix invalid value returned from runtime_events_read_poll

(cherry picked from commit 54c81e5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants