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.

classification
Title: Tk.quit leads to crash in python.exe
Type: crash Stage: test needed
Components: Tkinter Versions: Python 3.0, Python 2.6
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: dcbbcd, gpolo, jimjjewett
Priority: normal Keywords:

Created on 2003-07-22 09:34 by dcbbcd, last changed 2022-04-10 16:10 by admin. This issue is now closed.

Messages (3)
msg60359 - (view) Author: Dennis Benzinger (dcbbcd) Date: 2003-07-22 09:34
The following program reliably crashes python.exe (2.3
RC1) on Win XP - SP1:


import Tkinter
tk = Tkinter.Tk()
quit_btn = Tkinter.Button(tk, text='quit', 
                          #command=tk.quit)  # This crashes
                          command=tk.destroy)  # This works
       
quit_btn.pack()
Tkinter.mainloop()


The error message is something like (bad english
translation):
The instruction in "0x77f4b2ab" points to "0x00000028".
The memory can't be read.
msg67864 - (view) Author: Jim Jewett (jimjjewett) Date: 2008-06-09 15:16
Were you using IDLE at the time?

When I try this (Windows XP SP2), the button and its window do not go away 
(which is arguably a bug), but it does not crash.

If I then try to close the window using the little X (from the window 
manager),

    (1)  A qb started from the command-line interface exits, as it should.
    (2)  A qb started from within IDLE becomes non-responsive, and Windows 
asks whether or not I want to continue shutting it down.
msg89876 - (view) Author: Guilherme Polo (gpolo) * (Python committer) Date: 2009-06-29 20:46
I've tried reproducing this on Windows XP using both Python 2.3.5 and
2.2.3 (and also some newer ones) and couldn't duplicate the issue. I
also tested the file attached on issue837234 and got nothing, changed it
a bit and still got nothing.

I can reproduce the IDLE freeze, but that is a different problem.

Closing this as rejected for lack of information.
History
Date User Action Args
2022-04-10 16:10:07adminsetgithub: 38899
2009-06-29 20:46:44gpolosetstatus: open -> closed
resolution: rejected
messages: + msg89876
2009-04-26 22:11:57ajaksu2setnosy: + gpolo
versions: + Python 2.6, Python 3.0, - Python 2.3

stage: test needed
2008-06-09 15:16:10jimjjewettsetnosy: + jimjjewett
messages: + msg67864
2008-06-01 13:10:25benjamin.petersonsettype: crash
2008-06-01 11:30:06georg.brandllinkissue837234 superseder
2003-07-22 09:34:44dcbbcdcreate