Segmentation fault in mex with armadillo on Ubuntu 14.04 and matlab 2014Ra -
i tried using mex files armadillo linear algebra library. @ first,i tried simple program follows:
could me?
%%%% matlab script %%%%%%%
mex -larmadillo -lgfortran armamex_demo.cpp x = randn(5,5); y = randn(5,5); % run demo using x , y z = armamex_demo(x,y,3)
%%%%%%%%%%%%% mex files %%%%%%
#include "armamex.hpp" #include <armadillo> using namespace arma; void mexfunction(int nlhs, mxarray *plhs[], int nrhs, const mxarray *prhs[]) { // check number of input arguments. if (nrhs != 3) mexerrmsgtxt("incorrect number of input arguments."); // check type of input. if ( (mxgetclassid(prhs[0]) != mxdouble_class) || (mxgetclassid(prhs[1]) != mxdouble_class) ) mexerrmsgtxt("input must me of type double."); // check if input real. if ( (mxiscomplex(prhs[0])) || (mxiscomplex(prhs[1])) ) mexerrmsgtxt("input must real."); // create matrices x , y first , second argument. mat x = armagetpr(prhs[0]); mat y = armagetpr(prhs[1]); int c= armagetscalar<int>(prhs[2]); // our calculations require matrices must of same size if ( size(x) != size(y) ) mexerrmsgtxt("matrices should of same size."); // perform calculations mat = x + y; mat b = x % y; // % means element-wise multiplication in armadillo mat d = inv(x)*y; int ee = trace(x.i()*y) + log(det(x)); // create cube c , b slices. cube c(a.n_rows, a.n_cols, 4); mat e = zeros<mat>(a.n_rows, a.n_cols); e(0,0) = ee; c.slice(0) = a; c.slice(1) = b; c.slice(2) = d; c.slice(3) = e; plhs[0] = armacreatemxmatrix(c.n_rows, c.n_cols, c.n_slices); armasetcubepr(plhs[0], c); return; }
%%%%%%% error %%%%%%%%%
i tried x, y size 3*3, 4*4, ok when tried 5*5 of matrix inversion, failure occurred “segmentation fault (core dumped)”
and in matlab interface
segmentation violation detected @ thu jul 30 16:04:53 2015
configuration: crash decoding : disabled current visual : 0x21 (class 4, depth 24) default encoding : utf-8 gnu c library : 2.19 stable matlab architecture: glnxa64 matlab root : /usr/local/matlab/r2014a matlab version : 8.3.0.532 (r2014a) operating system : linux 3.16.0-45-generic #60~14.04.1-ubuntu smp fri jul 24 21:16:23 utc 2015 x86_64 processor id : x86 family 6 model 60 stepping 3, genuineintel virtual machine : java 1.7.0_11-b21 oracle corporation java hotspot(tm) 64-bit server vm mixed mode window system : x.org foundation (11600000), display :0 fault count: 4 abnormal termination: segmentation violation register state (from fault): rax = 0000000000000001 rbx = 0000000300000002 rcx = 0000000000000000 rdx = 00000000000027f8 rsp = 00007fd737ff71c0 rbp = 0000000000000000 rsi = 00007fd737ff9090 rdi = 0000000300000000 r8 = 0000000000027f40 r9 = 0000000000000002 r10 = 00007fd737ff9090 r11 = bff0000000000000 r12 = 0000000000000000 r13 = 0000000000000000 r14 = 0000003000000030 r15 = 00007fd737ff9090 rip = 00007fd68e79ff3b efl = 0000000000010202 cs = 0033 fs = 0000 gs = 0000 stack trace (from fault): [ 0] 0x00007fd68e79ff3b /usr/local/matlab/r2014a/bin/glnxa64/mkl.so+15413051 mkl_blas_avx2_izamax+00000779 [ 1] 0x00007fd68ddae95f /usr/local/matlab/r2014a/bin/glnxa64/mkl.so+04987231 mkl_lapack_zgetf2+00000255 [ 2] 0x00007fd68e1f9f63 /usr/local/matlab/r2014a/bin/glnxa64/mkl.so+09490275 mkl_lapack_zgetrf_local+00001459 [ 3] 0x00007fd68e1f9c56 /usr/local/matlab/r2014a/bin/glnxa64/mkl.so+09489494 mkl_lapack_zgetrf_local+00000678 [ 4] 0x00007fd68e1f9c56 /usr/local/matlab/r2014a/bin/glnxa64/mkl.so+09489494 mkl_lapack_zgetrf_local+00000678 [ 5] 0x00007fd68e1f9c56 /usr/local/matlab/r2014a/bin/glnxa64/mkl.so+09489494 mkl_lapack_zgetrf_local+00000678 [ 6] 0x00007fd68e1f9c56 /usr/local/matlab/r2014a/bin/glnxa64/mkl.so+09489494 mkl_lapack_zgetrf_local+00000678 [ 7] 0x00007fd68da771de /usr/local/matlab/r2014a/bin/glnxa64/mkl.so+01614302 mkl_lapack_zgetrf+00003822 [ 8] 0x00007fd68dc0ea8b /usr/local/matlab/r2014a/bin/glnxa64/mkl.so+03283595 mkl_lapack_ao_zgetrf+00000107 [ 9] 0x00007fd68ddbae0b /usr/local/matlab/r2014a/bin/glnxa64/mkl.so+05037579 mkl_lapack_zgesv+00000187 [ 10] 0x00007fd688d00a7b /home/weiwei/work/polsar/polsar/polsar_code/mex_slicpolsar.mexa64+00105083 [ 11] 0x00007fd688cf9401 /home/weiwei/work/polsar/polsar/polsar_code/mex_slicpolsar.mexa64+00074753 [ 12] 0x00007fd688cf51ca /home/weiwei/work/polsar/polsar/polsar_code/mex_slicpolsar.mexa64+00057802 [ 13] 0x00007fd688cf0eb5 /home/weiwei/work/polsar/polsar/polsar_code/mex_slicpolsar.mexa64+00040629 [ 14] 0x00007fd688cef8cd /home/weiwei/work/polsar/polsar/polsar_code/mex_slicpolsar.mexa64+00035021 [ 15] 0x00007fd688cebb37 /home/weiwei/work/polsar/polsar/polsar_code/mex_slicpolsar.mexa64+00019255 [ 16] 0x00007fd688ced570 /home/weiwei/work/polsar/polsar/polsar_code/mex_slicpolsar.mexa64+00025968 mexfunction+00001660 [ 17] 0x00007fd74647272a /usr/local/matlab/r2014a/bin/glnxa64/libmex.so+00120618 mexrunmexfile+00000090 [ 18] 0x00007fd74646ea94 /usr/local/matlab/r2014a/bin/glnxa64/libmex.so+00105108 [ 19] 0x00007fd74646ffb4 /usr/local/matlab/r2014a/bin/glnxa64/libmex.so+00110516 [ 20] 0x00007fd745869ad9 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_dispatcher.so+00670425 _zn8mfh_file11dispatch_fheipp11mxarray_tagis2_+00000697 [ 21] 0x00007fd744b062b4 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+04461236 [ 22] 0x00007fd744b07bc9 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+04467657 [ 23] 0x00007fd744b083fc /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+04469756 [ 24] 0x00007fd7449826e3 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02873059 [ 25] 0x00007fd74499209e /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02936990 [ 26] 0x00007fd744992183 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02937219 [ 27] 0x00007fd744ac8172 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+04206962 [ 28] 0x00007fd7448fd589 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02327945 [ 29] 0x00007fd744900167 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02339175 [ 30] 0x00007fd7448fe26f /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02331247 [ 31] 0x00007fd7448feec4 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02334404 [ 32] 0x00007fd74495c30b /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02716427 [ 33] 0x00007fd745869c5f /usr/local/matlab/r2014a/bin/glnxa64/libmwm_dispatcher.so+00670815 _zn8mfh_file11dispatch_fheipp11mxarray_tagis2_+00001087 [ 34] 0x00007fd74494020e /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02601486 [ 35] 0x00007fd7448e11b0 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02212272 [ 36] 0x00007fd7448fc25f /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02323039 [ 37] 0x00007fd744900167 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02339175 [ 38] 0x00007fd7448fe26f /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02331247 [ 39] 0x00007fd7448feec4 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02334404 [ 40] 0x00007fd74495c30b /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02716427 [ 41] 0x00007fd745869c5f /usr/local/matlab/r2014a/bin/glnxa64/libmwm_dispatcher.so+00670815 _zn8mfh_file11dispatch_fheipp11mxarray_tagis2_+00001087 [ 42] 0x00007fd74492f135 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02531637 [ 43] 0x00007fd7448f60d9 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02298073 [ 44] 0x00007fd7448f2dc7 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02284999 [ 45] 0x00007fd7448f3193 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02285971 [ 46] 0x00007fd74669cafc /usr/local/matlab/r2014a/bin/glnxa64/libmwbridge.so+00142076 [ 47] 0x00007fd74669d791 /usr/local/matlab/r2014a/bin/glnxa64/libmwbridge.so+00145297 _z8mnparserv+00000721 [ 48] 0x00007fd74f95392f /usr/local/matlab/r2014a/bin/glnxa64/libmwmcr.so+00489775 _zn11mcrinstance30mnparser_on_interpreter_threadev+00000031 [ 49] 0x00007fd74f934b6d /usr/local/matlab/r2014a/bin/glnxa64/libmwmcr.so+00363373 [ 50] 0x00007fd74f934be9 /usr/local/matlab/r2014a/bin/glnxa64/libmwmcr.so+00363497 [ 51] 0x00007fd744028d46 /usr/local/matlab/r2014a/bin/glnxa64/libmwuix.so+00343366 [ 52] 0x00007fd74400b382 /usr/local/matlab/r2014a/bin/glnxa64/libmwuix.so+00222082 [ 53] 0x00007fd7500a950f /usr/local/matlab/r2014a/bin/glnxa64/libmwservices.so+02323727 [ 54] 0x00007fd7500a967c /usr/local/matlab/r2014a/bin/glnxa64/libmwservices.so+02324092 [ 55] 0x00007fd7500a557f /usr/local/matlab/r2014a/bin/glnxa64/libmwservices.so+02307455 [ 56] 0x00007fd7500aa9b5 /usr/local/matlab/r2014a/bin/glnxa64/libmwservices.so+02329013 [ 57] 0x00007fd7500aade7 /usr/local/matlab/r2014a/bin/glnxa64/libmwservices.so+02330087 [ 58] 0x00007fd7500ab4c0 /usr/local/matlab/r2014a/bin/glnxa64/libmwservices.so+02331840 _z25svws_processpendingeventsiib+00000080 [ 59] 0x00007fd74f935098 /usr/local/matlab/r2014a/bin/glnxa64/libmwmcr.so+00364696 [ 60] 0x00007fd74f9353bf /usr/local/matlab/r2014a/bin/glnxa64/libmwmcr.so+00365503 [ 61] 0x00007fd74f93028f /usr/local/matlab/r2014a/bin/glnxa64/libmwmcr.so+00344719 [ 62] 0x00007fd74e8de182 /lib/x86_64-linux-gnu/libpthread.so.0+00033154 [ 63] 0x00007fd74e60b47d /lib/x86_64-linux-gnu/libc.so.6+01025149 clone+00000109 abnormal termination: segmentation violation register state (from fault): rax = 0000000000000002 rbx = 0000000000000000 rcx = 0000001000000004 rdx = 000000000024875f rsp = 00007fd737ff9538 rbp = 0000000000000000 rsi = 00007fd6b6ddd500 rdi = 00007fd737ff9500 r8 = 0000001000000003 r9 = 0000000000000004 r10 = 0000000000000005 r11 = 00007fd74e698a30 r12 = 0000000000000000 r13 = 0000001000000005 r14 = 00007fd6b6ddd500 r15 = 0000000000000000 rip = 00007fd68e7a0872 efl = 0000000000010287 cs = 0033 fs = 0000 gs = 0000 stack trace (from fault): [ 0] 0x00007fd68e7a0872 /usr/local/matlab/r2014a/bin/glnxa64/mkl.so+15415410 mkl_blas_avx2_idamax+00000626 [ 1] 0x00007fd68e05faae /usr/local/matlab/r2014a/bin/glnxa64/mkl.so+07809710 mkl_lapack_dgetf2+00000238 [ 2] 0x00007fd68e05f869 /usr/local/matlab/r2014a/bin/glnxa64/mkl.so+07809129 mkl_lapack_dgetrf_local+00001369 [ 3] 0x00007fd68e05f4ae /usr/local/matlab/r2014a/bin/glnxa64/mkl.so+07808174 mkl_lapack_dgetrf_local+00000414 [ 4] 0x00007fd68e05f4ae /usr/local/matlab/r2014a/bin/glnxa64/mkl.so+07808174 mkl_lapack_dgetrf_local+00000414 [ 5] 0x00007fd68e05f4ae /usr/local/matlab/r2014a/bin/glnxa64/mkl.so+07808174 mkl_lapack_dgetrf_local+00000414 [ 6] 0x00007fd68e05f4ae /usr/local/matlab/r2014a/bin/glnxa64/mkl.so+07808174 mkl_lapack_dgetrf_local+00000414 [ 7] 0x00007fd68dab6562 /usr/local/matlab/r2014a/bin/glnxa64/mkl.so+01873250 mkl_lapack_dgetrf+00003810 [ 8] 0x00007fd66cf48a74 /home/weiwei/work/polsar/polsar/utils/armadillo-5.200.2/mex_interface/armamex_demo.mexa64+00035444 [ 9] 0x00007fd66cf43542 /home/weiwei/work/polsar/polsar/utils/armadillo-5.200.2/mex_interface/armamex_demo.mexa64+00013634 mexfunction+00002831 [ 10] 0x00007fd74647272a /usr/local/matlab/r2014a/bin/glnxa64/libmex.so+00120618 mexrunmexfile+00000090 [ 11] 0x00007fd74646ea94 /usr/local/matlab/r2014a/bin/glnxa64/libmex.so+00105108 [ 12] 0x00007fd74646ffb4 /usr/local/matlab/r2014a/bin/glnxa64/libmex.so+00110516 [ 13] 0x00007fd745869ad9 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_dispatcher.so+00670425 _zn8mfh_file11dispatch_fheipp11mxarray_tagis2_+00000697 [ 14] 0x00007fd744b062b4 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+04461236 [ 15] 0x00007fd744b07bc9 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+04467657 [ 16] 0x00007fd744b083fc /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+04469756 [ 17] 0x00007fd7449826e3 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02873059 [ 18] 0x00007fd74499209e /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02936990 [ 19] 0x00007fd744992183 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02937219 [ 20] 0x00007fd744ac8172 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+04206962 [ 21] 0x00007fd7448fd589 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02327945 [ 22] 0x00007fd744900167 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02339175 [ 23] 0x00007fd7448fe26f /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02331247 [ 24] 0x00007fd7448feec4 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02334404 [ 25] 0x00007fd74495c30b /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02716427 [ 26] 0x00007fd745869c5f /usr/local/matlab/r2014a/bin/glnxa64/libmwm_dispatcher.so+00670815 _zn8mfh_file11dispatch_fheipp11mxarray_tagis2_+00001087 [ 27] 0x00007fd74494020e /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02601486 [ 28] 0x00007fd7448e11b0 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02212272 [ 29] 0x00007fd7448fc25f /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02323039 [ 30] 0x00007fd744900167 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02339175 [ 31] 0x00007fd7448fe26f /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02331247 [ 32] 0x00007fd7448feec4 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02334404 [ 33] 0x00007fd74495c30b /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02716427 [ 34] 0x00007fd745869c5f /usr/local/matlab/r2014a/bin/glnxa64/libmwm_dispatcher.so+00670815 _zn8mfh_file11dispatch_fheipp11mxarray_tagis2_+00001087 [ 35] 0x00007fd74492f135 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02531637 [ 36] 0x00007fd7448f60d9 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02298073 [ 37] 0x00007fd7448f2dc7 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02284999 [ 38] 0x00007fd7448f3193 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02285971 [ 39] 0x00007fd74669cafc /usr/local/matlab/r2014a/bin/glnxa64/libmwbridge.so+00142076 [ 40] 0x00007fd74669d791 /usr/local/matlab/r2014a/bin/glnxa64/libmwbridge.so+00145297 _z8mnparserv+00000721 [ 41] 0x00007fd74f95392f /usr/local/matlab/r2014a/bin/glnxa64/libmwmcr.so+00489775 _zn11mcrinstance30mnparser_on_interpreter_threadev+00000031 [ 42] 0x00007fd74f934b6d /usr/local/matlab/r2014a/bin/glnxa64/libmwmcr.so+00363373 [ 43] 0x00007fd74f934be9 /usr/local/matlab/r2014a/bin/glnxa64/libmwmcr.so+00363497 [ 44] 0x00007fd744028d46 /usr/local/matlab/r2014a/bin/glnxa64/libmwuix.so+00343366 [ 45] 0x00007fd74400b382 /usr/local/matlab/r2014a/bin/glnxa64/libmwuix.so+00222082 [ 46] 0x00007fd7500a950f /usr/local/matlab/r2014a/bin/glnxa64/libmwservices.so+02323727 [ 47] 0x00007fd7500a967c /usr/local/matlab/r2014a/bin/glnxa64/libmwservices.so+02324092 [ 48] 0x00007fd7500a557f /usr/local/matlab/r2014a/bin/glnxa64/libmwservices.so+02307455 [ 49] 0x00007fd7500aa9b5 /usr/local/matlab/r2014a/bin/glnxa64/libmwservices.so+02329013 [ 50] 0x00007fd7500aade7 /usr/local/matlab/r2014a/bin/glnxa64/libmwservices.so+02330087 [ 51] 0x00007fd7500ab4c0 /usr/local/matlab/r2014a/bin/glnxa64/libmwservices.so+02331840 _z25svws_processpendingeventsiib+00000080 [ 52] 0x00007fd74f935098 /usr/local/matlab/r2014a/bin/glnxa64/libmwmcr.so+00364696 [ 53] 0x00007fd74f9353bf /usr/local/matlab/r2014a/bin/glnxa64/libmwmcr.so+00365503 [ 54] 0x00007fd74f93028f /usr/local/matlab/r2014a/bin/glnxa64/libmwmcr.so+00344719 [ 55] 0x00007fd74e8de182 /lib/x86_64-linux-gnu/libpthread.so.0+00033154 [ 56] 0x00007fd74e60b47d /lib/x86_64-linux-gnu/libc.so.6+01025149 clone+00000109 abnormal termination: segmentation violation register state (from fault): rax = 0000000000000001 rbx = 0000000000000000 rcx = 0000001000000004 rdx = 0000000000248729 rsp = 00007fd737ff9538 rbp = 0000000000000000 rsi = 00007fd6b6ddd6b0 rdi = 00007fd737ff9500 r8 = 0000001000000001 r9 = 0000000000000004 r10 = 0000000000000003 r11 = 00007fd74e698a30 r12 = 0000000000000000 r13 = 0000001000000005 r14 = 00007fd6b6ddd6b0 r15 = 0000000000000000 rip = 00007fd68e7a0872 efl = 0000000000010287 cs = 0033 fs = 0000 gs = 0000 stack trace (from fault): [ 0] 0x00007fd68e7a0872 /usr/local/matlab/r2014a/bin/glnxa64/mkl.so+15415410 mkl_blas_avx2_idamax+00000626 [ 1] 0x00007fd68e05faae /usr/local/matlab/r2014a/bin/glnxa64/mkl.so+07809710 mkl_lapack_dgetf2+00000238 [ 2] 0x00007fd68e05f869 /usr/local/matlab/r2014a/bin/glnxa64/mkl.so+07809129 mkl_lapack_dgetrf_local+00001369 [ 3] 0x00007fd68e05f4ae /usr/local/matlab/r2014a/bin/glnxa64/mkl.so+07808174 mkl_lapack_dgetrf_local+00000414 [ 4] 0x00007fd68e05f4ae /usr/local/matlab/r2014a/bin/glnxa64/mkl.so+07808174 mkl_lapack_dgetrf_local+00000414 [ 5] 0x00007fd68e05f4ae /usr/local/matlab/r2014a/bin/glnxa64/mkl.so+07808174 mkl_lapack_dgetrf_local+00000414 [ 6] 0x00007fd68e05f4ae /usr/local/matlab/r2014a/bin/glnxa64/mkl.so+07808174 mkl_lapack_dgetrf_local+00000414 [ 7] 0x00007fd68dab6562 /usr/local/matlab/r2014a/bin/glnxa64/mkl.so+01873250 mkl_lapack_dgetrf+00003810 [ 8] 0x00007fd66cf48a74 /home/weiwei/work/polsar/polsar/utils/armadillo-5.200.2/mex_interface/armamex_demo.mexa64+00035444 [ 9] 0x00007fd66cf43542 /home/weiwei/work/polsar/polsar/utils/armadillo-5.200.2/mex_interface/armamex_demo.mexa64+00013634 mexfunction+00002831 [ 10] 0x00007fd74647272a /usr/local/matlab/r2014a/bin/glnxa64/libmex.so+00120618 mexrunmexfile+00000090 [ 11] 0x00007fd74646ea94 /usr/local/matlab/r2014a/bin/glnxa64/libmex.so+00105108 [ 12] 0x00007fd74646ffb4 /usr/local/matlab/r2014a/bin/glnxa64/libmex.so+00110516 [ 13] 0x00007fd745869ad9 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_dispatcher.so+00670425 _zn8mfh_file11dispatch_fheipp11mxarray_tagis2_+00000697 [ 14] 0x00007fd744b062b4 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+04461236 [ 15] 0x00007fd744b07bc9 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+04467657 [ 16] 0x00007fd744b083fc /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+04469756 [ 17] 0x00007fd7449826e3 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02873059 [ 18] 0x00007fd74499209e /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02936990 [ 19] 0x00007fd744992183 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02937219 [ 20] 0x00007fd744ac8172 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+04206962 [ 21] 0x00007fd7448fd589 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02327945 [ 22] 0x00007fd744900167 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02339175 [ 23] 0x00007fd7448fe26f /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02331247 [ 24] 0x00007fd7448feec4 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02334404 [ 25] 0x00007fd74495c30b /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02716427 [ 26] 0x00007fd745869c5f /usr/local/matlab/r2014a/bin/glnxa64/libmwm_dispatcher.so+00670815 _zn8mfh_file11dispatch_fheipp11mxarray_tagis2_+00001087 [ 27] 0x00007fd74494020e /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02601486 [ 28] 0x00007fd7448e11b0 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02212272 [ 29] 0x00007fd7448fc25f /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02323039 [ 30] 0x00007fd744900167 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02339175 [ 31] 0x00007fd7448fe26f /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02331247 [ 32] 0x00007fd7448feec4 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02334404 [ 33] 0x00007fd74495c30b /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02716427 [ 34] 0x00007fd745869c5f /usr/local/matlab/r2014a/bin/glnxa64/libmwm_dispatcher.so+00670815 _zn8mfh_file11dispatch_fheipp11mxarray_tagis2_+00001087 [ 35] 0x00007fd74492f135 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02531637 [ 36] 0x00007fd7448f60d9 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02298073 [ 37] 0x00007fd7448f2dc7 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02284999 [ 38] 0x00007fd7448f3193 /usr/local/matlab/r2014a/bin/glnxa64/libmwm_interpreter.so+02285971 [ 39] 0x00007fd74669cafc /usr/local/matlab/r2014a/bin/glnxa64/libmwbridge.so+00142076 [ 40] 0x00007fd74669d791 /usr/local/matlab/r2014a/bin/glnxa64/libmwbridge.so+00145297 _z8mnparserv+00000721 [ 41] 0x00007fd74f95392f /usr/local/matlab/r2014a/bin/glnxa64/libmwmcr.so+00489775 _zn11mcrinstance30mnparser_on_interpreter_threadev+00000031 [ 42] 0x00007fd74f934b6d /usr/local/matlab/r2014a/bin/glnxa64/libmwmcr.so+00363373 [ 43] 0x00007fd74f934be9 /usr/local/matlab/r2014a/bin/glnxa64/libmwmcr.so+00363497 [ 44] 0x00007fd744028d46 /usr/local/matlab/r2014a/bin/glnxa64/libmwuix.so+00343366 [ 45] 0x00007fd74400b382 /usr/local/matlab/r2014a/bin/glnxa64/libmwuix.so+00222082 [ 46] 0x00007fd7500a950f /usr/local/matlab/r2014a/bin/glnxa64/libmwservices.so+02323727 [ 47] 0x00007fd7500a967c /usr/local/matlab/r2014a/bin/glnxa64/libmwservices.so+02324092 [ 48] 0x00007fd7500a557f /usr/local/matlab/r2014a/bin/glnxa64/libmwservices.so+02307455 [ 49] 0x00007fd7500aa9b5 /usr/local/matlab/r2014a/bin/glnxa64/libmwservices.so+02329013 [ 50] 0x00007fd7500aade7 /usr/local/matlab/r2014a/bin/glnxa64/libmwservices.so+02330087 [ 51] 0x00007fd7500ab4c0 /usr/local/matlab/r2014a/bin/glnxa64/libmwservices.so+02331840 _z25svws_processpendingeventsiib+00000080 [ 52] 0x00007fd74f935098 /usr/local/matlab/r2014a/bin/glnxa64/libmwmcr.so+00364696 [ 53] 0x00007fd74f9353bf /usr/local/matlab/r2014a/bin/glnxa64/libmwmcr.so+00365503 [ 54] 0x00007fd74f93028f /usr/local/matlab/r2014a/bin/glnxa64/libmwmcr.so+00344719 [ 55] 0x00007fd74e8de182 /lib/x86_64-linux-gnu/libpthread.so.0+00033154 [ 56] 0x00007fd74e60b47d /lib/x86_64-linux-gnu/libc.so.6+01025149 clone+00000109 abnormal termination: segmentation violation register state (from fault): rax = 0000000000000002 rbx = 0000000000000000 rcx = 0000001000000004 rdx = 0000000000251169 rsp = 00007fd737ff9538 rbp = 0000000000000000 rsi = 00007fd6b6d984b0 rdi = 00007fd737ff9500 r8 = 0000001000000001 r9 = 0000000000000004 r10 = 0000000000000003 r11 = 00007fd74e698a30 r12 = 0000000000000000 r13 = 0000001000000005 r14 = 00007fd6b6d984b0 r15 = 0000000000000000 rip = 00007fd68e7a0872 efl = 0000000000010283 cs = 0033 fs = 0000 gs = 0000
try add armadillo cast used in code , worked fine:
`vec x = conv_to<vec>::from(armagetpr(prhs[0],true));`
for more info see: http://sigpack.sourceforge.net/build.html
Comments
Post a Comment