Skip to content

multiprocessing test_shared_memory_recreate is not concurrency-safe #95212

Closed
@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 security fixes3.11only security fixes3.12only security 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