[Stackless] a stackless crash

Christian Tismer tismer at stackless.com
Wed Nov 7 13:27:13 CET 2007


Kristján Valur Jónsson wrote:
> 
>> -----Original Message-----
>> From: Christian Tismer [mailto:tismer at stackless.com]
>>
>> Good! So after all, this is not really channel related, just the
>> remove code is not really developed regarding cstacks!
> 
> 
> Yes.
> Here is my fix to stacklesseval.c that stops the crashes.
> 
> 
> Left file: C:\Documents and Settings\kristjan\Local Settings\Temp\p4v\kristjanvalur nostrum 1666\depot\sdk\stackless25\Stackless\core\stacklesseval#2.c
> Right file: C:\p4\sdk\stackless25\Stackless\core\stacklesseval.c
> 342,344c343,346
> <                       chain = &t;
> <                       SLP_CHAIN_REMOVE(PyTaskletObject, chain, task, next, prev)
> ---
>>                       if (t->next && t->prev) { /* it may have been removed() */
>>                               chain = &t;
>>                               SLP_CHAIN_REMOVE(PyTaskletObject, chain, task, next, prev)
>>                       }
> 351a354
>>               Py_INCREF(t); /* because the following steals a reference */
> 
> 
> Does this look ok?
> We can then discuss channel death semantics separately...
> 
> Kristján

yes, this was really not finished. thanks!

ciao - chris

-- 
Christian Tismer             :^)   <mailto:tismer at stackless.com>
tismerysoft GmbH             :     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 802 86 56  mobile +49 173 24 18 776  fax +49 30 80 90 57 05
PGP 0x57F3BF04       9064 F4E1 D754 C2FF 1619  305B C09C 5A3B 57F3 BF04
       whom do you want to sponsor today?   http://www.stackless.com/




More information about the Stackless mailing list