[Stackless] Segmentation fault at exit

Andreas Olsson andreas.t.olsson at gmail.com
Sat Oct 13 00:00:22 CEST 2012


Hello,

I have been using Stackless for a private project for several years now,
and it has always worked great. Big thanks to all of you guys. This time
though I have come across a problem where I am sort of stuck: I don't know
in which direction to proceed. The problem is that I am getting
segmentation fault when my program exits. The segmentation fault occurs
after my main program returns control. When I run the program under gdb the
stack trace looks like shown below.

The program as such is reasonably complex with a couple of socket
connections. I don't mind digging around a bit for information, but this
time I sort of ran out of steam.

I am running: Python 2.6.5 Stackless 3.1b3 060516 (python-2.65:88968M, Jun
15 2012, 23:48:43) on Ubuntu 12.04


Please, can anyone put me on the right track for how to go about to resolve
this problem? Any hint is most welcome.

Thank you in advance

/Andreas Olsson



<-- snip -->

>>>
>>> stop()
>>> stop requested ()
entering phase 4: shutdown
completed phase 4: shutdown

Program received signal SIGSEGV, Segmentation fault.
0x0000000000494685 in PyEval_EvalFrame_value (f=0xb431a0, throwflag=0,
retval=0x0) at Python/ceval.c:957
957                     PUSH(retval); /* we are back from a function call */
(gdb) bt
#0  0x0000000000494685 in PyEval_EvalFrame_value (f=0xb431a0, throwflag=0,
retval=0x0) at Python/ceval.c:957
#1  0x000000000049b920 in slp_frame_dispatch_top (retval=<optimized out>)
at Stackless/core/stacklesseval.c:719
#2  0x000000000049e10e in slp_run_tasklet () at
Stackless/module/scheduling.c:1204
#3  0x000000000049b100 in slp_eval_frame (f=0x87d0c0) at
Stackless/core/stacklesseval.c:299
#4  0x000000000049b186 in climb_stack_and_eval_frame (f=<optimized out>) at
Stackless/core/stacklesseval.c:266
#5  0x000000000049b11c in slp_eval_frame (f=0x87d0c0) at
Stackless/core/stacklesseval.c:294
#6  0x0000000000493ab2 in PyEval_EvalCode (co=<optimized out>,
globals=<optimized out>, locals=<optimized out>) at Python/ceval.c:543
#7  0x00000000004c7be6 in run_mod (arena=0x7f5c80, flags=0x7fffffffe050,
locals=0x8118c0, globals=0x8118c0, filename=<optimized out>, mod=0x87dc10)
    at Python/pythonrun.c:1379
#8  PyRun_FileExFlags (fp=0x7f55b0, filename=<optimized out>,
start=<optimized out>, globals=0x8118c0, locals=0x8118c0, closeit=1,
flags=0x7fffffffe050)
    at Python/pythonrun.c:1363
#9  0x00000000004c85d7 in PyRun_SimpleFileExFlags (fp=0x7f55b0,
filename=0x7fffffffe46e "jg/JC/runlocal.py", closeit=1,
flags=0x7fffffffe050)
    at Python/pythonrun.c:952
#10 0x00000000004164e7 in Py_Main (argc=<optimized out>, argv=<optimized
out>) at Modules/main.c:572
#11 0x00007ffff711e76d in __libc_start_main () from
/lib/x86_64-linux-gnu/libc.so.6
#12 0x0000000000415761 in _start ()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stackless.com/pipermail/stackless/attachments/20121013/a44518e5/attachment.html>


More information about the Stackless mailing list