Bug in CPython 2.2.1? - resend

Irmen de Jong irmen at -NOSPAM-REMOVETHIS-xs4all.nl
Wed May 14 18:11:50 EDT 2003


Fernando Perez wrote:

> I'm wondering if the following is a bug in Python.  I'm using the 2.2.1
> interpreter supplied with RedHat 8.0:
> 
> Python 2.2.1 (#1, Aug 30 2002, 12:15:30)
> [GCC 3.2 20020822 (Red Hat Linux Rawhide 3.2-4)] on linux2
> 
> 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


Using Python 2.2.2 on Mandrake 9.1, I get a segmentation fault when
doing this. Seems that something fishy is indeed going on here.

(SIGSEGV in strlen(), according to gdb. I use the stock Python from
Mandrake 9.1)

However, a Python 2.3b compiled by myself on the same box works fine.
It seems that the bug (whatever it was) has disappeared already...


--Irmen





More information about the Python-list mailing list