Skip to content

Missing Py_DECREF in task_step_impl() in _asynciomodule.c #84739

Closed

Description

@cjerdonek
BPO 40559
Nosy @asvetlov, @cjerdonek, @1st1, @miss-islington
PRs
  • bpo-40559: Add Py_DECREF to _asynciomodule.c:task_step_impl() #19990
  • [3.8] bpo-40559: Add Py_DECREF to _asynciomodule.c:task_step_impl() (GH-19990) #19995
  • [3.7] bpo-40559: Add Py_DECREF to _asynciomodule.c:task_step_impl() (GH-19990) #19996
  • 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-05-08.11:47:23.803>
    created_at = <Date 2020-05-08.07:40:03.008>
    labels = ['3.8', 'expert-asyncio', '3.7', '3.9', 'performance']
    title = 'Missing Py_DECREF in task_step_impl() in _asynciomodule.c'
    updated_at = <Date 2020-05-08.11:47:23.803>
    user = 'https://github.com/cjerdonek'

    bugs.python.org fields:

    activity = <Date 2020-05-08.11:47:23.803>
    actor = 'chris.jerdonek'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-05-08.11:47:23.803>
    closer = 'chris.jerdonek'
    components = ['asyncio']
    creation = <Date 2020-05-08.07:40:03.008>
    creator = 'chris.jerdonek'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 40559
    keywords = ['patch']
    message_count = 5.0
    messages = ['368425', '368426', '368432', '368433', '368434']
    nosy_count = 4.0
    nosy_names = ['asvetlov', 'chris.jerdonek', 'yselivanov', 'miss-islington']
    pr_nums = ['19990', '19995', '19996']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'resource usage'
    url = 'https://bugs.python.org/issue40559'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Activity

    1. cjerdonek commented on May 8, 2020

      @cjerdonek
      MemberAuthor

      There is a missing Py_DECREF in task_step_impl() in _asynciomodule.c:

      return NULL;

      It should have the form:

          if (clear_exc) {
              Py_DECREF(exc);
          }

      This was introduced here in 3.7:
      bca4939

      I'm not sure of the likelihood of this ever getting triggered (it appears to be unlikely), but it should still be addressed.

      I will file a patch shortly.

    2. added
      3.7 (EOL)
      3.8 (EOL)
      3.9 (EOL)
      performance
      on May 8, 2020
    3. cjerdonek commented on May 8, 2020

      @cjerdonek
      MemberAuthor

      Here is the original issue: https://bugs.python.org/issue31185

    4. cjerdonek commented on May 8, 2020

      @cjerdonek
      MemberAuthor

      New changeset d2c349b by Chris Jerdonek in branch 'master':
      bpo-40559: Add Py_DECREF to _asynciomodule.c:task_step_impl() (GH-19990)
      d2c349b

    5. cjerdonek commented on May 8, 2020

      @cjerdonek
      MemberAuthor

      New changeset 0e4a5e9 by Miss Islington (bot) in branch '3.8':
      [3.8] bpo-40559: Add Py_DECREF to _asynciomodule.c:task_step_impl() (GH-19990)
      0e4a5e9

    6. cjerdonek commented on May 8, 2020

      @cjerdonek
      MemberAuthor

      New changeset 2501428 by Miss Islington (bot) in branch '3.7':
      [3.7] bpo-40559: Add Py_DECREF to _asynciomodule.c:task_step_impl() (GH-19990)
      2501428

    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

      3.7 (EOL)3.8 (EOL)3.9 (EOL)performancetopic-asyncio

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions