tokio-rs / io-uring

The `io_uring` library for Rust
Apache License 2.0
1.21k stars 134 forks source link

SendZc doesn't work, when Send works #308

Open Eugene-Usachev opened 2 weeks ago

Eugene-Usachev commented 2 weeks ago

For a long time, I have been trying to find a bug in the code that works on my local machine, which does not support SendZc, and uses Send. However, it does not work on the machine that supports and uses SendZc.

I am unable to provide a theory as to why this is happening. In both cases, the buffer reference is valid until the result is returned. However, SendZc is causing an error with the message "Invalid memory reference (SIGSEGV)". Do SendZc and SendMsgZc have any additional restrictions?