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.

Title: multiprocessing: Process.join() should emit a warning if the process is killed by a signal
Type: Stage:
Components: Library (Lib) Versions: Python 3.9
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: vstinner
Priority: normal Keywords:

Created on 2020-03-11 23:10 by vstinner, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg363980 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2020-03-11 23:10
While debugging bpo-39877, I was surprising that Python crash was only noticed on FreeBSD by a side effect. On FreeBSD, coredump files are created in the current directory. But Python regrtest fails if a test creates a file and doesn't remove it.

I found that multiprocessing.Process.join() deletes the subprocess.Popen object as soon as the process completes, but it doesn't log any warning if the process is killed by a signal. The caller has no way to be notified.

I propose to enhance Process to log a warning if such case happens.
Date User Action Args
2022-04-11 14:59:28adminsetgithub: 84122
2020-03-11 23:10:56vstinnercreate