colesbury / nogil-3.12

Multithreaded Python without the GIL (experimental rebase on 3.12)
Other
143 stars 7 forks source link

3.12 rebase checklist #2

Closed colesbury closed 1 year ago

colesbury commented 1 year ago
colesbury commented 1 year ago

More recent changes (not all need to be rebased):

colesbury commented 1 year ago

Deferred tasks:

colesbury commented 1 year ago

Dictionary TODOs:

colesbury commented 1 year ago

TSAN races to fix:

colesbury commented 1 year ago

Remaining nogil bugs:

Stack (most recent call first): File "/raid/sgross/nogil/Lib/threading.py", line 329 in wait File "/raid/sgross/nogil/Lib/threading.py", line 636 in wait File "/raid/sgross/nogil/Lib/test/test_import/init.py", line 462 in run File "/raid/sgross/nogil/Lib/threading.py", line 965 in run File "/raid/sgross/nogil/Lib/threading.py", line 1014 in _bootstrap_inner File "/raid/sgross/nogil/Lib/threading.py", line 985 in _bootstrap


- [x] test_sys (test_current_exceptions)

Warning -- threading_cleanup() failed to cleanup 1 threads (count: 1, dangling: 2) Warning -- Dangling thread: <Thread(Thread-1 (f123), started 139718199457536)> Warning -- Dangling thread: <_MainThread(MainThread, started 139718204011136)> Warning -- threading._dangling was modified by test_sys Warning -- Before: {<weakref at 0x4804cf0a460; to '_MainThread' at 0x4804c383be0>} Warning -- After: {<weakref at 0x4804cf08f60; to 'Thread' at 0x4804d1c0a20>, <weakref at 0x4804cf0bff0; to '_MainThread' at 0x4804c383be0>} test test_sys failed -- Traceback (most recent call last): File "/raid/sgross/nogil/Lib/test/support/threading_helper.py", line 63, in decorator return func(*args) ^^^^^^^^^^^ File "/raid/sgross/nogil/Lib/test/test_sys.py", line 520, in test_current_exceptions stack = traceback.extract_stack(exc_tb.tb_frame) ^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'tb_frame'

{"name": "test_sys", "duration_sec": 4.2834788602776825, "xml_data": null, "errors": [["test_current_exceptions (test.test_sys.SysModuleTest.test_current_exceptions)", "Traceback (most recent call last):\ n File \"/raid/sgross/nogil/Lib/test/support/threading_helper.py\", line 63, in decorator\n return func(*args)\n ^^^^^^^^^^^\n File \"/raid/sgross/nogil/Lib/test/test_sys.py\", line 520, in test_current_exceptions\n stack = traceback.extract_stack(exc_tb.tb_frame)\n ^^^^^^^^^^^^^^^\nAttributeError: 'NoneType' object has no attribute 'tb_frame'\n"]], "fa ilures": [], "__test_result__": "Failed"} Timeout (0:02:00)! Thread 0x00007f12ada5b700 (most recent call first): File "/raid/sgross/nogil/Lib/threading.py", line 340 in wait File "/raid/sgross/nogil/Lib/threading.py", line 636 in wait File "/raid/sgross/nogil/Lib/test/test_sys.py", line 493 in g456 File "/raid/sgross/nogil/Lib/test/test_sys.py", line 484 in f123 File "/raid/sgross/nogil/Lib/threading.py", line 965 in run File "/raid/sgross/nogil/Lib/threading.py", line 1014 in _bootstrap_inner File "/raid/sgross/nogil/Lib/threading.py", line 985 in _bootstrap

Thread 0x00007f12adeb3280 (most recent call first): File "/raid/sgross/nogil/Lib/threading.py", line 1478 in _shutdown