[Stackless] web.py

Matt Provost mprovost at termcap.net
Thu Jun 21 06:24:29 CEST 2007


Has anyone gotten stackless to work with web.py? I'm trying to port some
CGIs over but it either segfaults or just hangs. Monkeypatching
stacklesssocket was causing problems but I think I fixed that (you have
to add:
fromfd = stdsocket.fromfd
getfqdn = stdsocket.getfqdn
to stacklesssocket).

Running some simple test scripts with tasklets works ok but some of my
more complicated programs fail so I'm not sure exactly where the problem
is. It looks like I call stackless.run() and that's the last I hear from
it.

Looking at one of the core dumps it seems like it's looping trying to
kill a tasklet maybe:
#262061 0x080c809e in impl_tasklet_kill (task=0xb7976994) at Stackless/module/taskletobject.c:961
#262062 0x080c70a9 in tasklet_clear (t=0xb7976994) at Stackless/module/taskletobject.c:943
#262063 0x080c809e in impl_tasklet_kill (task=0xb7976994) at Stackless/module/taskletobject.c:961
#262064 0x080c70a9 in tasklet_clear (t=0xb7976994) at Stackless/module/taskletobject.c:943
#262065 0x080c809e in impl_tasklet_kill (task=0xb7976994) at Stackless/module/taskletobject.c:961
Segmentation fault (core dumped)

That's the longest backtrace I've ever seen; the final coredump is gdb
dying. It all looks the same, just alternating between those two calls.

Anyone have any ideas?

Thanks,
Matt

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



More information about the Stackless mailing list