Issue 12: Derivative Test fails with Segfault
Status:  New
Owner: ----
Reported by st...@wh2.tu-dresden.de, Nov 15, 2010
Derivative test fails with segfault on 64bit Linux and OSX 10.6.x.

This can be reproduced by  calling example.py with an ipopt.opt present in the same directory where derivative_test first-order is set.

Only the Python interface (latest pyipopt from svn) is affected. Derivative test works fine for C++ and C examples using IpOpt 3.8.3.
Nov 23, 2010
Project Member #1 herbschi...@gmail.com
I think I know how to solve this. You need to include a call to 

  import_array1(FALSE); 

in the eval_f function. See http://www.mail-archive.com/numpy-discussion@scipy.org/msg09122.html.

This works for me. But it only works for first-order. 

If you try second-order, I get this error. I don't know how to fix that. 

There is no eval_h assignedException of type: ERROR_IN_TNLP_DERIVATIVE_TEST in file "IpTNLPAdapter.cpp" at line 2550:
 Exception message: retval evaluated false: In TNLP derivative test: Hessian structure could not be evaluated.

EXIT: Some uncaught Ipopt exception encountered.