[Python-bugs-list] [ python-Bugs-506611 ] sys.setprofile() coredumps
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 24 Jan 2002 12:02:31 -0800
Bugs item #506611, was opened at 2002-01-21 12:17
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=506611&group_id=5470
Category: Python Interpreter Core
Group: Python 2.2
Status: Open
Resolution: None
Priority: 7
Submitted By: Tim Peters (tim_one)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: sys.setprofile() coredumps
Initial Comment:
Verified in current CVS (also on Windows, but doubt
the platform matters). It's not the call proper that
coredumps, but an eval loop's later attempt to use a
resulting NULL pointer. From c.l.py:
"""
From: rihad
Sent: Monday, January 21, 2002 1:19 PM
Subject: minor Python bugs
Calling sys.setprofile() (with no args) makes the
interpreter crash, and calling sys.settrace() with no
args succeeds, even though it is documented to take 1
arg (tracefunc).
And yes, my version is '2.2 (#28, Dec 21 2001,
12:21:22) [MSC 32 bit (Intel)]'
"""
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2002-01-24 12:02
Message:
Logged In: YES
user_id=21627
It appears that this patches deals only with the setprofile
problem, not with the settrace problem. Is that intentional?
----------------------------------------------------------------------
Comment By: Neal Norwitz (nnorwitz)
Date: 2002-01-21 14:39
Message:
Logged In: YES
user_id=33168
Attached is a patch which fixes the problem.
The patch includes a test.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=506611&group_id=5470