Skip to content

Asyncio test fails under Win 7 #78443

Closed
Closed

Description

@mansenfranzen
BPO 34262
Nosy @pfmoore, @vstinner, @tjguk, @asvetlov, @zware, @1st1, @zooba, @tirkarthi, @mansenfranzen, @iritkatriel
Superseder
  • bpo-41682: [Windows] : Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure
  • 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-09-07.16:41:26.160>
    created_at = <Date 2018-07-28.12:58:41.466>
    labels = ['type-bug', '3.8', 'OS-windows', 'build', 'expert-asyncio']
    title = 'Asyncio test fails under Win 7'
    updated_at = <Date 2021-09-07.16:41:26.160>
    user = 'https://github.com/mansenfranzen'

    bugs.python.org fields:

    activity = <Date 2021-09-07.16:41:26.160>
    actor = 'iritkatriel'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-09-07.16:41:26.160>
    closer = 'iritkatriel'
    components = ['Build', 'Windows', 'asyncio']
    creation = <Date 2018-07-28.12:58:41.466>
    creator = 'pansen'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 34262
    keywords = []
    message_count = 5.0
    messages = ['322558', '322563', '326476', '401282', '401304']
    nosy_count = 10.0
    nosy_names = ['paul.moore', 'vstinner', 'tim.golden', 'asvetlov', 'zach.ware', 'yselivanov', 'steve.dower', 'xtreak', 'pansen', 'iritkatriel']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '41682'
    type = 'behavior'
    url = 'https://bugs.python.org/issue34262'
    versions = ['Python 3.8']

    Activity

    1. mansenfranzen commented on Jul 28, 2018

      mansenfranzenmannequin
      MannequinAuthor

      When running tests I encounter the following error for the test:

      test_sock_sendfile_not_regular_file (test.test_asyncio.test_proactor_events.ProactorEventLoopUnixSockSendfileTests)

      ---------------------------
      Microsoft Visual C++ Runtime Library
      ---------------------------
      Debug Assertion Failed!

      Program: ...\EP2018\cpython\PCbuild\win32\python_d.exe
      File: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp
      Line: 257

      Expression: fh >= 0 && (unsigned)fh < (unsigned)_nhandle

      ---------------------------

      However, when ignoring the MSCR error, the tests succeed without failing.

      In addition the following failed (but not consistently):

      ======================================================================
      FAIL: test_sendfile_close_peer_in_the_middle_of_receiving (test.test_asyncio.test_events.ProactorEventLoopTests)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "C:\Users\woellert\Desktop\EP2018\cpython\lib\test\test_asyncio\test_events.py", line 2510, in test_sendfile_close_peer_in_the_middle_of_receiving
          self.file.tell())
      AssertionError: False is not true : 131072

      Specs: Windows 7 SP1 64bit,

      Process:

      • Cloned master from github
      • Installed Visual Studio 2017 Community
      • Compiled with PCbuild\build.bat -e -d (also used 64bit via -p x64)
      • Ran tests with python.bat -m test.test_asyncio -v
    2. mansenfranzen commented on Jul 28, 2018

      mansenfranzenmannequin
      MannequinAuthor

      Regarding the MVSC runtime message, there is an issue already here:

      https://bugs.python.org/issue23919

    3. tirkarthi commented on Sep 26, 2018

      @tirkarthi
      Member

      ProactorEventLoop is the default event loop with bpo-34687. There doesn't seem to be any warnings in buildbots as I have checked and as @panesen has mentioned this is not consistent. I am adding Victor as a notification if he has any thoughts. Victor, feel free to remove yourself if this is not relevant.

      Thanks

    4. iritkatriel commented on Sep 7, 2021

      @iritkatriel
      Member

      Changing type since the crash was fixed under bpo-23919.

      There remains (possibly) the failure of test_sendfile_close_peer_in_the_middle_of_receiving.

    5. added
      type-bugAn unexpected behavior, bug, or error
      and removed
      type-crashA hard crash of the interpreter, possibly with a core dump
      on Sep 7, 2021
    6. vstinner commented on Sep 7, 2021

      @vstinner
      Member

      test_sendfile_close_peer_in_the_middle_of_receiving() failure is tracked by bpo-41682.

    7. 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

      Labels

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions