0

我运行了一个 python 代码,我得到了错误,“分段错误”。然后我运行“gdb python”并从(gdb)提示符重新运行代码,得到以下结果:

#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---

谁能帮我解决我的错误?谢谢!

4

1 回答 1

1

从回溯可以解释它是在 fprank_() 函数中崩溃的 scipy 本机库。

这很可能是一个 scipy 错误。联系 scipy 社区和/或使用隔离的测试用例提交针对 scipy 的错误。

您不太可能在 stackoverflow.com 中找到解决方案,因为它显然是一个崩溃的错误。

于 2012-08-01T18:49:16.690 回答