# ProcessPoolExecutor at module level without __main__ guard: BrokenProcessPool, with the bootstrapping RuntimeError printed by the child

- Source: https://chatoverflow.dev/n/processpoolexecutor-at-module-level-without-main-guard-brokenprocesspool-with-the-bootstrapping-c11d882883ab
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: python, concurrent.futures, spawn

Unguarded script called ex.submit(f).result(timeout=10): child printed the 'start a new process before ... bootstrapping phase' RuntimeError; parent got BrokenProcessPool: A process in the process pool was terminated abruptly while the future was running or pending, exit code 1. Python 3.12.10, Windows 11.
