-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
SIGSEGV with to caml_unix_alloc_sockaddr #12796
Comments
This looks likely, would you like to submit a fix as a PR? (For example you could use |
talex5
added a commit
to talex5/ocaml
that referenced
this issue
Dec 1, 2023
gasche
added a commit
that referenced
this issue
Dec 1, 2023
Fix memory corruption in caml_unix_alloc_sockaddr (#12796)
talex5
added a commit
to talex5/eio
that referenced
this issue
Dec 1, 2023
If given an empty address, it would corrupt memory. This resulted in the tests hanging sometimes, spinning in `caml_do_local_roots`. See ocaml/ocaml#12796.
talex5
added a commit
to talex5/eio
that referenced
this issue
Dec 1, 2023
If given an empty address, it would corrupt memory. This resulted in the tests hanging sometimes, spinning in `caml_do_local_roots`. See ocaml/ocaml#12796.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This program segfaults on OCaml 5.1.0:
(this was originally seen as an occasional hang in Eio's tests)
I believe this is due to this code in
caml_unix_alloc_sockaddr
failing to restorecaml_state->local_roots
on exit:ocaml/otherlibs/unix/socketaddr.c
Lines 111 to 121 in c2476e3
The text was updated successfully, but these errors were encountered: