[Python-Dev] Tkinter lockups. (original) (raw)

"Martin v. Löwis" martin at v.loewis.de
Sun Apr 30 21:47:45 CEST 2006


Jeff Epler wrote:

However, on this system, I couldn't recreate the problem you reported with either the "using tkinter directly" instructions, or using this "C" test program:

#include <tcl.h> #include <tk.h> int main(void) { TclInterp *trp; unsetenv("DISPLAY"); trp = TclCreateInterp(); printf("%d\n", TkInit(trp)); printf("%d\n", TkInit(trp)); return 0; }

The problem only occurs when Tcl and Tk were compiled with --enable-threads, and it occurs because Tk fails to unlock a mutex in a few error cases. The patch below fixes the problem.

I'll report it to the Tcl people, and see whether I can work around in _tkinter.

Regards, Martin

-------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: tk.diff Url: http://mail.python.org/pipermail/python-dev/attachments/20060430/55b272b8/attachment.diff



More information about the Python-Dev mailing list