This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author knl
Recipients Andrei Pozolotin, asvetlov, knl, yselivanov
Date 2021-06-29.14:29:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1624976989.33.0.965241130066.issue43832@roundup.psfhosted.org>
In-reply-to
Content
I was trying to reproduce the problem and can get the core dump to happen with a smaller program as well -- it doesn't seem related to asyncio specifically but seems to be a bug with multiprocessing.Event (or probably the primitives inside it).

```
#!/usr/bin/env python

import time
import multiprocessing


def master_func(event) -> None:
    print(f"Child: {event = }")
    print(f"Child: {event.is_set() = }") # Crashes here with SIGSEGV in sem_trywait
    print("Completed")


if __name__ == "__main__":
    event = multiprocessing.Event()
    context_spawn = multiprocessing.get_context("spawn")
    proc = context_spawn.Process(target=master_func, args=(event, ))
    proc.start()
    print(f"Parent: {event = }")
    print(f"Parent: {event.is_set() = }")
    proc.join()
```

Switching to fork instead of spawn bypasses the issue. Trying to dig into this a little bit more.
History
Date User Action Args
2021-06-29 14:29:49knlsetrecipients: + knl, asvetlov, yselivanov, Andrei Pozolotin
2021-06-29 14:29:49knlsetmessageid: <1624976989.33.0.965241130066.issue43832@roundup.psfhosted.org>
2021-06-29 14:29:49knllinkissue43832 messages
2021-06-29 14:29:49knlcreate