Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple memory leaks after raw Py_Initialize and Py_Finalize. #71075

Closed
AleksanderGajewski mannequin opened this issue Apr 29, 2016 · 2 comments
Closed

Multiple memory leaks after raw Py_Initialize and Py_Finalize. #71075

AleksanderGajewski mannequin opened this issue Apr 29, 2016 · 2 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) performance Performance or resource usage

Comments

@AleksanderGajewski
Copy link
Mannequin

AleksanderGajewski mannequin commented Apr 29, 2016

BPO 26888
Nosy @vstinner, @serhiy-storchaka
Superseder
  • bpo-1635741: Py_Finalize() doesn't clear all Python objects at exit
  • Files
  • python_leak.tar: example sources
  • 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 2019-10-23.00:15:53.428>
    created_at = <Date 2016-04-29.21:14:58.612>
    labels = ['interpreter-core', 'performance']
    title = 'Multiple memory leaks after raw Py_Initialize and Py_Finalize.'
    updated_at = <Date 2019-10-23.00:15:53.426>
    user = 'https://bugs.python.org/AleksanderGajewski'

    bugs.python.org fields:

    activity = <Date 2019-10-23.00:15:53.426>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-10-23.00:15:53.428>
    closer = 'vstinner'
    components = ['Interpreter Core']
    creation = <Date 2016-04-29.21:14:58.612>
    creator = 'Aleksander Gajewski'
    dependencies = []
    files = ['42655']
    hgrepos = []
    issue_num = 26888
    keywords = []
    message_count = 2.0
    messages = ['264522', '355190']
    nosy_count = 3.0
    nosy_names = ['vstinner', 'serhiy.storchaka', 'Aleksander Gajewski']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '1635741'
    type = 'resource usage'
    url = 'https://bugs.python.org/issue26888'
    versions = ['Python 3.5']

    @AleksanderGajewski
    Copy link
    Mannequin Author

    AleksanderGajewski mannequin commented Apr 29, 2016

    There are a lot of memory leaks detected by AddressSanitzer (used with gcc-6.1). The sample program with its cmakelists and output can be found in the attachment. Exact list of memory leaks is placed in log_3_python_test.txt. I am using Python3.5.1 compile from sources (placed in /opt/python).

    @AleksanderGajewski AleksanderGajewski mannequin added stdlib Python modules in the Lib dir performance Performance or resource usage labels Apr 29, 2016
    @SilentGhost SilentGhost mannequin added interpreter-core (Objects, Python, Grammar, and Parser dirs) and removed stdlib Python modules in the Lib dir labels May 2, 2016
    @vstinner
    Copy link
    Member

    That's basically a duplicate of bpo-1635741.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    interpreter-core (Objects, Python, Grammar, and Parser dirs) performance Performance or resource usage
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant