Message60597
## bug1.py
loop = None,
while True: loop = loop, None
bash$ python -i bug1.py
(I press C-c)
>>> print loop
((((((((((((((((( <skipping a large amount of parens
for brevity> (((((((((segfault
bash$
bash$ python -i bug1.py
(I press C-c)
>>> str(loop)
segfault
bash$
bash$ python -i bug1.py
(I press C-c)
>>> repr(loop)
segfault
bash$
--- ---
the results are the same for bug2.py, bug3.py and
bug.py4 which have the same contents, except that loop
is a list, None is replaced by Ellipsis or both. The
behavior (i.e. segfaulting) is the same.
also, when pressing C-c, python's memory usage remains
constant. gc.garbage is empty; gc.collect() returns 0
and doesn't free memory.
my python and uname:
bash$ python
Python 2.3.4 (#2, Sep 24 2004, 08:39:09)
[GCC 3.3.4 (Debian 1:3.3.4-12)] on linux2
bash$ uname --all
Linux koelker 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST
2002 i686 GNU/Linux
I have also reproduced it on
Python 2.3.3 (#1, May 7 2004, 10:31:40)
[GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] on linux2
bash$ uname --all
Linux horse09 2.6.8-1.521smp #1 SMP Man Aug 16 09:25:06
EDT 2004 i686 i686 i386 GNU/Linux
and on
Python 2.4a3 (#1, Oct 3 2004, 12:05:12)
[GCC 3.3.2] on linux2
(on the same machine)
it didn't reproduce on
Python 1.5.2 (#1, Mar 9 2000, 17:40:34) [GCC 2.95.2
19991024 (release)] on hp-uxB
bash$ uname -a
HP-UX aragorn B.11.11 U 9000/782 2006786478
unlimited-user license
but it did on
Python 1.5.2 (#1, Jul 5 2001, 03:02:19) [GCC 2.96
20000731] (Red Hat Linux 7.1 2 on linux-i386
bash$ uname
Linux legolas 2.4.20-20.7smp #1 SMP Mon Aug 18 14:46:14
EDT 2003 i686 unknown |
|
Date |
User |
Action |
Args |
2008-01-20 09:57:17 | admin | link | issue1069092 messages |
2008-01-20 09:57:17 | admin | create | |
|