Replies: 1 comment 2 replies
-
|
Can you share the full code? No idea what request_t is.
This means you are passing bad pointers to the kernel. you can try using gdb to print your request right before the io_uring_prep_sendmsg and checking what you are passing wrong.
This looks fishy. iov is an iovec, so it should receive a pointer to the data in iov->iov_base. Looks like you are corrupting the iovec and the following 10bytes, IIUC. Should be: request->iov[0].iov_base = data; |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
this code works fine and client reads message with recvfrom
this code gives -14 in
cqe->res(Bad address)requestis of typerequest_tand it exists and not erased after code executed and I already did the same with io_uring_prep_recvmsg, io_uring_prep_write, io_uring_prep_cancel, io_uring_prep_timeout_remove, io_uring_prep_close, io_uring_prep_read, io_uring_prep_accept and it works fine and no problemswhat is wrong with the code above?
Beta Was this translation helpful? Give feedback.
All reactions