[Python-bugs-list] [Bug #117402] Interpreter crashes when str or repr called with an array

noreply@sourceforge.net noreply@sourceforge.net
Fri, 10 Nov 2000 11:05:23 -0800


Bug #117402, was updated on 2000-Oct-22 02:16
Here is a current snapshot of the bug.

Project: Python
Category: Modules
Status: Closed
Resolution: Fixed
Bug Group: None
Priority: 7
Summary: Interpreter crashes when str or repr called with an array

Details: With Python 2.0 Final Release,


>>> from array import array
>>> z=array('c','hello world')
>>> `z`  #Note that these are back-quotes

It returns a nice "python20.dll" error with a page fault
, whereas run on python 1.6, it returns what we expect,
the string form of the array. (On Unix System V, it
produced a segmentation fault)




Follow-Ups:

Date: 2000-Nov-10 11:05
By: tim_one

Comment:
Fixed and Closed.  Checkin comment for arraymodule.c (new rev 2.59):

Fix for SF bug 117402, crashes on str(array) and repr(array).  This was an unfortunate consequence of somebody switching from PyArg_Parse to PyArg_ParseTuple but without changing the argument from a NULL to a tuple.
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=117402&group_id=5470