<div class="gmail_quote">
<div>Hi All,</div>
<div> </div>
<div>I'm seeing segmentation fault after few days of running the python code, which is fairly complicated. Below is the backtrace and looking at it, looks like the stackpointer is becoming NULL and we are trying to push something on the stack.</div>

<div> </div>
<div>I'd appreciate any help in debugging this further.</div>
<div> </div>
<div>Thanks,</div>
<div>Prashanth</div>
<div> </div>
<div> </div>
<div>(gdb) <br>#0  0x004a3338 in PyEval_EvalFrame_value (f=0x2989120, throwflag=0, retval=0x0) at Python/ceval.c:907<br>#1  0x004a921c in slp_frame_dispatch_top (retval=0x0) at Stackless/core/stacklesseval.c:698<br>#2  0x004ac7ec in slp_run_tasklet () at Stackless/module/scheduling.c:1163<br>
#3  0x004aa504 in slp_eval_frame (f=0x5cd210) at Stackless/core/stacklesseval.c:299<br>#4  0x004aa56c in climb_stack_and_eval_frame (f=0x5cd210) at Stackless/core/stacklesseval.c:266<br>#5  0x004aa464 in slp_eval_frame (f=0x5cd210) at Stackless/core/stacklesseval.c:294<br>
#6  0x0051689c in function_call (func=0x2ade5970, arg=0x2add24e0, kw=0x0) at Objects/funcobject.c:520<br>#7  0x00413810 in PyObject_Call (func=0x5cd210, arg=0x2add24e0, kw=0x0) at Objects/abstract.c:1864<br>#8  0x0040f080 in Py_Main (argc=7, argv=<value optimized out>) at Modules/main.c:165<br>
#9  0x2abfa704 in ?? () from /lib/libc.so.6<br>(gdb)</div>
<div> </div>
<div>Corresponding code:</div>
<div> </div>
<div>#ifdef STACKLESS<br>        if (f->f_execute == PyEval_EvalFrame_value) {<br>        /* this is a return */<br>                PUSH(retval); /* we are back from a function call */             -----> crash occurs here<br>
        }<br></div></div><br>