[SciPy-dev] segmentation fault optimize.fmin_cg

Nils Wagner nwagner at mecha.uni-stuttgart.de
Fri Oct 7 08:13:16 CDT 2005


Hi all,

Running the attached test results in a segmentation fault

(gdb) run test_optimize.py
Starting program: /usr/local/bin/python test_optimize.py
[Thread debugging using libthread_db enabled]
[New Thread 1076102528 (LWP 4283)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1076102528 (LWP 4283)]
0x405b06ef in array_from_pyobj (type_num=12, dims=Variable "dims" is not
available.
) at build/src/fortranobject.c:651
651       if (PyArray_Check(obj)) { /* here we have always intent(in) or
(gdb) bt
#0  0x405b06ef in array_from_pyobj (type_num=12, dims=Variable "dims" is
not available.
) at build/src/fortranobject.c:651
#1  0x405af112 in f2py_rout_minpack2_dcsrch (capi_self=0x40242d10,
capi_args=0x40420974, capi_keywds=0x0, f2py_func=0x405b1340 <dcsrch_>)
    at build/src/Lib/optimize/minpack2/minpack2module.c:309
#2  0x405afa72 in fortran_call (fp=Variable "fp" is not available.
) at build/src/fortranobject.c:277
#3  0x0805928e in PyObject_Call (func=0x40242d10, arg=0x40420974,
kw=0x0) at Objects/abstract.c:1746
#4  0x080c408d in PyEval_EvalFrame (f=0x823f01c) at Python/ceval.c:3755
#5  0x080c7a54 in PyEval_EvalCodeEx (co=0x4041df20, globals=0x4042835c,
locals=0x0, args=0x823efe4, argcount=7, kws=0x823f000, kwcount=1,
    defs=0x4041e790, defcount=4, closure=0x0) at Python/ceval.c:2730
#6  0x080c52a8 in PyEval_EvalFrame (f=0x823ee0c) at Python/ceval.c:3639
#7  0x080c7a54 in PyEval_EvalCodeEx (co=0x4041d7e0, globals=0x40416e84,
locals=0x0, args=0x8196eb4, argcount=2, kws=0x8196ebc, kwcount=0,
    defs=0x404270b8, defcount=9, closure=0x0) at Python/ceval.c:2730
#8  0x080c52a8 in PyEval_EvalFrame (f=0x8196d64) at Python/ceval.c:3639
#9  0x080c7a54 in PyEval_EvalCodeEx (co=0x4028a5e0, globals=0x40259824,
locals=0x40259824, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0,
    defcount=0, closure=0x0) at Python/ceval.c:2730
#10 0x080c7c85 in PyEval_EvalCode (co=0x4028a5e0, globals=0x40259824,
locals=0x40259824) at Python/ceval.c:484
#11 0x080f63b8 in PyRun_SimpleFileExFlags (fp=0x815e008,
filename=0xbfffec12 "test_optimize.py", closeit=1, flags=0xbfffe904)
    at Python/pythonrun.c:1264
#12 0x08055857 in Py_Main (argc=1, argv=0xbfffe9c4) at Modules/main.c:484
#13 0x08054f07 in main (argc=2, argv=0xbfffe9c4) at Modules/python.c:23
(gdb)

Nils

 



-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_optimize.py
Type: text/x-python
Size: 859 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/scipy-dev/attachments/20051007/980a6e9a/attachment.py 


More information about the Scipy-dev mailing list