[Python-bugs-list] [ python-Bugs-737947 ] Failed assert in stringobject.c

SourceForge.net noreply@sourceforge.net
Thu, 22 May 2003 14:15:49 -0700


Bugs item #737947, was opened at 2003-05-14 18:51
Message generated for change (Settings changed) made by nnorwitz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=737947&group_id=5470

Category: Python Interpreter Core
Group: Python 2.2.1
Status: Open
Resolution: None
Priority: 7
Submitted By: Fernando Pérez (fer_perez)
>Assigned to: Barry A. Warsaw (bwarsaw)
Summary: Failed assert in stringobject.c

Initial Comment:
Here's how to reproduce the problem:

[~]> cat test.py
import readline
readline.get_completer_delims()

[~]> echo 'execfile("test.py");print 10' | python
python: Objects/stringobject.c:111:
PyString_FromString: Assertion `str !=((void *)0)' failed.
Abort

This was tested with 2.2.1 under RedHat 8.0. On c.l.py,
a Mandrake 9.0 (py2.2.2) user reported a segfault with
the same.

Martin reported not seeing the problem with 2.3b1. 
However, others suggested still filing it for a
possible backport, and also in case the fix was accidental.

----------------------------------------------------------------------

Comment By: Neal Norwitz (nnorwitz)
Date: 2003-05-22 17:14

Message:
Logged In: YES 
user_id=33168

Barry, should this be handled for 2.2.3?

----------------------------------------------------------------------

Comment By: Neal Norwitz (nnorwitz)
Date: 2003-05-14 22:28

Message:
Logged In: YES 
user_id=33168

revision 2.54 in Modules/readline.c fixed this problem. 
Patch #512981: Update readline input stream on sys.stdin/out
change.

The patch must be modified for 2.2.3 because there is an API
change.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=737947&group_id=5470