[Stackless] Bug report: MemoryError in stackless

Jochen Roth roth at new-light.de
Tue Feb 24 08:37:19 CET 2009

Richard Tew wrote:
> What branch are you talking about?  Revision 69906 does not mean anything.

release26-maint, sorry, I forgot to mention that.

> I am unable to reproduce this on Windows or some variety of unix which
> I have access to.
> I can look into it if you have a shell account you can give access to,
> but otherwise, not much I can do.

Thanks for this offer but I'm afraid that I can't give you access to
this machine.
But you could answer me one simple question: Is stackless supposed to
work on big endian machines? I know that python is for sure. But I tried
to compile stackless python2.6 on ppc and on s390 and I didn't get it
working on those machines. The same code works fine and smooth on x86

I'll try to find the bug on my own even though I'm not a python expert.
It would be great if you could give me your thoughts on the following
stacktrace I receive when running the unittests.

gdb --args ./python -E -tt Stackless/unittests/runAll.py

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 2199025728240 (LWP 20639)]
slp_cstack_restore (cst=Cannot access memory at address 0x3ff7faf67f2
) at Stackless/core/stacklesseval.c:142
142	{
(gdb) bt
#0  slp_cstack_restore (cst=Cannot access memory at address 0x3ff7faf67f2
) at Stackless/core/stacklesseval.c:142
#1  0x0000000080234a00 in slp_transfer (cstprev=0x200003c3a20,
cst=0x80346da0, prev=0x200003c39d8) at
#2  0x00000000801317d0 in make_initial_stub () at
#3  0x00000000801319de in slp_eval_frame (f=0x803fd238) at
#4  0x00000000801318e2 in climb_stack_and_eval_frame (f=0x803fd238) at
#5  0x00000000801319b8 in slp_eval_frame (f=0x803fd238) at
#6  0x00000000801291be in PyEval_EvalCodeEx (co=0x200003c1e08,
globals=0x80344ce8, locals=0x80344ce8, args=0x0, argcount=0, kws=0x0,
kwcount=0, defs=0x0,
    defcount=0, closure=0x0) at Python/ceval.c:3236
#7  0x000000008011a6b2 in PyEval_EvalCode (co=0x200003c1e08,
globals=0x80344ce8, locals=0x80344ce8) at Python/ceval.c:517
#8  0x0000000080188d56 in run_mod (mod=0x803fed98,
filename=0x3ffff9d24bf "Stackless/unittests/runAll.py",
globals=0x80344ce8, locals=0x80344ce8,
    flags=0x3ffff9d1e34, arena=0x803b92f0) at Python/pythonrun.c:1361
#9  0x0000000080188c74 in PyRun_FileExFlags (fp=0x803e04a0,
filename=0x3ffff9d24bf "Stackless/unittests/runAll.py", start=257,
    locals=0x80344ce8, closeit=1, flags=0x3ffff9d1e34) at
#10 0x0000000080186c2a in PyRun_SimpleFileExFlags (fp=0x803e04a0,
filename=0x3ffff9d24bf "Stackless/unittests/runAll.py", closeit=1,
    at Python/pythonrun.c:943
#11 0x0000000080185e70 in PyRun_AnyFileExFlags (fp=0x803e04a0,
filename=0x3ffff9d24bf "Stackless/unittests/runAll.py", closeit=1,
    at Python/pythonrun.c:748
#12 0x000000008001a334 in Py_Main (argc=4, argv=0x3ffff9d2168) at
#13 0x0000000080018696 in main (argc=4, argv=0x3ffff9d2168) at


More information about the Stackless mailing list