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 vstinner
Recipients vstinner
Date 2020-04-27.21:26:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588022810.67.0.295026123885.issue39995@roundup.psfhosted.org>
In-reply-to
Content
> It seems like Connection.close() was called while Connection._send() was called. I added debug logs:

The connection was closed by terminate_broken() called by _ExecutorManagerThread.run() thread:

test_killed_child (test.test_concurrent_futures.ProcessPoolSpawnProcessPoolExecutorTest) ... close handle 4
  File "/home/vstinner/python/master/Lib/threading.py", line 908, in _bootstrap
    self._bootstrap_inner()
  File "/home/vstinner/python/master/Lib/threading.py", line 950, in _bootstrap_inner
    self.run()
  File "/home/vstinner/python/master/Lib/concurrent/futures/process.py", line 313, in run
    self.terminate_broken(cause)
  File "/home/vstinner/python/master/Lib/concurrent/futures/process.py", line 456, in terminate_broken
    self.join_executor_internals()
  File "/home/vstinner/python/master/Lib/concurrent/futures/process.py", line 503, in join_executor_internals
    self.thread_wakeup.close()
  File "/home/vstinner/python/master/Lib/concurrent/futures/process.py", line 75, in close
    self._writer.close()
History
Date User Action Args
2020-04-27 21:26:50vstinnersetrecipients: + vstinner
2020-04-27 21:26:50vstinnersetmessageid: <1588022810.67.0.295026123885.issue39995@roundup.psfhosted.org>
2020-04-27 21:26:50vstinnerlinkissue39995 messages
2020-04-27 21:26:50vstinnercreate