Hi all, I encountered a problem related to the python interface of algencan. See http://www.ime.usp.br/~egbirgin/tango/py.php The backtrace of my small test (comparison.py) is as follows: starting solver ALGENCAN (license: GPL) with problem unnamed *** glibc detected *** double free or corruption (out): 0x0000000000e17a40 *** PYTHON INTERFACE ERROR: in inip, PyEval_CallFunction returned NULL Program received signal SIGABRT, Aborted. [Switching to Thread 182894186368 (LWP 5735)] 0x0000003390e2e21d in raise () from /lib64/tls/libc.so.6 (gdb) bt #0 0x0000003390e2e21d in raise () from /lib64/tls/libc.so.6 #1 0x0000003390e2fa1e in abort () from /lib64/tls/libc.so.6 #2 0x0000003390e63291 in __libc_message () from /lib64/tls/libc.so.6 #3 0x0000003390e68eae in _int_free () from /lib64/tls/libc.so.6 #4 0x0000003390e691f6 in free () from /lib64/tls/libc.so.6 #5 0x0000002a9df3bd71 in memFree () from /data/home/nwagner/TANGO/pywrapper.so #6 0x0000002a9df3dc6b in pywrapper_solver () from /data/home/nwagner/TANGO/pywrapper.so #7 0x000000000048994b in PyEval_EvalFrameEx (f=0x1234c30, throwflag=Variable "throwflag" is not available. ) at Python/ceval.c:3564 #8 0x000000000048a205 in PyEval_EvalFrameEx (f=0x124f6b0, throwflag=Variable "throwflag" is not available. ) at Python/ceval.c:3650 #9 0x000000000048b791 in PyEval_EvalCodeEx (co=0x2a9d6ff288, globals=Variable "globals" is not available. ) at Python/ceval.c:2831 #10 0x00000000004894d1 in PyEval_EvalFrameEx (f=0x120f9e0, throwflag=Variable "throwflag" is not available. ) at Python/ceval.c:3659 #11 0x000000000048b791 in PyEval_EvalCodeEx (co=0x2a9c911918, globals=Variable "globals" is not available. ) at Python/ceval.c:2831 #12 0x00000000004d8ab8 in function_call (func=0x2a9c911aa0, arg=0x2a9cc91200, kw=0x12393f0) at Objects/funcobject.c:517 #13 0x00000000004194c3 in PyObject_Call (func=Variable "func" is not available. ) at Objects/abstract.c:1860 #14 0x0000000000487f3b in PyEval_EvalFrameEx (f=0x1210980, throwflag=Variable "throwflag" is not available. ) at Python/ceval.c:3844 #15 0x000000000048b791 in PyEval_EvalCodeEx (co=0x2a9b6b93f0, globals=Variable "globals" is not available. ) at Python/ceval.c:2831 #16 0x00000000004894d1 in PyEval_EvalFrameEx (f=0x6d2690, throwflag=Variable "throwflag" is not available. ) at Python/ceval.c:3659 #17 0x000000000048b791 in PyEval_EvalCodeEx (co=0x2a955fec60, globals=Variable "globals" is not available. ) at Python/ceval.c:2831 #18 0x000000000048b902 in PyEval_EvalCode (co=Variable "co" is not available. ) at Python/ceval.c:494 #19 0x00000000004adc9e in PyRun_FileExFlags (fp=0x65c010, filename=0x7fbffffa2c "comparison.py", start=Variable "start" is not available. ) at Python/pythonrun.c:1271 #20 0x00000000004aeb1f in PyRun_SimpleFileExFlags (fp=0x65c010, filename=0x7fbffffa2c "comparison.py", closeit=1, flags=0x7fbffff5dc) at Python/pythonrun.c:877 #21 0x0000000000411f77 in Py_Main (argc=-1073743316, argv=Variable "argv" is not available. ) at Modules/main.c:523 #22 0x0000003390e1c3fb in __libc_start_main () from /lib64/tls/libc.so.6 #23 0x000000000041163a in _start () How can I resolve the problem ? Any pointer would be appreciated. Thanks in advance Nils
Hi Nils, I have made some changes to svn, try using ALGENCAN now. Regards, D. Nils Wagner wrote:
Hi all,
I encountered a problem related to the python interface of algencan. See http://www.ime.usp.br/~egbirgin/tango/py.php
The backtrace of my small test (comparison.py) is as follows:
starting solver ALGENCAN (license: GPL) with problem unnamed *** glibc detected *** double free or corruption (out): 0x0000000000e17a40 ***
PYTHON INTERFACE ERROR: in inip, PyEval_CallFunction returned NULL
Program received signal SIGABRT, Aborted. [Switching to Thread 182894186368 (LWP 5735)] 0x0000003390e2e21d in raise () from /lib64/tls/libc.so.6 (gdb) bt #0 0x0000003390e2e21d in raise () from /lib64/tls/libc.so.6 #1 0x0000003390e2fa1e in abort () from /lib64/tls/libc.so.6 #2 0x0000003390e63291 in __libc_message () from /lib64/tls/libc.so.6 #3 0x0000003390e68eae in _int_free () from /lib64/tls/libc.so.6 #4 0x0000003390e691f6 in free () from /lib64/tls/libc.so.6 #5 0x0000002a9df3bd71 in memFree () from /data/home/nwagner/TANGO/pywrapper.so #6 0x0000002a9df3dc6b in pywrapper_solver () from /data/home/nwagner/TANGO/pywrapper.so #7 0x000000000048994b in PyEval_EvalFrameEx (f=0x1234c30, throwflag=Variable "throwflag" is not available. ) at Python/ceval.c:3564 #8 0x000000000048a205 in PyEval_EvalFrameEx (f=0x124f6b0, throwflag=Variable "throwflag" is not available. ) at Python/ceval.c:3650 #9 0x000000000048b791 in PyEval_EvalCodeEx (co=0x2a9d6ff288, globals=Variable "globals" is not available. ) at Python/ceval.c:2831 #10 0x00000000004894d1 in PyEval_EvalFrameEx (f=0x120f9e0, throwflag=Variable "throwflag" is not available. ) at Python/ceval.c:3659 #11 0x000000000048b791 in PyEval_EvalCodeEx (co=0x2a9c911918, globals=Variable "globals" is not available. ) at Python/ceval.c:2831 #12 0x00000000004d8ab8 in function_call (func=0x2a9c911aa0, arg=0x2a9cc91200, kw=0x12393f0) at Objects/funcobject.c:517 #13 0x00000000004194c3 in PyObject_Call (func=Variable "func" is not available. ) at Objects/abstract.c:1860 #14 0x0000000000487f3b in PyEval_EvalFrameEx (f=0x1210980, throwflag=Variable "throwflag" is not available. ) at Python/ceval.c:3844 #15 0x000000000048b791 in PyEval_EvalCodeEx (co=0x2a9b6b93f0, globals=Variable "globals" is not available. ) at Python/ceval.c:2831 #16 0x00000000004894d1 in PyEval_EvalFrameEx (f=0x6d2690, throwflag=Variable "throwflag" is not available. ) at Python/ceval.c:3659 #17 0x000000000048b791 in PyEval_EvalCodeEx (co=0x2a955fec60, globals=Variable "globals" is not available. ) at Python/ceval.c:2831 #18 0x000000000048b902 in PyEval_EvalCode (co=Variable "co" is not available. ) at Python/ceval.c:494 #19 0x00000000004adc9e in PyRun_FileExFlags (fp=0x65c010, filename=0x7fbffffa2c "comparison.py", start=Variable "start" is not available. ) at Python/pythonrun.c:1271 #20 0x00000000004aeb1f in PyRun_SimpleFileExFlags (fp=0x65c010, filename=0x7fbffffa2c "comparison.py", closeit=1, flags=0x7fbffff5dc) at Python/pythonrun.c:877 #21 0x0000000000411f77 in Py_Main (argc=-1073743316, argv=Variable "argv" is not available. ) at Modules/main.c:523 #22 0x0000003390e1c3fb in __libc_start_main () from /lib64/tls/libc.so.6 #23 0x000000000041163a in _start ()
How can I resolve the problem ?
Any pointer would be appreciated.
Thanks in advance
Nils
------------------------------------------------------------------------
_______________________________________________ Scipy-dev mailing list Scipy-dev@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-dev
Nils, try using p.xlabel = 'nf' this is temporary name for "number of function evaluations", I will think what is better name for the case, and then commit it into OO doc. This is more appropriate vs your "iteration" that you have chosen for your x label. Your "iteration" is just a single objfunc evaluation, while users will suppose solvers have different iterations with different number of objFunc evaluations in each one. Also, take into account, that ralg can yield infeasible iteration points, so your single-subplot picture doesn't provide all convergence info. Ralg is intended to handle lb-ub problems more bette in future. Regards, D. Nils Wagner wrote:
On Thu, 20 Mar 2008 19:03:25 +0200 dmitrey <dmitrey.kroshko@scipy.org> wrote:
Hi Nils, I have made some changes to svn, try using ALGENCAN now.
Great ! It works for me. Thank you very much !
Nils _______________________________________________ Scipy-dev mailing list Scipy-dev@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-dev
On Thu, 20 Mar 2008 20:32:53 +0200 dmitrey <dmitrey.kroshko@scipy.org> wrote:
Nils, try using p.xlabel = 'nf'
this is temporary name for "number of function evaluations", I will think what is better name for the case, and then commit it into OO doc.
This is more appropriate vs your "iteration" that you have chosen for your x label. Your "iteration" is just a single objfunc evaluation, while users will suppose solvers have different iterations with different number of objFunc evaluations in each one.
Also, take into account, that ralg can yield infeasible iteration points, so your single-subplot picture doesn't provide all convergence info. Ralg is intended to handle lb-ub problems more bette in future. Regards, D.
Nils Wagner wrote:
On Thu, 20 Mar 2008 19:03:25 +0200 dmitrey <dmitrey.kroshko@scipy.org> wrote:
Hi Nils, I have made some changes to svn, try using ALGENCAN now.
Great ! It works for me. Thank you very much !
Nils _______________________________________________ Scipy-dev mailing list Scipy-dev@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-dev
_______________________________________________ Scipy-dev mailing list Scipy-dev@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-dev
Hi Dmitrey, Thank you for your comments. BTW, do you have an optional specification file algencan.dat that you can send me ? I just noticed the message The optional specification file algencan.dat was not found in the current directory (this is not a problem nor an error). The default values for the ALGENCAN parameters will be used. ALGENCAN PARAMETERS: rhoauto = T rhotype = 1 rhomult = 1.0000E+01 rhofrac = 5.0000E-01 gtype = 0 hptype = 6 intype = 0 precond = QNCGNA checkder = F epsfeas = 1.0000E-06 epsopt = 1.0000E-06 maxoutit = 50 maxtotit = 1000 maxtotfc = 10000 iprint = 0 ncomp = 5 ALGENCAN has finished solving the problem unnamed istop: 2 (|| gradient F(X[k]) || < gradtol) Solver: Time Elapsed = 0.21 CPU Time Elapsed = 0.2 objFunValue: 443.752171145 (feasible, max constraint = 0) Nils
Nils Wagner wrote:
On Thu, 20 Mar 2008 20:32:53 +0200 dmitrey <dmitrey.kroshko@scipy.org> wrote:
Nils, try using p.xlabel = 'nf'
this is temporary name for "number of function evaluations", I will think what is better name for the case, and then commit it into OO doc.
This is more appropriate vs your "iteration" that you have chosen for your x label. Your "iteration" is just a single objfunc evaluation, while users will suppose solvers have different iterations with different number of objFunc evaluations in each one.
Also, take into account, that ralg can yield infeasible iteration points, so your single-subplot picture doesn't provide all convergence info. Ralg is intended to handle lb-ub problems more bette in future. Regards, D.
Nils Wagner wrote:
On Thu, 20 Mar 2008 19:03:25 +0200 dmitrey <dmitrey.kroshko@scipy.org> wrote:
Hi Nils, I have made some changes to svn, try using ALGENCAN now.
Great ! It works for me. Thank you very much !
Nils _______________________________________________ Scipy-dev mailing list Scipy-dev@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-dev
_______________________________________________ Scipy-dev mailing list Scipy-dev@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-dev
Hi Dmitrey,
Thank you for your comments.
BTW, do you have an optional specification file algencan.dat that you can send me ?
I just noticed the message
The optional specification file algencan.dat was not found in the current directory (this is not a problem nor an error). The default values for the ALGENCAN parameters will be used.
ALGENCAN PARAMETERS: rhoauto = T rhotype = 1 rhomult = 1.0000E+01 rhofrac = 5.0000E-01 gtype = 0 hptype = 6 intype = 0 precond = QNCGNA checkder = F epsfeas = 1.0000E-06 epsopt = 1.0000E-06 maxoutit = 50 maxtotit = 1000 maxtotfc = 10000 iprint = 0 ncomp = 5
This output is generated by ALGENCAN, not OO. You'd better contact ALGENCAN developers about the file. Regards, D.
ALGENCAN has finished solving the problem unnamed istop: 2 (|| gradient F(X[k]) || < gradtol) Solver: Time Elapsed = 0.21 CPU Time Elapsed = 0.2 objFunValue: 443.752171145 (feasible, max constraint = 0)
Nils
_______________________________________________ Scipy-dev mailing list Scipy-dev@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-dev
participants (2)
-
dmitrey
-
Nils Wagner