Here is more of the error:<br><br>*** glibc detected *** /opt/MATLAB8/bin/glnxa64/MATLAB: malloc(): memory corruption: 0x000000000322dac0 ***<br>======= Backtrace: =========<br>/lib/libc.so.6[0x7f15a07b7e1f]<br>/lib/libc.so.6(__libc_malloc+0x98)[0x7f15a07b9658]<br>

/lib/libc.so.6[0x7f15a07a576a]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwservices.so(_Z13svOpenLogFilePKcb+0x2d)[0x7f15a1ef77cd]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwmcr.so[0x7f15a1b18058]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwmcr.so[0x7f15a1b1812a]<br>

/lib/libpthread.so.0[0x7f15a0abc0f0]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwma57.so(ma57ed_+0x158)[0x7f159a65b0d8]<br>/opt/MATLAB8/ipopt370/install/lib/libipopt.so.0(_ZN5Ipopt20Ma57TSolverInterface13FactorizationEPKiS2_bi+0x2f0)[0x7f157c4c9860]<br>

/opt/MATLAB8/ipopt370/install/lib/libipopt.so.0(_ZN5Ipopt20Ma57TSolverInterface10MultiSolveEbPKiS2_iPdbi+0x6d)[0x7f157c4c9a6d]<br>/opt/MATLAB8/ipopt370/install/lib/libipopt.so.0(_ZN5Ipopt16TSymLinearSolver10MultiSolveERKNS_9SymMatrixERSt6vectorINS_8SmartPtrIKNS_6VectorEEESaIS8_EERS4_INS5_IS6_EESaISC_EEbi+0x19b)[0x7f157c4c2e4b]<br>

/opt/MATLAB8/ipopt370/install/lib/libipopt.so.0(_ZN5Ipopt18StdAugSystemSolver10MultiSolveEPKNS_9SymMatrixEdPKNS_6VectorEdS6_dPKNS_6MatrixES6_dS9_S6_dRSt6vectorINS_8SmartPtrIS5_EESaISC_EESF_SF_SF_RSA_INSB_IS4_EESaISG_EESJ_SJ_SJ_bi+0x907)[0x7f157c4b49a7]<br>

/opt/MATLAB8/ipopt370/install/lib/libipopt.so.0(_ZN5Ipopt15AugSystemSolver5SolveEPKNS_9SymMatrixEdPKNS_6VectorEdS6_dPKNS_6MatrixES6_dS9_S6_dRS5_SA_SA_SA_RS4_SB_SB_SB_bi+0x8dc)[0x7f157c3c30bc]<br>/opt/MATLAB8/ipopt370/install/lib/libipopt.so.0(_ZN5Ipopt17PDFullSpaceSolver9SolveOnceEbbRKNS_9SymMatrixERKNS_6MatrixES6_S6_S6_S6_S6_RKNS_6VectorES9_S9_S9_S9_S9_S9_S9_S9_S9_ddRKNS_14IteratesVectorERSA_+0x1261)[0x7f157c46e151]<br>

/opt/MATLAB8/ipopt370/install/lib/libipopt.so.0(_ZN5Ipopt17PDFullSpaceSolver5SolveEddRKNS_14IteratesVectorERS1_bb+0xea0)[0x7f157c474c60]<br>/opt/MATLAB8/ipopt370/install/lib/libipopt.so.0(_ZN5Ipopt23QualityFunctionMuOracle11CalculateMuEddRd+0xb50)[0x7f157c4892d0]<br>

/opt/MATLAB8/ipopt370/install/lib/libipopt.so.0(_ZN5Ipopt16AdaptiveMuUpdate22UpdateBarrierParameterEv+0x697)[0x7f157c3a8797]<br>/opt/MATLAB8/ipopt370/install/lib/libipopt.so.0(_ZN5Ipopt14IpoptAlgorithm22UpdateBarrierParameterEv+0x6f)[0x7f157c3ec01f]<br>

/opt/MATLAB8/ipopt370/install/lib/libipopt.so.0(_ZN5Ipopt14IpoptAlgorithm8OptimizeEb+0x3d1)[0x7f157c3f4c21]<br>/opt/MATLAB8/ipopt370/install/lib/libipopt.so.0(_ZN5Ipopt16IpoptApplication13call_optimizeEv+0x487)[0x7f157c2f5ee7]<br>

/opt/MATLAB8/ipopt370/install/lib/libipopt.so.0(_ZN5Ipopt16IpoptApplication11OptimizeNLPERKNS_8SmartPtrINS_3NLPEEERNS1_INS_16AlgorithmBuilderEEE+0x190)[0x7f157c2fa120]<br>/opt/MATLAB8/ipopt370/install/lib/libipopt.so.0(_ZN5Ipopt16IpoptApplication11OptimizeNLPERKNS_8SmartPtrINS_3NLPEEE+0x15)[0x7f157c2fa935]<br>

/opt/MATLAB8/ipopt370/install/lib/libipopt.so.0(_ZN5Ipopt16IpoptApplication12OptimizeTNLPERKNS_8SmartPtrINS_4TNLPEEE+0xcd)[0x7f157c2faa5d]<br>/opt/MATLAB8/ipopt370/Ipopt/contrib/MatlabInterface/ipopt.mexa64(mexFunction+0x352)[0x7f157c799372]<br>

/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmex.so(mexRunMexFile+0x5a)[0x7f159f04b65a]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmex.so[0x7f159f048559]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmex.so[0x7f159f049935]<br>

/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_dispatcher.so(_ZN8Mfh_file11dispatch_fhEiPP11mxArray_tagiS2_+0x129)[0x7f15a19d0949]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a139c0f6]<br>

/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a1352155]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a1352ec3]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a135593c]<br>

/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a1354a29]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a13552f8]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a13afa1a]<br>

/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_dispatcher.so(_ZN8Mfh_file11dispatch_fhEiPP11mxArray_tagiS2_+0x129)[0x7f15a19d0949]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a1592ad2]<br>

/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a1599b31]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a159a6e5]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a13e64e2]<br>

/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a1404263]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a140434b]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a1542610]<br>

/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a1353bfd]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a135593c]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a1354a29]<br>

/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a13552f8]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a13afa1a]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_dispatcher.so(_ZN8Mfh_file11dispatch_fhEiPP11mxArray_tagiS2_+0x129)[0x7f15a19d0949]<br>

/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a139c0f6]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a1352155]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a1352ec3]<br>

/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a135593c]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a1354a29]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a13552f8]<br>

/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a13afa1a]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_dispatcher.so(_ZN8Mfh_file11dispatch_fhEiPP11mxArray_tagiS2_+0x129)[0x7f15a19d0949]<br>

/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a139c0f6]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a1339e1a]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a13529ac]<br>

/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a135593c]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a1354a29]<br>/opt/MATLAB8/bin/glnxa64/../../bin/glnxa64/libmwm_interpreter.so[0x7f15a13552f8]<br>

======= Memory map: ========<br>00400000-00402000 r-xp 00000000 08:09 196624                             /opt/MATLAB8/bin/glnxa64/MATLAB<br>00501000-00502000 rw-p 00001000 08:09 196624                             /opt/MATLAB8/bin/glnxa64/MATLAB<br>

00f58000-00fde000 rw-p 00f58000 00:00 0 <br>00fde000-00fe0000 rwxp 00fde000 00:00 0 <br>00fe0000-01067000 rw-p 00fe0000 00:00 0 <br>01067000-01068000 rwxp 01067000 00:00 0 <br>01068000-0106f000 rw-p 01068000 00:00 0 <br>
0106f000-01071000 rwxp 0106f000 00:00 0 <br>
01071000-01095000 rw-p 01071000 00:00 0 <br>01095000-01096000 rwxp 01095000 00:00 0 <br>01096000-0109c000 rw-p 01096000 00:00 0 <br>0109c000-010a0000 rwxp 0109c000 00:00 0 <br>010a0000-010a3000 rw-p 010a0000 00:00 0 <br>
010a3000-010a4000 rwxp 010a3000 00:00 0 <br>
010a4000-010ab000 rw-p 010a4000 00:00 0 <br>010ab000-010ac000 rwxp 010ab000 00:00 0 <br>010ac000-010ad000 rw-p 010ac000 00:00 0 <br>010ad000-010af000 rwxp 010ad000 00:00 0 <br>010af000-010b4000 rw-p 010af000 00:00 0 <br>
010b4000-010b6000 rwxp 010b4000 00:00 0 <br>
010b6000-010bb000 rw-p 010b6000 00:00 0 <br>010bb000-010bc000 rwxp 010bb000 00:00 0 <br>010bc000-010c7000 rw-p 010bc000 00:00 0 <br>010c7000-010c8000 rwxp 010c7000 00:00 0 <br>010c8000-010ca000 rw-p 010c8000 00:00 0 <br>
010ca000-010cc000 rwxp 010ca000 00:00 0 <br>
010cc000-010d4000 rw-p 010cc000 00:00 0 <br>010d4000-010d5000 rwxp 010d4000 00:00 0 <br>010d5000-010d7000 rw-p 010d5000 00:00 0 <br>010d7000-010d8000 rwxp 010d7000 00:00 0 <br>010d8000-010e2000 rw-p 010d8000 00:00 0 <br>
010e2000-010e4000 rwxp 010e2000 00:00 0 <br>
010e4000-01103000 rw-p 010e4000 00:00 0 <br>01103000-01106000 rwxp 01103000 00:00 0 <br>01106000-0110b000 rw-p 01106000 00:00 0 <br>0110b000-0110c000 rwxp 0110b000 00:00 0 <br>0110c000-0111d000 rw-p 0110c000 00:00 0 <br>
0111d000-0111e000 rwxp 0111d000 00:00 0 <br>
0111e000-01120000 rw-p 0111e000 00:00 0 <br>01120000-01122000 rwxp 01120000 00:00 0 <br>01122000-0112c000 rw-p 01122000 00:00 0 <br>0112c000-0112d000 rwxp 0112c000 00:00 0 <br>0112d000-0115a000 rw-p 0112d000 00:00 0 <br>
0115a000-0115e000 rwxp 0115a000 00:00 0 <br>
0115e000-01164000 rw-p 0115e000 00:00 0 <br>01164000-01165000 rwxp 01164000 00:00 0 <br>01165000-01168000 rw-p 01165000 00:00 0 <br>01168000-01169000 rwxp 01168000 00:00 0 <br>01169000-0117a000 rw-p 01169000 00:00 0 <br>
0117a000-0117b000 rwxp 0117a000 00:00 0 <br>
0117b000-01183000 rw-p 0117b000 00:00 0 <br>01183000-01184000 rwxp 01183000 00:00 0 <br>01184000-0118c000 rw-p 01184000 00:00 0 <br>0118c000-01192000 rwxp 0118c000 00:00 0 <br>01192000-0119b000 rw-p 01192000 00:00 0 <br>
0119b000-0119c000 rwxp 0119b000 00:00 0 <br>
0119c000-011a4000 rw-p 0119c000 00:00 0 <br>011a4000-011a6000 rwxp 011a4000 00:00 0 <br>011a6000-011b0000 rw-p 011a6000 00:00 0 <br>011b0000-011b1000 rwxp 011b0000 00:00 0 <br>011b1000-011dd000 rw-p 011b1000 00:00 0 <br>
011dd000-011de000 rwxp 011dd000 00:00 0 <br>
011de000-011ed000 rw-p 011de000 00:00 0 <br>011ed000-011ee000 rwxp 011ed000 00:00 0 <br>011ee000-01208000 rw-p 011ee000 00:00 0 <br>01208000-01209000 rwxp 01208000 00:00 0 <br>01209000-0120d000 rw-p 01209000 00:00 0 <br>
0120d000-0120e000 rwxp 0120d000 00:00 0 <br>
0120e000-01216000 rw-p 0120e000 00:00 0 <br>01216000-01217000 rwxp 01216000 00:00 0 <br>01217000-01219000 rw-p 01217000 00:00 0 <br>01219000-0121f000 rwxp 01219000 00:00 0 <br>0121f000-0122b000 rw-p 0121f000 00:00 0 <br>
0122b000-0122c000 rwxp 0122b000 00:00 0 <br>
0122c000-0122d000 rw-p 0122c000 00:00 0 <br>0122d000-0122e000 rwxp 0122d000 00:00 0 <br>0122e000-0122f000 rw-p 0122e000 00:00 0 <br>0122f000-01230000 rwxp 0122f000 00:00 0 <br>01230000-01236000 rw-p 01230000 00:00 0 <br>
01236000-01238000 rwxp 01236000 00:00 0 <br>
01238000-01239000 rw-p 01238000 00:00 0 <br>01239000-0123a000 rwxp 01239000 00:00 0 <br>0123a000-012a2000 rw-p 0123a000 00:00 0 <br>012a2000-012a3000 rwxp 012a2000 00:00 0 <br>012a3000-012a8000 rw-p 012a3000 00:00 0 <br>
012a8000-012a9000 rwxp 012a8000 00:00 0 <br>
012a9000-012b2000 rw-p 012a9000 00:00 0 <br>012b2000-012b3000 rwxp 012b2000 00:00 0 <br>012b3000-012c2000 rw-p 012b3000 00:00 0 <br>012c2000-012c6000 rwxp 012c2000 00:00 0 <br>012c6000-012ca000 rw-p 012c6000 00:00 0 <br>
012ca000-012cb000 rwxp 012ca000 00:00 0 <br>
012cb000-012ce000 rw-p 012cb000 00:00 0 <br>012ce000-012cf000 rwxp 012ce000 00:00 0 <br>012cf000-012d6000 rw-p 012cf000 00:00 0 <br>012d6000-012d7000 rwxp 012d6000 00:00 0 <br>012d7000-012d8000 rw-p 012d7000 00:00 0 <br>
012d8000-012d9000 rwxp 012d8000 00:00 0 <br>
012d9000-012ea000 rw-p 012d9000 00:00 0 <br>012ea000-012eb000 rwxp 012ea000 00:00 0 <br>012eb000-012f0000 rw-p 012eb000 00:00 0 <br>012f0000-012f1000 rwxp 012f0000 00:00 0 <br>012f1000-012f3000 rw-p 012f1000 00:00 0 <br>
012f3000-012f4000 rwxp 012f3000 00:00 0 <br>
012f4000-012f5000 rw-p 012f4000 00:00 0 <br>012f5000-012f6000 rwxp 012f5000 00:00 0 <br>012f6000-012f9000 rw-p 012f6000 00:00 0 <br>012f9000-012fa000 rwxp 012f9000 00:00 0 <br>012fa000-012fc000 rw-p 012fa000 00:00 0 <br>
012fc000-012fe000 rwxp 012fc000 00:00 0 <br>
012fe000-01307000 rw-p 012fe000 00:00 0 <br>01307000-01308000 rwxp 01307000 00:00 0 <br>01308000-01312000 rw-p 01308000 00:00 0 <br>01312000-01313000 rwxp 01312000 00:00 0 <br>01313000-01319000 rw-p 01313000 00:00 0 <br>
01319000-0131a000 rwxp 01319000 00:00 0 <br>
0131a000-0133a000 rw-p 0131a000 00:00 0 <br>0133a000-0133b000 rwxp 0133a000 00:00 0 <br>0133b000-01343000 rw-p 0133b000 00:00 0 <br>01343000-01344Aborted<br><br><br><br><br><div class="gmail_quote">On Thu, Aug 27, 2009 at 12:39 PM, Rishi Amrit <span dir="ltr">&lt;<a href="mailto:rishiamrit@gmail.com">rishiamrit@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>   I&#39;m using the mex interace from MATLAB to call IPOPT. One of my IPOPT calls crashes MATLAB and returns for following backtrace:<br>

<br>------------------------------------------------------------------------<br>
       Segmentation violation detected at Thu Aug 27 12:33:26 2009<br>------------------------------------------------------------------------<br><br>Configuration:<br>  MATLAB Version:   7.8.0.347 (R2009a)<br>  MATLAB License:   329690<br>


  Operating System: Linux 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686<br>  GNU C Library:    2.9 stable<br>  Window System:    No active display<br>  Current Visual:   None<br>  Processor ID:     x86 Family 6 Model 13 Stepping 8, GenuineIntel<br>


  Virtual Machine:  Java 1.6.0_04-b12 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode<br>  Default Encoding:  UTF-8<br><br>Fault Count: 1<br><br>Register State:<br>  eax = 00000000   ebx = a0f6bff4<br>  ecx = 00047a38   edx = 0016c410<br>


  esi = 0afe1000   edi = 9fcb4b38<br>  ebp = 9fdd4008   esp = b367f3e8<br>  eip = b738c896   flg = 00210246<br><br>Stack Trace:<br>  [0] libc.so.6:memcpy~(1, 10, 2, 11) + 70 bytes<br><br>This error was detected while a MEX-file was running. If the MEX-file<br>


is not an official MathWorks function, please examine its source code<br>for errors. Please consult the External Interfaces Guide for information<br>on debugging MEX-files.<br><br>If it is an official MathWorks function, please<br>


follow these steps to report this problem to The MathWorks so we<br>have the best chance of correcting it:<br><br><br>________________________<br><br>Any ideas on what may be causing this problem and how to correct it ?<br>


<br>Thanks,<br><font color="#888888"><br>Rishi<br>
</font></blockquote></div><br>