ocaml-multicore / eio

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

eio_posix: work around caml_unix_alloc_sockaddr bug #651

Closed talex5 closed 10 months ago

talex5 commented 10 months ago

If given an empty address, it would corrupt memory. This resulted in the tests hanging sometimes, spinning in caml_do_local_roots.

See https://github.com/ocaml/ocaml/issues/12796.

This was a little hard to track down, as attempting to attach to the hung process resulted in:

A fatal error internal to GDB has been detected, further
debugging is not possible.  GDB will now terminate.