Author mattbillenstein
Recipients mattbillenstein, ned.deily, ronaldoussoren, vstinner
Date 2017-06-20.12:49:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I've been debugging this and I can repro on El Capitan on a different machine as well -- it's an infrequent hang, I've been running in a loop:

mattb@mattb-mbp:~/src/misc/cpython master$ for i in $(seq 1000); do echo "Run: $i -- $(date)"; time./python.exe -m test --timeout 180 test_multiprocessing_forkserver || break; sleep 10; done

And in this case after ~30 successful runs:

Run: 31 -- Tue Jun 20 05:12:19 PDT 2017
Run tests sequentially
0:00:00 load avg: 4.28 [1/1] test_multiprocessing_forkserver
Timeout (0:03:00)!
Thread 0x00007fffa1b3a3c0 (most recent call first):
  File "/Users/mattb/src/misc/cpython/Lib/", line 415 in select
  File "/Users/mattb/src/misc/cpython/Lib/multiprocessing/", line 916 in wait
  File "/Users/mattb/src/misc/cpython/Lib/multiprocessing/", line 45 in wait
  File "/Users/mattb/src/misc/cpython/Lib/multiprocessing/", line 121 in join
  File "/Users/mattb/src/misc/cpython/Lib/test/", line 431 in test_many_processes
  File "/Users/mattb/src/misc/cpython/Lib/unittest/", line 605 in run
  File "/Users/mattb/src/misc/cpython/Lib/unittest/", line 653 in __call__
  File "/Users/mattb/src/misc/cpython/Lib/unittest/", line 122 in run
  File "/Users/mattb/src/misc/cpython/Lib/unittest/", line 84 in __call__
  File "/Users/mattb/src/misc/cpython/Lib/unittest/", line 122 in run
  File "/Users/mattb/src/misc/cpython/Lib/unittest/", line 84 in __call__
  File "/Users/mattb/src/misc/cpython/Lib/unittest/", line 122 in run
  File "/Users/mattb/src/misc/cpython/Lib/unittest/", line 84 in __call__
  File "/Users/mattb/src/misc/cpython/Lib/test/support/", line 1772 in run
  File "/Users/mattb/src/misc/cpython/Lib/test/support/", line 1896 in _run_suite
  File "/Users/mattb/src/misc/cpython/Lib/test/support/", line 1936 in run_unittest
  File "/Users/mattb/src/misc/cpython/Lib/test/libregrtest/", line 168 in test_runner
  File "/Users/mattb/src/misc/cpython/Lib/test/libregrtest/", line 169 in runtest_inner
  File "/Users/mattb/src/misc/cpython/Lib/test/libregrtest/", line 137 in runtest
  File "/Users/mattb/src/misc/cpython/Lib/test/libregrtest/", line 374 in run_tests_sequential
  File "/Users/mattb/src/misc/cpython/Lib/test/libregrtest/", line 454 in run_tests
  File "/Users/mattb/src/misc/cpython/Lib/test/libregrtest/", line 530 in _main
  File "/Users/mattb/src/misc/cpython/Lib/test/libregrtest/", line 504 in main
  File "/Users/mattb/src/misc/cpython/Lib/test/libregrtest/", line 573 in main
  File "/Users/mattb/src/misc/cpython/Lib/test/", line 2 in <module>
  File "/Users/mattb/src/misc/cpython/Lib/", line 85 in _run_code
  File "/Users/mattb/src/misc/cpython/Lib/", line 193 in _run_module_as_main

real    3m0.115s
user    0m5.804s
sys     0m0.683s

I also ran ~600 passes overnight on this test on an Ubuntu 16.04 machine without a hang, so it seems to be OSX specific.
Date User Action Args
2017-06-20 12:49:28mattbillensteinsetrecipients: + mattbillenstein, ronaldoussoren, vstinner, ned.deily
2017-06-20 12:49:28mattbillensteinsetmessageid: <>
2017-06-20 12:49:28mattbillensteinlinkissue30703 messages
2017-06-20 12:49:27mattbillensteincreate