Skip to content
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

multiprocessing test_processes: test_thread_safety() fails with: Assertion failed: gc_list_is_empty(to) || gc_old_space(to_tail) == gc_old_space(from_tail) #117252

Closed
vstinner opened this issue Mar 26, 2024 · 1 comment
Labels
tests Tests in the Lib/test dir topic-multiprocessing

Comments

@vstinner
Copy link
Member

Example on Windows: https://buildbot.python.org/all/#/builders/146/builds/8146

test_thread_safety (test.test_multiprocessing_spawn.test_processes.WithProcessesTestFinalize.test_thread_safety) ... 
Assertion failed: gc_list_is_empty(to) || gc_old_space(to_tail) == gc_old_space(from_tail), file d:\buildarea\3.x.bolen-windows10\build\python\gc.c, line 322
Fatal Python error: Aborted

Current thread 0x00002a64 (most recent call first):
  Garbage-collecting
  File "D:\buildarea\3.x.bolen-windows10\build\Lib\test\_test_multiprocessing.py", line 4631 in __init__
  File "__init__", line ??? in __init__
  File "D:\buildarea\3.x.bolen-windows10\build\Lib\test\_test_multiprocessing.py", line 4657 in make_finalizers
  File "D:\buildarea\3.x.bolen-windows10\build\Lib\threading.py", line 990 in run
  File "D:\buildarea\3.x.bolen-windows10\build\Lib\threading.py", line 1039 in _bootstrap_inner
  File "D:\buildarea\3.x.bolen-windows10\build\Lib\threading.py", line 1010 in _bootstrap

It may be related to the change: #117120

See: #117120 (comment)

The change PR gh-117213 should fix this issue.

@vstinner vstinner added tests Tests in the Lib/test dir topic-multiprocessing labels Mar 26, 2024
@vstinner vstinner changed the title multiprocessing test_processes() fails with: Assertion failed: gc_list_is_empty(to) || gc_old_space(to_tail) == gc_old_space(from_tail) multiprocessing test_processes: test_thread_safety() fails with: Assertion failed: gc_list_is_empty(to) || gc_old_space(to_tail) == gc_old_space(from_tail) Mar 26, 2024
@vstinner
Copy link
Member Author

Should be fixed by the change 8bef34f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir topic-multiprocessing
Projects
None yet
Development

No branches or pull requests

1 participant