This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lewisjwl
Recipients
Date 2002-01-08.21:17:30
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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
History
Date User Action Args
2007-08-23 13:58:32adminlinkissue501022 messages
2007-08-23 13:58:32admincreate