Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue30805

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:asyncio: race condition with debug and subprocess
Type:Stage:resolved
Components:asyncioVersions:Python 3.7, Python 3.6, Python 3.4, Python 3.5
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To:Nosy List: asvetlov, miss-islington, ned.deily, wg, yselivanov
Priority:normalKeywords:patch

Created on2017-06-29 17:40 bywg, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 2490closedwg,2017-06-29 17:40
PR 7545mergedyselivanov,2018-06-08 21:35
PR 7547mergedmiss-islington,2018-06-08 22:25
PR 7548mergedmiss-islington,2018-06-08 22:26
Messages (5)
msg297289 -(view)Author: William Grzybowski (wg)*Date: 2017-06-29 17:40
If a process is schedule to run in the event loop with debug disabledand debug is then enabled before the process finishes it will result ina traceback: debug_log undefined.[2017/06/29 14:39:13] (ERROR) asyncio.default_exception_handler():1261 - Task exception was never retrievedfuture: <Task finished coro=<kmod_load() done, defined at /usr/local/lib/python3.6/site-packages/middlewared/plugins/vm.py:502> exception=UnboundLocalError("local variable 'debug_log' referenced before assignment",)>Traceback (most recent call last):  File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/vm.py",line 503, in kmod_load    kldstat = (await (await Popen(['/sbin/kldstat'], stdout=subprocess.PIPE)).communicate())[0].decode()  File "/usr/local/lib/python3.6/asyncio/subprocess.py", line 225, in create_subprocess_exec    stderr=stderr, **kwds)  File "/usr/local/lib/python3.6/asyncio/base_events.py", line 1194, in subprocess_exec    logger.info('%s: %r', debug_log, transport)
msg319105 -(view)Author: Ned Deily (ned.deily)*(Python committer)Date: 2018-06-08 20:32
@yselivanov, @asvetlov: ping on the languishing PR
msg319113 -(view)Author: Yury Selivanov (yselivanov)*(Python committer)Date: 2018-06-08 22:24
New changeset12f482e0ae33021c04264294f33fa6baa9617cec by Yury Selivanov in branch 'master':bpo-30805: Avoid race condition with debug logging (GH-7545)https://github.com/python/cpython/commit/12f482e0ae33021c04264294f33fa6baa9617cec
msg319114 -(view)Author: miss-islington (miss-islington)Date: 2018-06-08 22:42
New changeset21f4c780a1de99bdb37abf57445f0c942449b45b by Miss Islington (bot) in branch '3.7':bpo-30805: Avoid race condition with debug logging (GH-7545)https://github.com/python/cpython/commit/21f4c780a1de99bdb37abf57445f0c942449b45b
msg319115 -(view)Author: miss-islington (miss-islington)Date: 2018-06-08 22:47
New changeset234b53f8b5d0615051025be26cf8adecbc346c57 by Miss Islington (bot) in branch '3.6':bpo-30805: Avoid race condition with debug logging (GH-7545)https://github.com/python/cpython/commit/234b53f8b5d0615051025be26cf8adecbc346c57
History
DateUserActionArgs
2022-04-11 14:58:48adminsetgithub: 74988
2018-06-08 22:53:34yselivanovsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2018-06-08 22:47:47miss-islingtonsetmessages: +msg319115
2018-06-08 22:42:09miss-islingtonsetnosy: +miss-islington
messages: +msg319114
2018-06-08 22:26:48miss-islingtonsetpull_requests: +pull_request7181
2018-06-08 22:25:56miss-islingtonsetpull_requests: +pull_request7180
2018-06-08 22:24:40yselivanovsetmessages: +msg319113
2018-06-08 21:35:58yselivanovsetkeywords: +patch
stage: patch review
pull_requests: +pull_request7178
2018-06-08 20:32:14ned.deilysetnosy: +asvetlov,ned.deily
messages: +msg319105
2017-06-29 17:40:25wgcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp