Segmentation fault in Scipy _fitpack fprank_()

天大地大妈咪最大 提交于 2019-12-25 00:16:50

问题


I ran a python code and I got the error just, "Segmentation fault". I then ran "gdb python" and re-run the code from the (gdb) prompt, and I got the following result:

#0  0x00007fffed573487 in fprank_ ()
    from /usr/lib/python2.7/dist-packages/scipy/interpolate/_fitpack.so
#1  0x00007fffed56ee81 in fpsurf_ ()
    from /usr/lib/python2.7/dist-packages/scipy/interpolate/_fitpack.so
#2  0x00007fffed55363d in surfit_ ()
   from /usr/lib/python2.7/dist-packages/scipy/interpolate/_fitpack.so
#3  0x00007fffed54183a in fitpack_surfit (dummy=<value optimised out>, 
    args=<value optimised out>) at scipy/interpolate/src/__fitpack.h:217
#4  0x00000000004965f1 in call_function (f=<value optimised out>, 
    throwflag=<value optimised out>) at ../Python/ceval.c:4013
#5  PyEval_EvalFrameEx (f=<value optimised out>, 
    throwflag=<value optimised out>) at ../Python/ceval.c:2666
#6  0x000000000049d325 in PyEval_EvalCodeEx (co=0x1cf50b0, 
    globals=<value optimised out>, locals=<value optimised out>, 
    args=<value optimised out>, argcount=<value optimised out>, 
    kws=<value optimised out>, kwcount=5, defs=0x1baaca0, defcount=16, closure=
    0x0) at ../Python/ceval.c:3253
#7  0x0000000000496a92 in fast_function (f=<value optimised out>, 
    throwflag=<value optimised out>) at ../Python/ceval.c:4109
#8  call_function (f=<value optimised out>, throwflag=<value optimised out>)
    at ../Python/ceval.c:4034
---Type <return> to continue, or q <return> to quit---

Can anyone help me sort out my mistake? Thanks!


回答1:


From the traceback one can interpret that it is scipy native libraries which are crashing in fprank_() function.

It is most likely a scipy bug. Contact scipy community and/or file a bug against scipy with an isolated test case.

It is unlikely you will find a solution in stackoverflow.com, because it is clearly a crashing bug.



来源:https://stackoverflow.com/questions/11765510/segmentation-fault-in-scipy-fitpack-fprank

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!