multi-threaded software gets stuck #889
-
Hi, I have a software that starts 1 thread per CPU, each thread has one io_uring, each thread waits for something to happen using io_uring_wait_cqes, there are different sources of events such as eventfd that are submitted before entering the wait and so other processes trigger these event sources to wake up these threads to take action on them. The software run as expected when is run normally/directly but when is run using valgrind it just gets stuck on io_uring_wait_cqes when creating the very first thread and the program does not continue. i have tried to debug the issue using gdb and was able to get the following trace: #0 __sys_io_uring_enter2 (sz=, sig=, flags=, min_complete=, I have also tried tweaking valgrind options a bit (--fair-sched=yes) and see if it makes any difference with no results ... I do not know where to go from here and searches on google do not yield anything. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I think there are plenty bugs with valgrind running io_uring right now that might explain this. |
Beta Was this translation helpful? Give feedback.
I think there are plenty bugs with valgrind running io_uring right now that might explain this.
a selection:
https://bugs.kde.org/show_bug.cgi?id=439226
https://bugs.kde.org/show_bug.cgi?id=439226
https://bugs.kde.org/show_bug.cgi?id=463859