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

Disable Py_USING_MEMORY_DEBUGGER! #48201

Closed
vstinner opened this issue Sep 24, 2008 · 7 comments
Closed

Disable Py_USING_MEMORY_DEBUGGER! #48201

vstinner opened this issue Sep 24, 2008 · 7 comments

Comments

@vstinner
Copy link
Member

BPO 3951
Nosy @loewis, @vstinner, @benjaminp
Files
  • configure-memory-debugger.patch: Create --with-memory-debugger option
  • obmalloc-no-debug.patch: Remove definition of Py_USING_MEMORY_DEBUGGER from obmalloc.c (done by configure using my first patch)
  • revert.diff
  • 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 2008-09-30.18:20:27.452>
    created_at = <Date 2008-09-24.00:29:17.953>
    labels = []
    title = 'Disable Py_USING_MEMORY_DEBUGGER!'
    updated_at = <Date 2008-09-30.18:20:27.450>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2008-09-30.18:20:27.450>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2008-09-30.18:20:27.452>
    closer = 'vstinner'
    components = []
    creation = <Date 2008-09-24.00:29:17.953>
    creator = 'vstinner'
    dependencies = []
    files = ['11583', '11584', '11596']
    hgrepos = []
    issue_num = 3951
    keywords = ['patch']
    message_count = 7.0
    messages = ['73683', '73691', '73697', '73743', '73756', '73769', '74091']
    nosy_count = 3.0
    nosy_names = ['loewis', 'vstinner', 'benjamin.peterson']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue3951'
    versions = ['Python 2.6', 'Python 3.0']

    @vstinner
    Copy link
    Member Author

    In rev 56476, martin.v.loewis enabled Py_USING_MEMORY_DEBUGGER by
    default in an huge commit:
    PEP-3123: Provide forward compatibility with Python 3.0,
    while keeping backwards compatibility. Add Py_Refcnt,
    Py_Type, Py_Size, and PyVarObject_HEAD_INIT.

    I guess that's an error, and that Py_USING_MEMORY_DEBUGGER should be
    disabled by default.

    Proposition to avoid such bug in future: create a configure option,
    like --with-memory-debugger. See for example my patch to configure.in
    (you will need to run autoconf && autoheader).

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Sep 24, 2008

    You are right that this was by mistake; here is a patch to revert that
    mistake (revert.diff).

    I'm marking the issue release-critical because of thsi patch; the other
    patches (for adding a new configure option) clearly can't go into 2.6,
    and might need to be deferred to 2.7.

    @loewis loewis mannequin added the release-blocker label Sep 24, 2008
    @vstinner
    Copy link
    Member Author

    @loewis: your patch (revert.diff) includes a change in configure.in
    about OpenBSD !?

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Sep 24, 2008

    Sorry about that - let me retry.

    @benjaminp
    Copy link
    Contributor

    Looks good to me.

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Sep 25, 2008

    Committed as r66616 and r66617

    @loewis loewis mannequin removed the release-blocker label Sep 25, 2008
    @loewis loewis mannequin removed their assignment Sep 25, 2008
    @vstinner
    Copy link
    Member Author

    Close the issue since it's commited in 2.6 and 3.0. My patch
    configure-memory-debugger.patch is useless, a developer can fix
    obmalloc.c.

    @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
    None yet
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants