Python/Tkinter/tk crash [long]

Eric Brunel eric.brunel at pragmadev.com
Thu Aug 14 17:21:43 CEST 2003


Jeff Epler wrote:
> I can duplicate the signal 11 on RedHat Linux 9 and the following
> relevant packages installed:
>         python-2.2.2-26
>         tcl-8.3.5-88
>         tk-8.3.5-88
> 
> My traceback looks like the following.  I believe that the lines listed
> as "Tk_GetItemTypes" actually correspond to static functions defined in
> tkCanvas.c.
> #0  0x4011b1a7 in Tk_GetItemTypes () from /usr/lib/libtk8.3.so
> #1  0x4011aec1 in Tk_GetItemTypes () from /usr/lib/libtk8.3.so
> #2  0x4011ac25 in Tk_GetItemTypes () from /usr/lib/libtk8.3.so
> #3  0x400d1a7c in Tk_HandleEvent () from /usr/lib/libtk8.3.so
> #4  0x400d1e7c in TkQueueEventForAllChildren () from /usr/lib/libtk8.3.so
> #5  0x401c300d in Tcl_ServiceEvent () from /usr/lib/libtcl8.3.so
> #6  0x401c326d in Tcl_DoOneEvent () from /usr/lib/libtcl8.3.so
> #7  0x40062115 in Tkapp_MainLoop (self=0x815dfb0, args=0x8269358) at Modules/_tkinter.c:1696
> #8  0x080d0df4 in PyCFunction_Call ()
> #9  0x0807a65e in PyEval_EvalCode ()
> #10 0x0807b0ce in PyEval_EvalCodeEx ()
> #11 0x0807c62b in PyEval_GetFuncDesc ()
> #12 0x0807a5a3 in PyEval_EvalCode ()
> #13 0x0807b0ce in PyEval_EvalCodeEx ()
> #14 0x08077fc5 in PyEval_EvalCode ()
> #15 0x08097e29 in PyRun_FileExFlags ()
> #16 0x08096d90 in PyRun_SimpleFileExFlags ()
> #17 0x080966da in PyRun_AnyFileExFlags ()
> #18 0x08053a19 in Py_Main ()
> #19 0x08053469 in main ()
> #20 0x42015574 in __libc_start_main () from /lib/tls/libc.so.6
> 
> This leads me to two things: first, reproduce this using a libtk
> compiled with debugging information.  second, this is likely to be a Tk
> bug and not a Python bug given where it happens.  It should be possible
> to write a test-case that is purely tcl code..

Thanks a lot: you're absolutely right. The tcl code you wrote behaves exactly 
the same than the Python script I sent: when I run it, the first click on any 
text ends in a seg fault or a bus error. I should have tried to reproduce the 
bug in pure tcl, but I'm not really fluent in it...

I'll try to figure out exactly what happens and submit the problem to the 
c.l.tcl newsgroup.

Thanks!
-- 
- Eric Brunel <eric.brunel at pragmadev.com> -
PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com





More information about the Python-list mailing list