[Ipopt] MATLAB crash

Vyacheslav Kungurtsev vyacheslav.kungurtsev at esat.kuleuven.be
Mon Jul 8 10:54:11 EDT 2013


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.

First, in order to be able to even run ipopt in matlab, I need to call
matlab as such:
LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/usr/local/lib/libcoinhsl.so.0" /usr/local/MATLAB-R2012a/bin/matlab


Otherwise matlab, upon attempting to run ipopt, returns an error saying
that it cannot find these libraries that I now preload.

Once I run it like this and run ipopt, with any linear solver, MATLAB
crashes, with the details below.


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.

Thank you



------------------------------------------------------------------------
       Segmentation violation detected at Tue May 28 14:47:35 2013
------------------------------------------------------------------------

Configuration:
  Crash Decoding  : Disabled
  Current Visual  : 0x21 (class 4, depth 24)
  Default Encoding: UTF-8
  GNU C Library   : 2.15 stable
  MATLAB Root     : /usr/local/MATLAB-R2012a
  MATLAB Version  : 7.14.0.739 (R2012a)
  Operating System: Linux 3.5.0-31-generic #52-Ubuntu SMP Thu May 16
16:27:05 UTC 2013 x86_64
  Processor ID    : x86 Family 6 Model 58 Stepping 9, GenuineIntel
  Virtual Machine : Java 1.6.0_17-b04 with Sun Microsystems Inc. Java
HotSpot(TM) 64-Bit Server VM mixed mode
  Window System   : The X.Org Foundation (11300000), display :0

Fault Count: 1


Abnormal termination:
Segmentation violation

Register State (from fault):
  RAX = 0000000000000000  RBX = 00007f03f7013612
  RCX = 0000000000000032  RDX = 00007f03aa9521a0
  RSP = 00007f05558f2b90  RBP = 00007f05558f2bc0
  RSI = 00007f03f7013612  RDI = 00007f054bb1aaf4

   R8 = 000000000000002d   R9 = 0101010101010101
  R10 = 0000000000000000  R11 = 00007f0567c6be86
  R12 = 482a457000007f05  R13 = 00007f03f70135e0
  R14 = 0000000000000032  R15 = 6f6974636e756620

  RIP = 00007f056a74e2ea  EFL = 0000000000010206

   CS = 0033   FS = 0000   GS = 0000

Stack Trace (from fault):
[  0] 0x00007f056aa0192e
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwfl.so+00370990
_ZN2fl4diag15stacktrace_base7captureERKNS0_14thread_contextEm+000158
[  1] 0x00007f056aa047d0
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwfl.so+00382928
[  2] 0x00007f056aa04b3b
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwfl.so+00383803
_ZN2fl4diag13terminate_logEPKcRKNS0_14thread_contextE+000171
[  3] 0x00007f05698e8203
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwmcr.so+01253891
_ZN2fl4diag13terminate_logEPKcPK8ucontext+000067
[  4] 0x00007f05698e50fd
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwmcr.so+01241341
[  5] 0x00007f05698e679d
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwmcr.so+01247133
[  6] 0x00007f05698e6925
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwmcr.so+01247525
[  7] 0x00007f05698e6f01
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwmcr.so+01249025
[  8] 0x00007f05698e73f5
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwmcr.so+01250293
[  9] 0x00007f0567faecb0
/lib/x86_64-linux-gnu/libpthread.so.0+00064688
[ 10] 0x00007f056a74e2ea
/usr/local/MATLAB-R2012a/bin/glnxa64/libmx.so+00398058
mxgetstring730_+000042
[ 11] 0x00007f03aa90f697
/home/slava/algencan-2.4.0/bin/matlab/algencan.mexa64+00005783
mexfunction_+000471
[ 12] 0x00007f056290acdc
/usr/local/MATLAB-R2012a/bin/glnxa64/libmex.so+00109788 mexRunMexFile+000108
[ 13] 0x00007f0562906f79
/usr/local/MATLAB-R2012a/bin/glnxa64/libmex.so+00094073
[ 14] 0x00007f0562907de1
/usr/local/MATLAB-R2012a/bin/glnxa64/libmex.so+00097761
[ 15] 0x00007f0569590063
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_dispatcher.so+00479331
_ZN8Mfh_file11dispatch_fhEiPP11mxArray_tagiS2_+000515
[ 16] 0x00007f0568e56476
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01987702
[ 17] 0x00007f0568de3d24
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01518884
[ 18] 0x00007f0568e0b37e
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01680254
[ 19] 0x00007f0568e08333
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01667891
[ 20] 0x00007f0568e09037
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01671223
[ 21] 0x00007f0568e72690
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+02102928
[ 22] 0x00007f0569590063
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_dispatcher.so+00479331
_ZN8Mfh_file11dispatch_fhEiPP11mxArray_tagiS2_+000515
[ 23] 0x00007f0568e56476
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01987702
[ 24] 0x00007f0568de3d24
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01518884
[ 25] 0x00007f0568e0b37e
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01680254
[ 26] 0x00007f0568e08333
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01667891
[ 27] 0x00007f0568e09037
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01671223
[ 28] 0x00007f0568e72690
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+02102928
[ 29] 0x00007f0569590063
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_dispatcher.so+00479331
_ZN8Mfh_file11dispatch_fhEiPP11mxArray_tagiS2_+000515
[ 30] 0x00007f0568e4353b
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01910075
[ 31] 0x00007f0568e0181c
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01640476
[ 32] 0x00007f0568dfe49f
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01627295
[ 33] 0x00007f0568dfebb5
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwm_interpreter.so+01629109
[ 34] 0x00007f0569b58ade
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwbridge.so+00146142
[ 35] 0x00007f0569b5997e
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwbridge.so+00149886 mnParser+000622
[ 36] 0x00007f05698ccde2
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwmcr.so+01142242
_ZN11mcrInstance30mnParser_on_interpreter_threadEv+000034
[ 37] 0x00007f05698af51a
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwmcr.so+01021210
[ 38] 0x00007f05698af598
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwmcr.so+01021336
[ 39] 0x00007f055f02d376
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwuix.so+00463734
[ 40] 0x00007f055f037862
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwuix.so+00505954
[ 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
[ 42] 0x00007f056a166aab
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwservices.so+01370795
[ 43] 0x00007f056a1645f9
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwservices.so+01361401
_Z25svWS_ProcessPendingEventsiib+000665
[ 44] 0x00007f05698ae76f
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwmcr.so+01017711
[ 45] 0x00007f05698aec3b
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwmcr.so+01018939
[ 46] 0x00007f05698aed97
/usr/local/MATLAB-R2012a/bin/glnxa64/libmwmcr.so+01019287
[ 47] 0x00007f0567fa6e9a
/lib/x86_64-linux-gnu/libpthread.so.0+00032410
[ 48] 0x00007f0567cd3ccd
/lib/x86_64-linux-gnu/libc.so.6+00998605 clone+000109
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20130708/44da54d2/attachment.html>


More information about the Ipopt mailing list