[Python-bugs-list] [ python-Bugs-599254 ] Py_SAFE_DOWNCAST assert in marshal.c
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 23 Aug 2002 08:23:31 -0700
Bugs item #599254, was opened at 2002-08-23 10:19
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=599254&group_id=5470
Category: Python Interpreter Core
Group: Python 2.2
Status: Closed
Resolution: Duplicate
Priority: 5
Submitted By: John Ehresman (jpe)
Assigned to: Michael Hudson (mwh)
Summary: Py_SAFE_DOWNCAST assert in marshal.c
Initial Comment:
In a win32 debug build (compiled with VC++ 6.0) of
Python 2.2.0 using the default options, the
Py_SAFE_DOWNCAST assertion check fails on line 64 of
marshal.c when c is 0x8c. The VC++ quick watch window
displays 0xffffff8c as the value of the expression
'(int)(char)c'. The following code will trigger the
assertion:
import marshal
marshal.dumps([0x8c] * 1000)
I am downloading the latest VC++ service pack now to
see if that makes a difference.
----------------------------------------------------------------------
>Comment By: Tim Peters (tim_one)
Date: 2002-08-23 11:23
Message:
Logged In: YES
user_id=31435
Thomas, yes, that's fine! I wasn't accusing <wink>, just
trying to tell the OP the current status.
----------------------------------------------------------------------
Comment By: Thomas Heller (theller)
Date: 2002-08-23 11:17
Message:
Logged In: YES
user_id=11105
To Tim: I've marked it as bugfix candidate in the checkin
message. Isn't this enough?
"""
Fix SF 588452: debug build crashes on marshal.dumps([128]
* 1000).
See there for a description.
Added test case.
Bugfix candidate for 2.2.x, not sure about previous versions:
probably low priority, because virtually no one runs debug
builds.
"""
----------------------------------------------------------------------
Comment By: John Ehresman (jpe)
Date: 2002-08-23 10:33
Message:
Logged In: YES
user_id=22785
Thanks. It is a duplicate.
----------------------------------------------------------------------
Comment By: Tim Peters (tim_one)
Date: 2002-08-23 10:29
Message:
Logged In: YES
user_id=31435
Yes, it's a duplicate, fixed in current CVS. IIRC, nobody
has backported the fix to the 2.2 line.
----------------------------------------------------------------------
Comment By: Michael Hudson (mwh)
Date: 2002-08-23 10:24
Message:
Logged In: YES
user_id=6656
Unless I'm much mistaken, this is a dup of:
[ 588452 ] $DEBUG_PYTHON -O freeze.py broken
which was fixed just a few weeks ago.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=599254&group_id=5470