[issue42636] shielded task exception never retrieved when outer task cancelled
Martin Natano added the comment: How would calling `outer.exception()` suppress the message? This happens when the outer task is cancelled while the inner task is still running. In that case the exception is never set on outer. -- ___ Python tracker <https://bugs.python.org/issue42636> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42636] shielded task exception never retrieved when outer task cancelled
Martin Natano added the comment: I'm not sure how to fix this, but here is a regression test for the issue. (failing on the current master branch) -- keywords: +patch Added file: https://bugs.python.org/file49680/regression-test.patch ___ Python tracker <https://bugs.python.org/issue42636> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42636] shielded task exception never retrieved when outer task cancelled
New submission from Martin Natano : A task created with asyncio.shield() never retrieves the task exception, which results in a log message being generated. See the attached script for a minimal example. Output looks something like this: Task exception was never retrieved future: exception=Exception('foo')> Traceback (most recent call last): File "/Users/natano/python-bug/trigger-warning.py", line 6, in some_coroutine raise Exception('foo') Exception: foo I believe this behaviour is not intended and is an unintended side-effect of commit b35acc5b3a0148c5fd4462968b310fb436726d5a (https://github.com/python/cpython/commit/b35acc5b3a0148c5fd4462968b310fb436726d5a). The _inner_done_callback has has code to retrieve the exception when the outer task was cancelled, but since that commit the _inner_done_callback is not called anymore when the outer task was cancelled. (Tested with 3.8, 3.9 and 3.10. I don't have a python 3.7 version available for testing, but I think this issue also affects 3.7.) -- components: asyncio files: trigger-warning.py messages: 382975 nosy: asvetlov, natano, yselivanov priority: normal severity: normal status: open title: shielded task exception never retrieved when outer task cancelled versions: Python 3.10, Python 3.7, Python 3.8, Python 3.9 Added file: https://bugs.python.org/file49679/trigger-warning.py ___ Python tracker <https://bugs.python.org/issue42636> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42306] wrong exception handling in case asyncio.shiled usage
Martin Natano added the comment: I just verified that this is not an issue in python 3.8.6 and python 3.9.0. In those versions a normal stacktrace is generated, as expected. -- nosy: +natano ___ Python tracker <https://bugs.python.org/issue42306> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19853] Add support for Bitrig
New submission from Martin Natano: This patch adds support for Bitrig to 2.7. -- components: Build files: cpython2.7-bitrig.patch keywords: patch messages: 204930 nosy: Martin.Natano priority: normal severity: normal status: open title: Add support for Bitrig versions: Python 2.7 Added file: http://bugs.python.org/file32929/cpython2.7-bitrig.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19853 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19854] Add support for Bitrig to 3.4
New submission from Martin Natano: This patch adds support for Bitrig to 3.4. -- components: Build files: cpython3.4-bitrig.patch keywords: patch messages: 204931 nosy: Martin.Natano priority: normal severity: normal status: open title: Add support for Bitrig to 3.4 versions: Python 3.4 Added file: http://bugs.python.org/file32930/cpython3.4-bitrig.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19854 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19853] Add support for Bitrig to 2.7
Changes by Martin Natano natanopta...@gmail.com: -- title: Add support for Bitrig - Add support for Bitrig to 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19853 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com