multiprocessing's default posix start method of `'fork'` is broken: change to ``'forkserver' || 'spawn'`

itamarst · GitHub

BPO

40379

Nosy

@pitrou

,

@mgorny

,

@Julian

,

@wimglenn

,

@applio

,

@itamarst

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more detailsGitHub fields:

assignee=Noneclosed_at=Nonecreated_at=<Date2020-04-24.18:22:23.389>labels= ['3.8', 'type-bug', '3.7', '3.9'] title="multiprocessing's default start method of fork()-without-exec() is broken"updated_at=<Date2022-02-11.16:13:53.872>user='https://bugs.python.org/itamarst'bugs.python.org fields:

activity=<Date2022-02-11.16:13:53.872>actor='mgorny'assignee='none'closed=Falseclosed_date=Nonecloser=Nonecomponents= [] creation=<Date2020-04-24.18:22:23.389>creator='itamarst'dependencies= [] files= [] hgrepos= [] issue_num=40379keywords= [] message_count=11.0messages= ['367210', '367211', '368173', '380478', '392358', '392501', '392503', '392506', '392507', '392508', '413081'] nosy_count=8.0nosy_names= ['pitrou', 'mgorny', 'Julian', 'wim.glenn', 'itamarst', 'davin', 'itamarst2', 'aduncan'] pr_nums= [] priority='normal'resolution=Nonestage=Nonestatus='open'superseder=Nonetype='behavior'url='https://bugs.python.org/issue40379'versions= ['Python 3.5', 'Python 3.6', 'Python 3.7', 'Python 3.8', 'Python 3.9']Linked PRs

GH-84559: Deprecate fork being the multiprocessing default. #100618

gh-84559: skip the test when no multiprocessing (wasm, etc) #101530

gh-84559: Remove the new multiprocessing warning, too disruptive. #101551

gh-84559: Change the multiprocessing start method default to forkserver #101556

gh-84559: gh-103134: Whats new 3.14 entries for multiprocessing. #126697

gh-84559: multiprocessing: detect if forkserver cannot work due to missing hmac-sha256 #127467

gh-84559: improve What's New entry for multiprocessing start method changes #128173

[3.13] gh-84559: improve What's New entry for multiprocessing startmethod changes (GH-128173) #137156