Skip to content

Allow PYTHONTRACEMALLOC=0 and -X tracemalloc=0 to disable explicitly tracemalloc #78409

Closed

Description

@vstinner
BPO 34228
Nosy @vstinner
PRs
  • bpo-34228: Allow PYTHONTRACEMALLOC=0 #8467
  • 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 2018-07-26.08:53:13.330>
    created_at = <Date 2018-07-25.16:54:55.120>
    labels = ['3.8', 'library']
    title = 'Allow PYTHONTRACEMALLOC=0 and -X tracemalloc=0 to disable explicitly tracemalloc'
    updated_at = <Date 2018-07-26.08:53:13.329>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2018-07-26.08:53:13.329>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-07-26.08:53:13.330>
    closer = 'vstinner'
    components = ['Library (Lib)']
    creation = <Date 2018-07-25.16:54:55.120>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 34228
    keywords = ['patch']
    message_count = 3.0
    messages = ['322369', '322372', '322407']
    nosy_count = 1.0
    nosy_names = ['vstinner']
    pr_nums = ['8467']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue34228'
    versions = ['Python 3.8']

    Activity

    1. vstinner commented on Jul 25, 2018

      @vstinner
      MemberAuthor

      Currently, -X tracemalloc=0 command line option is reject as an invalid value. I would like to allow to explicitly disable tracemalloc. That's useful to ignore the PYTHONTRACEMALLOC environment variable:

      "PYTHONTRACEMALLOC=1 python3 -X tracemalloc=0" would not enable tracemalloc at startup.

    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      on Jul 25, 2018
    3. vstinner commented on Jul 25, 2018

      @vstinner
      MemberAuthor

      New changeset 60b04c9 by Victor Stinner in branch 'master':
      bpo-34228: Allow PYTHONTRACEMALLOC=0 (GH-8467)
      60b04c9

    4. vstinner commented on Jul 26, 2018

      @vstinner
      MemberAuthor

      I don't think that it's worth it to backport this change. It's really a corner case and it's almsot a bugfix. I mostly need it for testing _PyCoreConfig and Python initialisation.

    5. 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.8 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directory

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions