<div dir="ltr"><div><div>I had recently wanted to test the ipopt mex with ma97. I downloaded ipopt 3.11, installed all the third party software, coinhsl, copied the .site file, as described in the installation instructions, into build/share. I saw that the configuration and make recognizes all the linear solvers I have available and goes error-free. <br>
<br></div>First, in order to be able to even run ipopt in matlab, I need to call matlab as such:<br>LD_PRELOAD=&quot;/usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/local/lib/libcoinhsl.so.0&quot; /usr/local/MATLAB-R2012a/bin/matlab<br>
<br><br></div><div>Otherwise matlab, upon attempting to run ipopt, returns an error saying that it cannot find these libraries that I now preload. <br><br></div><div>Once I run it like this and run ipopt, with any linear solver, MATLAB crashes, with the details below. <br>
<br><br></div><div>I am not sure as to what could be causing this. I am using ubuntu, and others with ubuntu have had no trouble installing and using the ipopt mex. <br></div><div><br></div><div>Thank you<br></div><div><br>
<br><br>------------------------------------------------------------------------<br>       Segmentation violation detected at Tue May 28 14:47:35 2013<br>------------------------------------------------------------------------<br>
<br>Configuration:<br>  Crash Decoding  : Disabled<br>  Current Visual  : 0x21 (class 4, depth 24)<br>  Default Encoding: UTF-8<br>  GNU C Library   : 2.15 stable<br>  MATLAB Root     : /usr/local/MATLAB-R2012a<br>  MATLAB Version  : 7.14.0.739 (R2012a)<br>
  Operating System: Linux 3.5.0-31-generic #52-Ubuntu SMP Thu May 16 16:27:05 UTC 2013 x86_64<br>  Processor ID    : x86 Family 6 Model 58 Stepping 9, GenuineIntel<br>  Virtual Machine : Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode<br>
  Window System   : The X.Org Foundation (11300000), display :0<br><br>Fault Count: 1<br><br><br>Abnormal termination:<br>Segmentation violation<br><br>Register State (from fault):<br>  RAX = 0000000000000000  RBX = 00007f03f7013612<br>
  RCX = 0000000000000032  RDX = 00007f03aa9521a0<br>  RSP = 00007f05558f2b90  RBP = 00007f05558f2bc0<br>  RSI = 00007f03f7013612  RDI = 00007f054bb1aaf4<br><br>   R8 = 000000000000002d   R9 = 0101010101010101<br>  R10 = 0000000000000000  R11 = 00007f0567c6be86<br>
  R12 = 482a457000007f05  R13 = 00007f03f70135e0<br>  R14 = 0000000000000032  R15 = 6f6974636e756620<br><br>  RIP = 00007f056a74e2ea  EFL = 0000000000010206<br><br>   CS = 0033   FS = 0000   GS = 0000<br><br>Stack Trace (from fault):<br>
[  0] 0x00007f056aa0192e    /usr/local/MATLAB-R2012a/bin/glnxa64/libmwfl.so+00370990 _ZN2fl4diag15stacktrace_base7captureERKNS0_14thread_contextEm+000158<br>[  1] 0x00007f056aa047d0    /usr/local/MATLAB-R2012a/bin/glnxa64/libmwfl.so+00382928<br>
[  2] 0x00007f056aa04b3b    /usr/local/MATLAB-R2012a/bin/glnxa64/libmwfl.so+00383803 _ZN2fl4diag13terminate_logEPKcRKNS0_14thread_contextE+000171<br>[  3] 0x00007f05698e8203   /usr/local/MATLAB-R2012a/bin/glnxa64/libmwmcr.so+01253891 _ZN2fl4diag13terminate_logEPKcPK8ucontext+000067<br>
[  4] 0x00007f05698e50fd   /usr/local/MATLAB-R2012a/bin/glnxa64/libmwmcr.so+01241341<br>[  5] 0x00007f05698e679d   /usr/local/MATLAB-R2012a/bin/glnxa64/libmwmcr.so+01247133<br>[  6] 0x00007f05698e6925   /usr/local/MATLAB-R2012a/bin/glnxa64/libmwmcr.so+01247525<br>
[  7] 0x00007f05698e6f01   /usr/local/MATLAB-R2012a/bin/glnxa64/libmwmcr.so+01249025<br>[  8] 0x00007f05698e73f5   /usr/local/MATLAB-R2012a/bin/glnxa64/libmwmcr.so+01250293<br>[  9] 0x00007f0567faecb0              /lib/x86_64-linux-gnu/libpthread.so.0+00064688<br>
[ 10] 0x00007f056a74e2ea      /usr/local/MATLAB-R2012a/bin/glnxa64/libmx.so+00398058 mxgetstring730_+000042<br>[ 11] 0x00007f03aa90f697 /home/slava/algencan-2.4.0/bin/matlab/algencan.mexa64+00005783 mexfunction_+000471<br>
[ 12] 0x00007f056290acdc     /usr/local/MATLAB-R2012a/bin/glnxa64/libmex.so+00109788 mexRunMexFile+000108<br>[ 13] 0x00007f0562906f79     /usr/local/MATLAB-R2012a/bin/glnxa64/libmex.so+00094073<br>[ 14] 0x00007f0562907de1     /usr/local/MATLAB-R2012a/bin/glnxa64/libmex.so+00097761<br>
[ 15] 0x00007f0569590063 /usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_dispatcher.so+00479331 _ZN8Mfh_file11dispatch_fhEiPP11mxArray_tagiS2_+000515<br>[ 16] 0x00007f0568e56476 /usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01987702<br>
[ 17] 0x00007f0568de3d24 /usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01518884<br>[ 18] 0x00007f0568e0b37e /usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01680254<br>[ 19] 0x00007f0568e08333 /usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01667891<br>
[ 20] 0x00007f0568e09037 /usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01671223<br>[ 21] 0x00007f0568e72690 /usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+02102928<br>[ 22] 0x00007f0569590063 /usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_dispatcher.so+00479331 _ZN8Mfh_file11dispatch_fhEiPP11mxArray_tagiS2_+000515<br>
[ 23] 0x00007f0568e56476 /usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01987702<br>[ 24] 0x00007f0568de3d24 /usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01518884<br>[ 25] 0x00007f0568e0b37e /usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01680254<br>
[ 26] 0x00007f0568e08333 /usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01667891<br>[ 27] 0x00007f0568e09037 /usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01671223<br>[ 28] 0x00007f0568e72690 /usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+02102928<br>
[ 29] 0x00007f0569590063 /usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_dispatcher.so+00479331 _ZN8Mfh_file11dispatch_fhEiPP11mxArray_tagiS2_+000515<br>[ 30] 0x00007f0568e4353b /usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01910075<br>
[ 31] 0x00007f0568e0181c /usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01640476<br>[ 32] 0x00007f0568dfe49f /usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01627295<br>[ 33] 0x00007f0568dfebb5 /usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01629109<br>
[ 34] 0x00007f0569b58ade /usr/local/MATLAB-R2012a/bin/glnxa64/libmwbridge.so+00146142<br>[ 35] 0x00007f0569b5997e /usr/local/MATLAB-R2012a/bin/glnxa64/libmwbridge.so+00149886 mnParser+000622<br>[ 36] 0x00007f05698ccde2   /usr/local/MATLAB-R2012a/bin/glnxa64/libmwmcr.so+01142242 _ZN11mcrInstance30mnParser_on_interpreter_threadEv+000034<br>
[ 37] 0x00007f05698af51a   /usr/local/MATLAB-R2012a/bin/glnxa64/libmwmcr.so+01021210<br>[ 38] 0x00007f05698af598   /usr/local/MATLAB-R2012a/bin/glnxa64/libmwmcr.so+01021336<br>[ 39] 0x00007f055f02d376   /usr/local/MATLAB-R2012a/bin/glnxa64/libmwuix.so+00463734<br>
[ 40] 0x00007f055f037862   /usr/local/MATLAB-R2012a/bin/glnxa64/libmwuix.so+00505954<br>[ 41] 0x00007f056a1659a1 /usr/local/MATLAB-R2012a/bin/glnxa64/libmwservices.so+01366433 _ZSt8for_eachIN9__gnu_cxx17__normal_iteratorIPN5boost8weak_ptrIN4sysq10ws_ppeHookEEESt6vectorIS6_SaIS6_EEEENS4_8during_FIS6_NS2_10shared_ptrIS5_EEEEET0_T_SH_SG_+000081<br>
[ 42] 0x00007f056a166aab /usr/local/MATLAB-R2012a/bin/glnxa64/libmwservices.so+01370795<br>[ 43] 0x00007f056a1645f9 /usr/local/MATLAB-R2012a/bin/glnxa64/libmwservices.so+01361401 _Z25svWS_ProcessPendingEventsiib+000665<br>
[ 44] 0x00007f05698ae76f   /usr/local/MATLAB-R2012a/bin/glnxa64/libmwmcr.so+01017711<br>[ 45] 0x00007f05698aec3b   /usr/local/MATLAB-R2012a/bin/glnxa64/libmwmcr.so+01018939<br>[ 46] 0x00007f05698aed97   /usr/local/MATLAB-R2012a/bin/glnxa64/libmwmcr.so+01019287<br>
[ 47] 0x00007f0567fa6e9a              /lib/x86_64-linux-gnu/libpthread.so.0+00032410<br>[ 48] 0x00007f0567cd3ccd                    /lib/x86_64-linux-gnu/libc.so.6+00998605 clone+000109<br><br><br><br><br></div></div>