[Stackless] A new crash bug

Richard Tew richard.m.tew at gmail.com
Sat Oct 20 12:58:21 CEST 2007

On 10/20/07, Kristján Valur Jónsson <kristjan at ccpgames.com> wrote:
> 1) Why do we need to awaken tasklets when channels are collected?

Are you sure that the tasklet isn't being garbage collected itself, as
the last reference to it inside the channel is removed?  Then the
tasklet would be killed, by having a TaskletExit raised on it.  I have
debugged crash bugs with this behaviour in the past.

> 2) Why does awakening the tasklet cause this longjump out of the function?
> 3) Why do we find the frame in the exception state then? (I must investigate.)  Was it there when gc.collect() was entered, or did it enter it as part of awakening the tasklet?  If the former, then there must be a reference bug since in that case it shouldn't have entered the 'unreachable' list in the first place.

I am presuming these follow from the answer to 1).


More information about the Stackless mailing list