我运行了一个 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---
谁能帮我解决我的错误?谢谢!