-
-
Notifications
You must be signed in to change notification settings - Fork 32k
test_free_threading
deadlocks
#118444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It's happened in my local setup. ./python -m test -R 3:3 test_free_threading
Running Debug|x64 interpreter...
Using random seed: 2036708708
0:00:00 Run 1 test sequentially
0:00:00 [1/1] test_free_threading
beginning 6 repetitions. Showing number of leaks (. for 0 or less, X for 10 or more)
123:456
Assertion failed: _PyOpcode_Deopt[frame->instr_ptr->op.code] == SEND || _PyOpcode_Deopt[frame->instr_ptr->op.code] == FOR_ITER || _PyOpcode_Deopt[frame->instr_ptr->op.code] == INTERPRETER_EXIT || _PyOpcode_Deopt[frame->instr_ptr->op.code] == ENTER_EXECUTOR, file C:\Users\KIRILL-1\CLionProjects\cpython\Python\generated_cases.c.h, line 6042
Fatal Python error: Aborted |
Unfortunately, seems it doesn't: git branch
3.12
* gh-118332-stop-the-world-deadlock
main
PS C:\Users\KIRILL-1\CLionProjects\cpython> ./python -m test -R 3:3 test_free_threading
Running Debug|x64 interpreter...
Using random seed: 109577804
0:00:00 Run 1 test sequentially
0:00:00 [1/1] test_free_threading
beginning 6 repetitions. Showing number of leaks (. for 0 or less, X for 10 or more)
123:456
// Ten minutes of waiting and no single run has passed |
@colesbury ./python -m test -R 3:3 test_free_threading
Running Debug|x64 interpreter...
Using random seed: 2042239677
0:00:00 Run 1 test sequentially
0:00:00 [1/1] test_free_threading
beginning 6 repetitions. Showing number of leaks (. for 0 or less, X for 10 or more)
123:456
XX. X..
test_free_threading leaked [20, 0, 0] memory blocks, sum=20 (this is fine)
test_free_threading passed in 45 min
== Tests result: SUCCESS ==
1 test OK.
Total duration: 45 min
Total tests: run=5
Total test files: run=1/1
Result: SUCCESS So, sorry for the false report. I'm going to close this. |
One thing that I would like to mention is that this test takes a long time to complete on Windows, compared to Linux (Ubuntu 20.04 on WSL). Windows: ./python -m test -v test_free_threading
Running Debug|x64 interpreter...
== CPython 3.13.0a6+ (heads/main:4a5ad8469a, May 2 2024, 11:40:34) [MSC v.1933 64 bit (AMD64)]
== Windows-10-10.0.19043-SP0 little-endian
== Python build: debug
== cwd: C:\Users\KIRILL-1\CLionProjects\cpython\build\test_python_worker_22240æ
== CPU count: 16
== encodings: locale=cp1251 FS=utf-8
== resources: all test resources are disabled, use -u option to unskip tests
Using random seed: 932841113
0:00:00 Run 1 test sequentially
0:00:00 [1/1] test_free_threading
test_register_callback (test.test_free_threading.test_monitoring.MonitoringMisc.test_register_callback) ... ok
test_instrumentation (test.test_free_threading.test_monitoring.MonitoringMultiThreaded.test_instrumentation) ... ok
test_instrumentation (test.test_free_threading.test_monitoring.SetPreTraceMultiThreaded.test_instrumentation) ... ok
test_instrumentation (test.test_free_threading.test_monitoring.SetProfileMultiThreaded.test_instrumentation) ... ok
test_instrumentation (test.test_free_threading.test_monitoring.SetTraceMultiThreaded.test_instrumentation) ... ok
----------------------------------------------------------------------
Ran 5 tests in 453.125s
OK
test_free_threading passed in 7 min 33 sec
== Tests result: SUCCESS ==
1 test OK.
Total duration: 7 min 33 sec
Total tests: run=5
Total test files: run=1/1
Result: SUCCESS Linux: ./python -m test -v test_free_threading
== CPython 3.13.0a6+ (heads/main:f8e088df2a, May 2 2024, 12:44:40) [GCC 9.4.0]
== Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.31 little-endian
== Python build: debug
== cwd: /home/eclips4/CLionProjects/cpython/build/test_python_worker_27033æ
== CPU count: 16
== encodings: locale=UTF-8 FS=utf-8
== resources: all test resources are disabled, use -u option to unskip tests
Using random seed: 2450947718
0:00:00 load avg: 0.00 Run 1 test sequentially
0:00:00 load avg: 0.00 [1/1] test_free_threading
test_register_callback (test.test_free_threading.test_monitoring.MonitoringMisc.test_register_callback) ... ok
test_instrumentation (test.test_free_threading.test_monitoring.MonitoringMultiThreaded.test_instrumentation) ... ok
test_instrumentation (test.test_free_threading.test_monitoring.SetPreTraceMultiThreaded.test_instrumentation) ... ok
test_instrumentation (test.test_free_threading.test_monitoring.SetProfileMultiThreaded.test_instrumentation) ... ok
test_instrumentation (test.test_free_threading.test_monitoring.SetTraceMultiThreaded.test_instrumentation) ... ok
----------------------------------------------------------------------
Ran 5 tests in 41.137s
OK
test_free_threading passed in 41.2 sec
== Tests result: SUCCESS ==
1 test OK.
Total duration: 41.2 sec
Total tests: run=5
Total test files: run=1/1
Result: SUCCESS So, this test on Windows is about 10 times slower, which seems weird to me. |
FYI, there's a buildbot failure: #118438 (comment) |
Closing as the issue is stale now for almost a year |
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug description:
Windows default (non free-threading) debug build, the current main branch, happens during running the regrtest:
CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows
The text was updated successfully, but these errors were encountered: