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
This problem is probabilistic. I run Python3 all test cases on OBS. In recent months, there have been about three times that the test cases hang on probabilistically. The current version with problems is 3.10.2, this problem has also appeared in 3.10.0 and 3.9.9.
The problem occurred again on these two days. There are a lot of errors after forcibly interrupting the task.Please refer to the attachment for details. It has appeared on the arm architecture machine several times recently. python3_build.log
We are not seeing this issue in our CI systems or buildbots that I'm aware of. Without an ability to reproduce it and confirm that an issue exists on the main branch so we can gather diagnostic data, I lean towards closing this issue as not reproduceable / not planned.
As for a fix, time.sleep(0) is bad a code smell. It doesn't do anything deterministic. So it can't solve a problem, only shift the probability of one happening by maybe triggering the OS to switch tasks or a for different Python thread to get the GIL. The underlying problem, if one exists, would still exist.
(I don't actually doubt that there are such issues in the multiprocessing and concurrent.futures test suites or even within multiprocessing itself, just that they're extremely hard to find and debug at this point)
Activity
sxt1001 commentedon Apr 7, 2022
This problem is probabilistic. I run Python3 all test cases on OBS. In recent months, there have been about three times that the test cases hang on probabilistically. The current version with problems is 3.10.2, this problem has also appeared in 3.10.0 and 3.9.9.
sxt1001 commentedon Apr 7, 2022
I previously suspected the patch d0d83a9 (d0d83a9) fixed this problem, so I upgraded python3 to 3.10.2, but the problem still occurred.
xiaoge1001 commentedon Apr 11, 2022
The problem occurred again on these two days. There are a lot of errors after forcibly interrupting the task.Please refer to the attachment for details. It has appeared on the arm architecture machine several times recently.
python3_build.log
zuhu2195 commentedon Jul 8, 2023
Hi,
can you try adding time.sleep(0) in _handle_tasks, _handle_workers and _handle_results functions at the start of these functions in pool.py file.
gpshead commentedon Jul 10, 2023
We are not seeing this issue in our CI systems or buildbots that I'm aware of. Without an ability to reproduce it and confirm that an issue exists on the
mainbranch so we can gather diagnostic data, I lean towards closing this issue as not reproduceable / not planned.As for a fix,
time.sleep(0)is bad a code smell. It doesn't do anything deterministic. So it can't solve a problem, only shift the probability of one happening by maybe triggering the OS to switch tasks or a for different Python thread to get the GIL. The underlying problem, if one exists, would still exist.(I don't actually doubt that there are such issues in the multiprocessing and concurrent.futures test suites or even within multiprocessing itself, just that they're extremely hard to find and debug at this point)