Author mrshanth
Recipients mrshanth
Date 2021-06-10.12:27:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1623328035.9.0.197827548789.issue44377@roundup.psfhosted.org>
In-reply-to
Content
Under multiprocessing package, in pool.py, when an error occurs on line 122:
result = (True, func(*args, **kwds))

The exception "e" has the error message due to execution of the function that is executed in parallel. 

However, the error message is lost when another error is occurred due to the execution of following line 128:
put((job, i, result))

The MaybeEncodingError masks or truncates the original error message, due to the following line at 130:
MaybeEncodingError(e, result[1])

where the repr function in the class truncates the message. 

The final error message has pickling error and the masked error of the actual execution.
History
Date User Action Args
2021-06-10 12:27:15mrshanthsetrecipients: + mrshanth
2021-06-10 12:27:15mrshanthsetmessageid: <1623328035.9.0.197827548789.issue44377@roundup.psfhosted.org>
2021-06-10 12:27:15mrshanthlinkissue44377 messages
2021-06-10 12:27:15mrshanthcreate