Issue 3951: Disable Py_USING_MEMORY_DEBUGGER! - Python tracker (original) (raw)

Created on 2008-09-24 00:29 by vstinner, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
configure-memory-debugger.patch vstinner,2008-09-24 00:29 Create --with-memory-debugger option
obmalloc-no-debug.patch vstinner,2008-09-24 00:36 Remove definition of Py_USING_MEMORY_DEBUGGER from obmalloc.c (done by configure using my first patch)
revert.diff loewis,2008-09-24 18:22
Messages (7)
msg73683 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2008-09-24 00:29
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).
msg73691 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2008-09-24 04:35
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.
msg73697 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2008-09-24 09:55
@loewis: your patch (revert.diff) includes a change in configure.in about OpenBSD !?
msg73743 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2008-09-24 18:22
Sorry about that - let me retry.
msg73756 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-09-24 22:07
Looks good to me.
msg73769 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2008-09-25 04:15
Committed as r66616 and r66617
msg74091 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2008-09-30 18:20
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.
History
Date User Action Args
2022-04-11 14:56:39 admin set github: 48201
2008-09-30 18:20:27 vstinner set status: open -> closedmessages: +
2008-09-25 04:16:00 loewis set priority: release blocker -> normalassignee: loewis -> messages: +
2008-09-24 22:07:52 benjamin.peterson set keywords: - needs reviewnosy: + benjamin.petersonmessages: +
2008-09-24 18:22:27 loewis set files: + revert.diffmessages: +
2008-09-24 18:21:23 loewis set files: - revert.diff
2008-09-24 09:55:03 vstinner set messages: +
2008-09-24 04:35:21 loewis set priority: release blockerkeywords: + needs reviewmessages: + files: + revert.diff
2008-09-24 03:07:21 benjamin.peterson set assignee: loewisnosy: + loewis
2008-09-24 00:36:28 vstinner set files: + obmalloc-no-debug.patch
2008-09-24 00:29:18 vstinner create