Skip to content

test_asyncio: SubprocessMultiLoopWatcherTests.test_stdin_stdout() failed on AMD64 FreeBSD 10-STABLE Non-Debug 3.x #82363

Description

@vstinner
BPO 38182
Nosy @vstinner, @asvetlov, @1st1
Superseder
  • bpo-38323: asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)
  • 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 2020-02-07.10:53:52.645>
    created_at = <Date 2019-09-16.07:28:52.215>
    labels = ['3.8', 'tests', '3.9', 'expert-asyncio']
    title = 'test_asyncio: SubprocessMultiLoopWatcherTests.test_stdin_stdout() failed on AMD64 FreeBSD 10-STABLE Non-Debug 3.x'
    updated_at = <Date 2020-02-07.10:53:52.644>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2020-02-07.10:53:52.644>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-02-07.10:53:52.645>
    closer = 'vstinner'
    components = ['Tests', 'asyncio']
    creation = <Date 2019-09-16.07:28:52.215>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 38182
    keywords = []
    message_count = 3.0
    messages = ['352521', '352522', '361575']
    nosy_count = 3.0
    nosy_names = ['vstinner', 'asvetlov', 'yselivanov']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '38323'
    type = None
    url = 'https://bugs.python.org/issue38182'
    versions = ['Python 3.8', 'Python 3.9']

    Activity

    1. vstinner commented on Sep 16, 2019

      @vstinner
      MemberAuthor

      AMD64 FreeBSD 10-STABLE Non-Debug 3.x:
      https://buildbot.python.org/all/#/builders/167/builds/1535

      ======================================================================
      ERROR: test_stdin_stdout (test.test_asyncio.test_subprocess.SubprocessMultiLoopWatcherTests)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "/usr/home/buildbot/python/3.x.koobs-freebsd10.nondebug/build/Lib/test/test_asyncio/test_subprocess.py", line 129, in test_stdin_stdout
          exitcode, stdout = self.loop.run_until_complete(task)
        File "/usr/home/buildbot/python/3.x.koobs-freebsd10.nondebug/build/Lib/asyncio/base_events.py", line 608, in run_until_complete
          return future.result()
        File "/usr/home/buildbot/python/3.x.koobs-freebsd10.nondebug/build/Lib/asyncio/tasks.py", line 490, in wait_for
          raise exceptions.TimeoutError()
      asyncio.exceptions.TimeoutError

      and then when asyncio is re-run in verbose mode:

      ERROR: test_stdin_stdout (test.test_asyncio.test_subprocess.SubprocessMultiLoopWatcherTests)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "/usr/home/buildbot/python/3.x.koobs-freebsd10.nondebug/build/Lib/test/test_asyncio/test_subprocess.py", line 129, in test_stdin_stdout
          exitcode, stdout = self.loop.run_until_complete(task)
        File "/usr/home/buildbot/python/3.x.koobs-freebsd10.nondebug/build/Lib/asyncio/base_events.py", line 608, in run_until_complete
          return future.result()
        File "/usr/home/buildbot/python/3.x.koobs-freebsd10.nondebug/build/Lib/asyncio/tasks.py", line 490, in wait_for
          raise exceptions.TimeoutError()
      asyncio.exceptions.TimeoutError
    2. changed the title [-]test_asyncio.test_subprocess: test_stdin_stdout() failed on AMD64 FreeBSD 10-STABLE Non-Debug 3.x[/-] [+]test_asyncio: SubprocessMultiLoopWatcherTests.test_stdin_stdout() failed on AMD64 FreeBSD 10-STABLE Non-Debug 3.x[/+] on Sep 16, 2019
    3. vstinner commented on Sep 16, 2019

      @vstinner
      MemberAuthor

      Python 3.8 also has SubprocessMultiLoopWatcherTests so it's also likely affected.

      I ran this command for 1 minute on my Linux laptop, it didn't fail:

      # my laptop has 8 logical CPUs
      $ ./python -m test test_asyncio -m SubprocessMultiLoopWatcherTests -j20 -F -v

    4. vstinner commented on Feb 7, 2020

      @vstinner
      MemberAuthor

      I mark this issue as a duplicate of bpo-38323.

    5. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions