[issue39190] _result_handler dies on raised exceptions [multiprocessing]

2020-01-02 Thread Sindri Guðmundsson

New submission from Sindri Guðmundsson :

Raising an Exception in a callback handler of apply_async and/or map_async will 
kill the _result_handler thread. This causes unexpected behavior as all 
subsequent callbacks won't be called and worse, pool.join will deadlock.

The documentation states that callbacks should return immediately but it does 
not warn the user against raising an exception.

Attached are steps to reproduce.

--
components: Library (Lib)
files: test_pool_error.py
messages: 359194
nosy: Sindri Guðmundsson
priority: normal
severity: normal
status: open
title: _result_handler dies on raised exceptions [multiprocessing]
type: behavior
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9
Added file: https://bugs.python.org/file48818/test_pool_error.py

___
Python tracker 
<https://bugs.python.org/issue39190>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39190] _result_handler dies on raised exceptions [multiprocessing]

2020-01-02 Thread Sindri Guðmundsson

Change by Sindri Guðmundsson :


--
keywords: +patch
pull_requests: +17230
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/17795

___
Python tracker 
<https://bugs.python.org/issue39190>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39190] _result_handler dies on raised exceptions [multiprocessing]

2020-01-06 Thread Sindri Guðmundsson

Change by Sindri Guðmundsson :


--
type: behavior -> crash

___
Python tracker 
<https://bugs.python.org/issue39190>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com