[issue35311] exception unpickling error causes `multiprocessing.Pool` to hang forever

2018-11-28 Thread SilentGhost
Change by SilentGhost : -- nosy: +alexandre.vassalotti type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35311] exception unpickling error causes `multiprocessing.Pool` to hang forever

2018-11-25 Thread Anthony Sottile
Anthony Sottile added the comment: `concurrent.futures` is affected as well: ``` import concurrent.futures class E(Exception): def __init__(self, a1, a2): Exception.__init__(self, '{}{}'.format(a1, a2)) def f(_): raise E(1, 2) with concurrent.futures.ProcessPoolExecutor(2)

[issue35311] exception unpickling error causes `multiprocessing.Pool` to hang forever

2018-11-25 Thread Anthony Sottile
New submission from Anthony Sottile : ``` import multiprocessing class E(Exception): def __init__(self, a1, a2): Exception.__init__(self, '{}{}'.format(a1, a2)) def f(_): raise E(1, 2) multiprocessing.Pool(1).map(f, (1,)) ``` Running this causes a hang: ``` $ python3.7