You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since #728, we submit requests and wait for replies in a single system call. If a signal is received while waiting in io_uring_enter but after some requests were accepted, it returns the number of requests submitted rather than EINTR. This causes liburing to retry without returning to OCaml, which means that the OCaml part of the signal handler doesn't run.
This particular problem could be fixed by modifying liburing. However, there is another race affecting system calls more generally (ocaml/ocaml#13189) and fixing that would also fix this as a side-effect.
This bug can cause Lwt_eio's tests to hang, as Lwt doesn't get the SIGCHLD signal it is expecting (Eio doesn't suffer from this problem itself because it uses process FDs to wait for child processes instead). We've also had similar problems with other libraries in the past (e.g. #400).
The text was updated successfully, but these errors were encountered:
Since #728, we submit requests and wait for replies in a single system call. If a signal is received while waiting in
io_uring_enter
but after some requests were accepted, it returns the number of requests submitted rather thanEINTR
. This causes liburing to retry without returning to OCaml, which means that the OCaml part of the signal handler doesn't run.This particular problem could be fixed by modifying liburing. However, there is another race affecting system calls more generally (ocaml/ocaml#13189) and fixing that would also fix this as a side-effect.
This bug can cause
Lwt_eio
's tests to hang, as Lwt doesn't get the SIGCHLD signal it is expecting (Eio doesn't suffer from this problem itself because it uses process FDs to wait for child processes instead). We've also had similar problems with other libraries in the past (e.g. #400).The text was updated successfully, but these errors were encountered: