[issue45298] SIGSEGV when access a fork Event in a spawn Process

2022-01-23 Thread Irit Katriel
Irit Katriel added the comment: Which python version and system are you seeing this on? On 3.11 on a Mac I don't get a segfault but rather Process SpawnProcess-1: Traceback (most recent call last): File "/Users/iritkatriel/src/cpython/Lib/multiprocessing/process.py", line 315, in

[issue45298] SIGSEGV when access a fork Event in a spawn Process

2021-09-26 Thread Keming
New submission from Keming : Code to trigger this problem: ```python import multiprocessing as mp from time import sleep def wait_for_event(event): while not event.is_set(): sleep(0.1) def trigger_segment_fault(): event = mp.get_context("fork").Event() p =