Skip to content

Miscellaneous errors in asyncio speedup module #75368

Closed

Description

@serhiy-storchaka
BPO 31185
Nosy @vstinner, @giampaolo, @methane, @cjerdonek, @serhiy-storchaka, @1st1
PRs
  • bpo-31185: Fixed miscellaneous errors in asyncio speedup module. #3076
  • bpo-31185: Fixed miscellaneous errors in asyncio speedup module. (#3076) #3269
  • 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 2017-09-03.06:31:28.354>
    created_at = <Date 2017-08-11.16:28:18.591>
    labels = ['extension-modules', 'type-bug', '3.7', 'expert-asyncio']
    title = 'Miscellaneous errors in asyncio speedup module'
    updated_at = <Date 2020-05-08.08:17:05.358>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2020-05-08.08:17:05.358>
    actor = 'chris.jerdonek'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-09-03.06:31:28.354>
    closer = 'serhiy.storchaka'
    components = ['Extension Modules', 'asyncio']
    creation = <Date 2017-08-11.16:28:18.591>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 31185
    keywords = []
    message_count = 9.0
    messages = ['300171', '300172', '300174', '300175', '300176', '300177', '301183', '301184', '368427']
    nosy_count = 6.0
    nosy_names = ['vstinner', 'giampaolo.rodola', 'methane', 'chris.jerdonek', 'serhiy.storchaka', 'yselivanov']
    pr_nums = ['3076', '3269']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue31185'
    versions = ['Python 3.6', 'Python 3.7']

    Activity

    1. serhiy-storchaka commented on Aug 11, 2017

      @serhiy-storchaka
      MemberAuthor

      Proposed patch fixes miscellaneous errors in asyncio speedup module. It is hard to enumerate they all, but they are mostly NULL dereferencing, reference leaks, and handling exceptions in corner cases.

    2. added
      3.7 (EOL)
      extension-modules
      type-bug
      on Aug 11, 2017
    3. 1st1 commented on Aug 11, 2017

      @1st1
      Member

      Adding INADA, he is a co-author/reviewer of that code.

    4. 1st1 commented on Aug 11, 2017

      @1st1
      Member

      Huge thanks, Serhiy, btw.

    5. vstinner commented on Aug 11, 2017

      @vstinner
      Member

      "reference leaks" oh? our Refleaks buildbots didn't catch them. Do your new tests reproduce the bugs, to make sure that we don't leak anymore?

    6. 1st1 commented on Aug 11, 2017

      @1st1
      Member

      "reference leaks" oh? our Refleaks buildbots didn't catch them.

      The test suite for Tasks and Futures is pretty extensive, but it obviously doesn't cover some obscure use cases.

      +1 to make sure that any refleak that was discovered should have a new regression test for it.

    7. serhiy-storchaka commented on Aug 11, 2017

      @serhiy-storchaka
      MemberAuthor

      They are occurred in very obscure cases like calling __init__ multiple times. The patch doesn't contain tests for them.

    8. serhiy-storchaka commented on Sep 3, 2017

      @serhiy-storchaka
      MemberAuthor

      New changeset bca4939 by Serhiy Storchaka in branch 'master':
      bpo-31185: Fixed miscellaneous errors in asyncio speedup module. (bpo-3076)
      bca4939

    9. serhiy-storchaka commented on Sep 3, 2017

      @serhiy-storchaka
      MemberAuthor

      New changeset 98bbeb7 by Serhiy Storchaka in branch '3.6':
      bpo-31185: Fixed miscellaneous errors in asyncio speedup module. (bpo-3076) (bpo-3269)
      98bbeb7

    10. cjerdonek commented on May 8, 2020

      @cjerdonek
      Member

      FYI, there is a missing Py_DECREF from this change: https://bugs.python.org/issue40559
      (though it's an obscure code path as mentioned elsewhere in these comments)

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

      3.7 (EOL)extension-modulestopic-asynciotype-bug

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions