[New-bugs-announce] [issue24213] ProcessPoolExecutor().map() fails following an identical map()

OceanEngineer report at bugs.python.org
Sun May 17 00:53:14 CEST 2015


New submission from OceanEngineer:

Attached file runs fine. Uncommenting line 19 makes python crash. Also, no crash happens if order of execution of map() and executor.map() is switched.

This problem seems to be related to numpy in some way, the code does not crash if the commented return of function user_square is substituted for numpy functions.

Using a mac with Yosemite 10.10.3. When program crashed I get window that says:

"
Python quit unexpectedly.

Click Reopen to open the application again. Click Report to see more detailed information and send a report to Apple.
"

This is the traceback:

Traceback (most recent call last):
  File "processExample.py", line 27, in <module>
    main()
  File "processExample.py", line 22, in main
    result3 = list(executor.map(user_square, nums))
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/concurrent/futures/_base.py", line 549, in result_iterator
    yield future.result()
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/concurrent/futures/_base.py", line 402, in result
    return self.__get_result()
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/concurrent/futures/_base.py", line 354, in __get_result
    raise self._exception
concurrent.futures.process.BrokenProcessPool: A process in the process pool was terminated abruptly while the future was running or pending.

----------
components: Library (Lib)
files: processExample.py
messages: 243375
nosy: OceanEngineer
priority: normal
severity: normal
status: open
title: ProcessPoolExecutor().map() fails following an identical map()
type: crash
versions: Python 3.4
Added file: http://bugs.python.org/file39399/processExample.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24213>
_______________________________________


More information about the New-bugs-announce mailing list