Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_asyncio: test_popen() failed on AMD64 Windows8.1 Refleaks 3.9 #88453

Closed
vstinner opened this issue Jun 2, 2021 · 4 comments
Closed

test_asyncio: test_popen() failed on AMD64 Windows8.1 Refleaks 3.9 #88453

vstinner opened this issue Jun 2, 2021 · 4 comments
Labels
3.9 only security fixes 3.10 only security fixes 3.11 only security fixes topic-asyncio

Comments

@vstinner
Copy link
Member

vstinner commented Jun 2, 2021

BPO 44287
Nosy @vstinner, @asvetlov, @1st1, @miss-islington
PRs
  • bpo-44287: asyncio test_popen() uses longer timeout #26832
  • [3.10] bpo-44287: asyncio test_popen() uses longer timeout (GH-26832) #26841
  • [3.9] bpo-44287: asyncio test_popen() uses longer timeout (GH-26832) #26842
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2021-06-22.09:08:41.065>
    created_at = <Date 2021-06-02.14:34:03.690>
    labels = ['3.11', '3.9', '3.10', 'expert-asyncio']
    title = 'test_asyncio: test_popen() failed on AMD64 Windows8.1 Refleaks 3.9'
    updated_at = <Date 2021-06-22.09:08:41.061>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2021-06-22.09:08:41.061>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-06-22.09:08:41.065>
    closer = 'vstinner'
    components = ['asyncio']
    creation = <Date 2021-06-02.14:34:03.690>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 44287
    keywords = ['patch']
    message_count = 4.0
    messages = ['394915', '396302', '396303', '396304']
    nosy_count = 4.0
    nosy_names = ['vstinner', 'asvetlov', 'yselivanov', 'miss-islington']
    pr_nums = ['26832', '26841', '26842']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue44287'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    @vstinner
    Copy link
    Member Author

    vstinner commented Jun 2, 2021

    AMD64 Windows8.1 Refleaks 3.9:
    https://buildbot.python.org/all/#/builders/6/builds/31

    2:16:22 load avg: 7.33 [364/425/2] test_asyncio crashed (Exit code 1) -- running: test_decimal (2 min 33 sec), test_dbm (2 min 53 sec), test_bufio (18 min 18 sec)
    ["test_asyncio", 0, 268.7466852, null]
    beginning 6 repetitions
    123456
    D:\buildarea\3.9.ware-win81-release.refleak\build\lib\subprocess.py:1052: ResourceWarning: subprocess 2724 is still running
      _warn("subprocess %s is still running" % self.pid,
    ResourceWarning: Enable tracemalloc to get the object allocation traceback
    D:\buildarea\3.9.ware-win81-release.refleak\build\lib\asyncio\windows_utils.py:112: ResourceWarning: unclosed <PipeHandle handle=2008>
      _warn(f"unclosed {self!r}", ResourceWarning, source=self)
    ResourceWarning: Enable tracemalloc to get the object allocation traceback
    D:\buildarea\3.9.ware-win81-release.refleak\build\lib\asyncio\windows_utils.py:112: ResourceWarning: unclosed <PipeHandle handle=1364>
      _warn(f"unclosed {self!r}", ResourceWarning, source=self)
    ResourceWarning: Enable tracemalloc to get the object allocation traceback
    D:\buildarea\3.9.ware-win81-release.refleak\build\lib\asyncio\windows_utils.py:112: ResourceWarning: unclosed <PipeHandle handle=1968>
      _warn(f"unclosed {self!r}", ResourceWarning, source=self)
    ResourceWarning: Enable tracemalloc to get the object allocation traceback
    test test_asyncio failed -- Traceback (most recent call last):
      File "D:\buildarea\3.9.ware-win81-release.refleak\build\lib\test\test_asyncio\test_windows_utils.py", line 111, in test_popen
        self.assertEqual(res, _winapi.WAIT_OBJECT_0)
    AssertionError: 258 != 0
    
    Traceback (most recent call last):
      File "D:\buildarea\3.9.ware-win81-release.refleak\build\lib\test\support\__init__.py", line 906, in temp_dir
        yield path
      File "D:\buildarea\3.9.ware-win81-release.refleak\build\lib\test\support\__init__.py", line 958, in temp_cwd
        yield cwd_dir
      File "D:\buildarea\3.9.ware-win81-release.refleak\build\lib\test\libregrtest\main.py", line 638, in main
        self._main(tests, kwargs)
      File "D:\buildarea\3.9.ware-win81-release.refleak\build\lib\test\libregrtest\main.py", line 658, in _main
        run_tests_worker(self.ns, self.worker_test_name)
      File "D:\buildarea\3.9.ware-win81-release.refleak\build\lib\test\libregrtest\runtest_mp.py", line 86, in run_tests_worker
        sys.exit(0)
    SystemExit: 0
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "D:\buildarea\3.9.ware-win81-release.refleak\build\lib\test\support\__init__.py", line 329, in _force_run
        return func(*args)
    PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'D:\\buildarea\\3.9.ware-win81-release.refleak\\build\\build\\test_python_6648�\\test_python_worker_1760�'
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "D:\buildarea\3.9.ware-win81-release.refleak\build\lib\runpy.py", line 197, in _run_module_as_main
        return _run_code(code, main_globals, None,
      File "D:\buildarea\3.9.ware-win81-release.refleak\build\lib\runpy.py", line 87, in _run_code
        exec(code, run_globals)
      File "D:\buildarea\3.9.ware-win81-release.refleak\build\lib\test\regrtest.py", line 47, in <module>
        _main()
      File "D:\buildarea\3.9.ware-win81-release.refleak\build\lib\test\regrtest.py", line 43, in _main
        main()
      File "D:\buildarea\3.9.ware-win81-release.refleak\build\lib\test\libregrtest\main.py", line 716, in main
        Regrtest().main(tests=tests, **kwargs)
      File "D:\buildarea\3.9.ware-win81-release.refleak\build\lib\test\libregrtest\main.py", line 638, in main
        self._main(tests, kwargs)
      File "D:\buildarea\3.9.ware-win81-release.refleak\build\lib\contextlib.py", line 135, in __exit__
        self.gen.throw(type, value, traceback)
      File "D:\buildarea\3.9.ware-win81-release.refleak\build\lib\test\support\__init__.py", line 958, in temp_cwd
        yield cwd_dir
      File "D:\buildarea\3.9.ware-win81-release.refleak\build\lib\contextlib.py", line 135, in __exit__
        self.gen.throw(type, value, traceback)
      File "D:\buildarea\3.9.ware-win81-release.refleak\build\lib\test\support\__init__.py", line 911, in temp_dir
        rmtree(path)
      File "D:\buildarea\3.9.ware-win81-release.refleak\build\lib\test\support\__init__.py", line 452, in rmtree
        _rmtree(path)
      File "D:\buildarea\3.9.ware-win81-release.refleak\build\lib\test\support\__init__.py", line 393, in _rmtree
        _waitfor(lambda p: _force_run(p, os.rmdir, p), path)
      File "D:\buildarea\3.9.ware-win81-release.refleak\build\lib\test\support\__init__.py", line 340, in _waitfor
        func(pathname)
      File "D:\buildarea\3.9.ware-win81-release.refleak\build\lib\test\support\__init__.py", line 393, in <lambda>
        _waitfor(lambda p: _force_run(p, os.rmdir, p), path)
      File "D:\buildarea\3.9.ware-win81-release.refleak\build\lib\test\support\__init__.py", line 335, in _force_run
        return func(*args)
    PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'D:\\buildarea\\3.9.ware-win81-release.refleak\\build\\build\\test_python_6648�\\test_python_worker_1760�'

    @vstinner vstinner added 3.9 only security fixes topic-asyncio labels Jun 2, 2021
    @vstinner
    Copy link
    Member Author

    New changeset be1cb32 by Victor Stinner in branch 'main':
    bpo-44287: asyncio test_popen() uses longer timeout (GH-26832)
    be1cb32

    @miss-islington
    Copy link
    Contributor

    New changeset c032a12 by Miss Islington (bot) in branch '3.10':
    bpo-44287: asyncio test_popen() uses longer timeout (GH-26832)
    c032a12

    @miss-islington
    Copy link
    Contributor

    New changeset 0ff487b by Miss Islington (bot) in branch '3.9':
    bpo-44287: asyncio test_popen() uses longer timeout (GH-26832)
    0ff487b

    @vstinner vstinner added 3.10 only security fixes 3.11 only security fixes labels Jun 22, 2021
    @vstinner vstinner added 3.10 only security fixes 3.11 only security fixes labels Jun 22, 2021
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.9 only security fixes 3.10 only security fixes 3.11 only security fixes topic-asyncio
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants