[Python-Dev] _tkinter problem with Stackless

Christian Tismer tismer@tismer.com
Fri, 24 May 2002 17:01:13 -0700


Hi friends,

I was trying to test my bdb.py patch with Idle
and saw weird behavior under Stackless:
When I close a window, Python crashes.

After a while I recognized that this is due to my
moving-the-stack-away at every 8th recursion level.
As a quick hack, I changed the threshold to 16 and
everything works just fine, but anyway:

I believe that there must be a global data structure
for Tcl/Tk living on the C stack, between a couple of
Python interpreter incarnations, that is used somehow.
This is unsane IMHO. Nothing on the C stack should
be used as a globally accessible variable. Instead I'd
like to stuff this into a structure on the heap,
which is safe.

Can anybody please give me a hint where in _tkinter
or tkappinit this might be? I really don't understand
the code, but I'd like to provide a patch.

many thanks in advance - chris
-- 
Christian Tismer             :^)   <mailto:tismer@tismer.com>
Mission Impossible 5oftware  :     Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9a     :    *Starship* http://starship.python.net/
14109 Berlin                 :     PGP key -> http://wwwkeys.pgp.net/
work +49 30 89 09 53 34  home +49 30 802 86 56  pager +49 173 24 18 776
PGP 0x57F3BF04       9064 F4E1 D754 C2FF 1619  305B C09C 5A3B 57F3 BF04
      whom do you want to sponsor today?   http://www.stackless.com/