Skip to content

Memory leak in pythonrun.c #54362

Closed
Closed

Description

@skrah
mannequin
BPO 10153
Nosy @vstinner, @skrah
Superseder
  • bpo-10157: Refleaks in pythonrun.c
  • Files
  • pythonrun2.patch
  • 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 2010-10-23.15:43:37.527>
    created_at = <Date 2010-10-20.11:09:34.465>
    labels = ['interpreter-core', 'type-bug']
    title = 'Memory leak in pythonrun.c'
    updated_at = <Date 2010-10-23.15:43:37.526>
    user = 'https://github.com/skrah'

    bugs.python.org fields:

    activity = <Date 2010-10-23.15:43:37.526>
    actor = 'skrah'
    assignee = 'none'
    closed = True
    closed_date = <Date 2010-10-23.15:43:37.527>
    closer = 'skrah'
    components = ['Interpreter Core']
    creation = <Date 2010-10-20.11:09:34.465>
    creator = 'skrah'
    dependencies = []
    files = ['19326']
    hgrepos = []
    issue_num = 10153
    keywords = ['patch']
    message_count = 2.0
    messages = ['119201', '119332']
    nosy_count = 2.0
    nosy_names = ['vstinner', 'skrah']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '10157'
    type = 'behavior'
    url = 'https://bugs.python.org/issue10153'
    versions = ['Python 3.2']

    Activity

    1. skrah commented on Oct 20, 2010

      skrahmannequin
      MannequinAuthor

      Found by Valgrind, patch attached:

      ==4921== 24 bytes in 1 blocks are definitely lost in loss record 419 of 2,694
      ==4921== at 0x4C2412C: malloc (vg_replace_malloc.c:195)
      ==4921== by 0x417F06: _PyObject_New (object.c:244)
      ==4921== by 0x520C4E: PyFile_NewStdPrinter (fileobject.c:364)
      ==4921== by 0x499438: Py_InitializeEx (pythonrun.c:281)
      ==4921== by 0x49951E: Py_Initialize (pythonrun.c:322)
      ==4921== by 0x4B2579: Py_Main (main.c:587)
      ==4921== by 0x417D6B: main (python.c:51)

    2. added
      interpreter-core
      type-bug
      on Oct 20, 2010
    3. skrah commented on Oct 21, 2010

      skrahmannequin
      MannequinAuthor

      There is actually a second refleak of the same kind. New patch attached.

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

      interpreter-coretype-bug

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions