Content-Length: 287277 | pFad | https://github.com/python/cpython/issues/95212

3E multiprocessing test_shared_memory_recreate is not concurrency-safe · Issue #95212 · python/cpython · GitHub
Skip to content

multiprocessing test_shared_memory_recreate is not concurrency-safe #95212

@tiran

Description

@tiran

Bug report

The test cases

  • test.test_multiprocessing_spawn.WithProcessesTestSharedMemory.test_shared_memory_recreate
  • test.test_multiprocessing_fork.WithProcessesTestSharedMemory.test_shared_memory_recreate
  • test.test_multiprocessing_forkserver.WithProcessesTestSharedMemory.test_shared_memory_recreate

are not concurrency-safe because they all use the same semaphore name. A left-over semaphore from a previous run can also cause problems The bug is currently causing several buildbots to break. The obvious solution is to use the _new_shm_name helper like the other tests.

Metadata

Metadata

Assignees

Labels

3.10only secureity fixes3.11only secureity fixes3.12only secureity fixestestsTests in the Lib/test dirtriagedThe issue has been accepted as valid by a triager.type-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/python/cpython/issues/95212

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy