There is an update. The problem is caused by the file /usr/local/MATLAB/R2013a/bin/glnxa64/mkl.so Here are the firt rows of the stacktrace
[ 0] 0x00007ff96f8c46cb /usr/local/MATLAB/R2013a/bin/glnxa64/mkl.so+06420171 mkl_lapack_dlange+00000187
[ 1] 0x00007ff96f90c626 /usr/local/MATLAB/R2013a/bin/glnxa64/mkl.so+06714918 mkl_lapack_dgesvd+00006006
[ 2] 0x00007ff96f3853e6 /usr/local/MATLAB/R2013a/bin/glnxa64/mkl.so+00918502 dgesvd+00000150
[ 3] 0x00007ff966895292 /usr/local/lib/libarmadillo.so.3+00017042 wrapper_dgesvd_+00000135
[ 4] 0x00007ff966aa8277 /home/mago/Development/Repository/MIPWips/Heterogeneous/matlab/hetCon.mexa64+00062071
[ 5] 0x00007ff966aae737 /home/mago/Development/Repository/MIPWips/Heterogeneous/matlab/hetCon.mexa64+00087863
[ 6] 0x00007ff966aa29b3 /home/mago/Development/Repository/MIPWips/Heterogeneous/matlab/hetCon.mexa64+00039347
[ 7] 0x00007ff966a9af11 /home/mago/Development/Repository/MIPWips/Heterogeneous/matlab/hetCon.mexa64+00007953
It is clear now that the problem is matlab. Apparently armadillo does not use the system lapack libraries but it uses the "mkl_lapack_dlange" loaded by matlab. I'm trying to solve the problem. The options are
- compiling statically the lapack and blas libraries in armadillo
- rename the referred libary and add a symbolic link to the lapack library.
If anyone has got a better way of solving this problem please let me know.
thank you
Andrea