[Stackless] Stackless crash

Jeff Senn senn at maya.com
Mon Jun 19 19:46:14 CEST 2006


This (tiny bit of) code causes stackless crash on OS-X.

Yes, the code is stupid, but perhaps that's no excuse! :-)

------------------------------
import stackless

def task(a):
   stackless.channel().receive()

x=stackless.tasklet(task)(0)
x.insert()
x=stackless.tasklet(task)(1)
x.insert()
stackless.run()
------------------------------

Interestingly, changing the task code to this:

def task(a):
   c=stackless.channel()
   c.receive()

does NOT crash.  So I'm guessing it has something to
do with the deadlock detection stuff...


Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000

#0  PyEval_EvalFrame_value (f=0x60b710, retval=0x0) at Python/ceval.c:868
#1  0x00290fd0 in slp_frame_dispatch_top (retval=0x0) at 
Stackless/core/stacklesseval.c:607
#2  0x00295c2c in slp_run_tasklet () at Stackless/module/scheduling.c:1156
#3  0x00291338 in slp_eval_frame (f=0x60bd60) at 
Stackless/core/stacklesseval.c:281
#4  0x002913ac in climb_stack_and_eval_frame (f=0x60b710) at 
Stackless/core/stacklesseval.c:248
#5  0x00291228 in slp_eval_frame (f=0x60bd60) at 
Stackless/core/stacklesseval.c:276
#6  0x00288424 in PyEval_EvalCode (co=0x60b710, globals=0x0, locals=0x0) 
at Python/ceval.c:486
#7  0x002c6414 in PyRun_FileExFlags (fp=0xa000db44, filename=0xbffffc62 
"test2.py", start=6338660, globals=0x28300, locals=0x28300, closeit=1, 
flags=0x585e0) at Python/pythonrun.c:1297
#8  0x002c67bc in PyRun_SimpleFileExFlags (fp=0xa000db44, 
filename=0xbffffc62 "test2.py", closeit=1, flags=0xbffffa6c) at 
Python/pythonrun.c:877
#9  0x002d1a74 in Py_Main (argc=-2147483648, argv=0xbffffbdc) at 
Modules/main.c:493
#10 0x0000258c in _start (argc=2, argv=0xbffffbdc, envp=0xbffffbe8) at 
/SourceCache/Csu/Csu-58/crt.c:272
#11 0x00002434 in start ()

_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless



More information about the Stackless mailing list