Hello,<br><br>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.<br>
<br>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.<br><br>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<br>
<br><br>Please, can anyone put me on the right track for how to go about to resolve this problem? Any hint is most welcome.<br><br>Thank you in advance<br><br>/Andreas Olsson<br><br><br><br><-- snip --><br><br>>>> <br>
>>> stop()<br>>>> stop requested ()<br>entering phase 4: shutdown<br>completed phase 4: shutdown<br><br>Program received signal SIGSEGV, Segmentation fault.<br>0x0000000000494685 in PyEval_EvalFrame_value (f=0xb431a0, throwflag=0, retval=0x0) at Python/ceval.c:957<br>
957                     PUSH(retval); /* we are back from a function call */<br>(gdb) bt<br>#0  0x0000000000494685 in PyEval_EvalFrame_value (f=0xb431a0, throwflag=0, retval=0x0) at Python/ceval.c:957<br>#1  0x000000000049b920 in slp_frame_dispatch_top (retval=<optimized out>) at Stackless/core/stacklesseval.c:719<br>
#2  0x000000000049e10e in slp_run_tasklet () at Stackless/module/scheduling.c:1204<br>#3  0x000000000049b100 in slp_eval_frame (f=0x87d0c0) at Stackless/core/stacklesseval.c:299<br>#4  0x000000000049b186 in climb_stack_and_eval_frame (f=<optimized out>) at Stackless/core/stacklesseval.c:266<br>
#5  0x000000000049b11c in slp_eval_frame (f=0x87d0c0) at Stackless/core/stacklesseval.c:294<br>#6  0x0000000000493ab2 in PyEval_EvalCode (co=<optimized out>, globals=<optimized out>, locals=<optimized out>) at Python/ceval.c:543<br>
#7  0x00000000004c7be6 in run_mod (arena=0x7f5c80, flags=0x7fffffffe050, locals=0x8118c0, globals=0x8118c0, filename=<optimized out>, mod=0x87dc10)<br>    at Python/pythonrun.c:1379<br>#8  PyRun_FileExFlags (fp=0x7f55b0, filename=<optimized out>, start=<optimized out>, globals=0x8118c0, locals=0x8118c0, closeit=1, flags=0x7fffffffe050)<br>
    at Python/pythonrun.c:1363<br>#9  0x00000000004c85d7 in PyRun_SimpleFileExFlags (fp=0x7f55b0, filename=0x7fffffffe46e "jg/JC/runlocal.py", closeit=1, flags=0x7fffffffe050)<br>    at Python/pythonrun.c:952<br>
#10 0x00000000004164e7 in Py_Main (argc=<optimized out>, argv=<optimized out>) at Modules/main.c:572<br>#11 0x00007ffff711e76d in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6<br>#12 0x0000000000415761 in _start ()<br>
<br>