[Python-bugs-list] [ python-Bugs-501022 ] Python/Tkinter crashes
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 08 Jan 2002 13:17:31 -0800
Bugs item #501022, was opened at 2002-01-08 13:17
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=501022&group_id=5470
Category: Tkinter
Group: Python 2.1.1
Status: Open
Resolution: None
Priority: 5
Submitted By: John W Lewis (lewisjwl)
Assigned to: Nobody/Anonymous (nobody)
Summary: Python/Tkinter crashes
Initial Comment:
Good morning
This issue was reported earlier, but I could not provide
a concrete example.
The following little program crashes under Windows 2000 Pro, but not on UNIX.
My PC has 2GB of memory and the program is using much less than that.
It appears to be exhausting some fixed resource (a heap?).
Microsoft will debug the problem if they can analyze the dump file
to isolate the specific system calls which exhaust that resource.
Right now all they can tell is that the fault occurs somewhere in Tkinter.
They have asked me to provide the following:
* Dr Watson dump file
* MPS profile
* perfmon log
How should I proceed? How can I get a PC version of python
with a full symbol table for debugging?
Regards
John Lewis
jlewis9@csc.com
443-562-4945 cell
-----------------------------------------------------------------------------------
## PROGRAM: crash.py
## HISTORY: jw lewis, 1/8/01
## OBJECTIVE
## Write a program which causes Tkinter to fail abnormally in Windows
from Tkinter import *
root = Tk()
log = open("log.txt","w")
## Force crash by generating too many PhotoImage objects
images = []
for i in xrange(0,10000):
if i>9900:
log.write( str(i)+"\n" )
log.flush()
image = PhotoImage()
image.put("blue")
images.append( image )
-----------------------------------------------------------------------------------
Resulting log.txt file
9901
9902
9903
...
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
CRASH
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=501022&group_id=5470