pcarbo / lbfgsb-matlab

A MATLAB interface for L-BFGS-B
GNU General Public License v3.0
51 stars 25 forks source link

MATLAB crash when running examplehs038 #5

Open antran89 opened 10 years ago

antran89 commented 10 years ago

I installed the software successfully. And I start Matlab to run it, but keep crash after running this basic example. The below is matlab crash dump (each dump file for each processor). I guess the problem with parallel processing part.


   Segmentation violation detected at Wed Oct 22 21:22:22 2014

Configuration: Crash Decoding : Disabled Current Visual : 0x21 (class 4, depth 24) Default Encoding: UTF-8 GNU C Library : 2.19 stable MATLAB Root : /usr/local/MATLAB/R2012a MATLAB Version : 7.14.0.739 (R2012a) Operating System: Linux 3.13.0-36-generic #63-Ubuntu SMP Wed Sep 3 21:30:07 UTC 2014 x86_64 Processor ID : x86 Family 6 Model 45 Stepping 7, 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 (10903000), display :10.0

Fault Count: 8

Abnormal termination: Segmentation violation

Register State (from fault): RAX = 00007f12637f90d0 RBX = 0000000000000001 RCX = 0001fc48563417a0 RDX = 00007f11a0668a74 RSP = 00007f11f4a3a690 RBP = 0001fc48562693a0 RSI = 0001fc48562693a0 RDI = 00000fe240000000

R8 = 7f56df2000000018 R9 = 00002fa6c0000000 R10 = 2a724a6000000008 R11 = 2a724a6000000008 R12 = 7f56df2000000018 R13 = 454e494c00000001 R14 = 0001fc48563417a0 R15 = 00007f11a0668a74

RIP = 00007f12637f9656 EFL = 0000000000010216

CS = 0033 FS = 0000 GS = 0000

Stack Trace (from fault): [ 0] 0x00007f1276d4592e /usr/local/MATLAB/R2012a/bin/glnxa64/libmwfl.so+00370990 _ZN2fl4diag15stacktrace_base7captureERKNS0_14thread_contextEm+000158 [ 1] 0x00007f1276d487d0 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwfl.so+00382928 [ 2] 0x00007f1276d48b3b /usr/local/MATLAB/R2012a/bin/glnxa64/libmwfl.so+00383803 _ZN2fl4diag13terminate_logEPKcRKNS0_14thread_contextE+000171 [ 3] 0x00007f1275c2c203 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01253891 _ZN2fl4diag13terminate_logEPKcPK8ucontext+000067 [ 4] 0x00007f1275c290fd /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01241341 [ 5] 0x00007f1275c2a79d /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01247133 [ 6] 0x00007f1275c2a925 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01247525 [ 7] 0x00007f1275c2af01 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01249025 [ 8] 0x00007f1275c2b3f5 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01250293 [ 9] 0x00007f12742f3340 /lib/x86_64-linux-gnu/libpthread.so.0+00066368 [ 10] 0x00007f12637f9656 /usr/local/MATLAB/R2012a/bin/glnxa64/mkl.so+10384982

Abnormal termination: Segmentation violation

Register State (from fault): RAX = 00007f12637f90d0 RBX = 0000000000000001 RCX = 00027b5a563417a0 RDX = 00007f11a0668a74 RSP = 00007f11a2427690 RBP = 00027b5a562693a0 RSI = 00027b5a562693a0 RDI = 00000fe240000000

R8 = 7f56df2000000018 R9 = 00003f8900000000 R10 = 2a724a6000000008 R11 = 2a724a6000000008 R12 = 7f56df2000000018 R13 = 454e494c00000001 R14 = 00027b5a563417a0 R15 = 00007f11a0668a74

RIP = 00007f12637f9656 EFL = 0000000000010216

CS = 0033 FS = 0000 GS = 0000

Stack Trace (from fault): [ 0] 0x00007f1276d4592e /usr/local/MATLAB/R2012a/bin/glnxa64/libmwfl.so+00370990 _ZN2fl4diag15stacktrace_base7captureERKNS0_14thread_contextEm+000158 [ 1] 0x00007f1276d487d0 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwfl.so+00382928 [ 2] 0x00007f1276d48b3b /usr/local/MATLAB/R2012a/bin/glnxa64/libmwfl.so+00383803 _ZN2fl4diag13terminate_logEPKcRKNS0_14thread_contextE+000171 [ 3] 0x00007f1275c2c203 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01253891 _ZN2fl4diag13terminate_logEPKcPK8ucontext+000067 [ 4] 0x00007f1275c290fd /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01241341 [ 5] 0x00007f1275c2a79d /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01247133 [ 6] 0x00007f1275c2a925 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01247525 [ 7] 0x00007f1275c2af01 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01249025 [ 8] 0x00007f1275c2b3f5 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01250293 [ 9] 0x00007f12742f3340 /lib/x86_64-linux-gnu/libpthread.so.0+00066368 [ 10] 0x00007f12637f9656 /usr/local/MATLAB/R2012a/bin/glnxa64/mkl.so+10384982

Abnormal termination: Segmentation violation

Register State (from fault): RAX = 00007f12637f90d0 RBX = 0000000000000001 RCX = 0002fa6c563417a0 RDX = 00007f11a0668a74 RSP = 00007f11a2326690 RBP = 0002fa6c562693a0 RSI = 0002fa6c562693a0 RDI = 00000fe240000000

R8 = 7f56df2000000018 R9 = 00004f6b40000000 R10 = 2a724a6000000008 R11 = 2a724a6000000008 R12 = 7f56df2000000018 R13 = 454e494c00000001 R14 = 0002fa6c563417a0 R15 = 00007f11a0668a74

RIP = 00007f12637f9656 EFL = 0000000000010216

CS = 0033 FS = 0000 GS = 0000

Stack Trace (from fault): [ 0] 0x00007f1276d4592e /usr/local/MATLAB/R2012a/bin/glnxa64/libmwfl.so+00370990 _ZN2fl4diag15stacktrace_base7captureERKNS0_14thread_contextEm+000158 [ 1] 0x00007f1276d487d0 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwfl.so+00382928 [ 2] 0x00007f1276d48b3b /usr/local/MATLAB/R2012a/bin/glnxa64/libmwfl.so+00383803 _ZN2fl4diag13terminate_logEPKcRKNS0_14thread_contextE+000171 [ 3] 0x00007f1275c2c203 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01253891 _ZN2fl4diag13terminate_logEPKcPK8ucontext+000067 [ 4] 0x00007f1275c290fd /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01241341 [ 5] 0x00007f1275c2a79d /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01247133 [ 6] 0x00007f1275c2a925 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01247525 [ 7] 0x00007f1275c2af01 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01249025 [ 8] 0x00007f1275c2b3f5 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01250293 [ 9] 0x00007f12742f3340 /lib/x86_64-linux-gnu/libpthread.so.0+00066368 [ 10] 0x00007f12637f9656 /usr/local/MATLAB/R2012a/bin/glnxa64/mkl.so+10384982

Abnormal termination: Segmentation violation

Register State (from fault): RAX = 00007f12637f90d0 RBX = 0000000000000001 RCX = 0003f890563417a0 RDX = 00007f11a0668a74 RSP = 00007f11a2528690 RBP = 0003f890562693a0 RSI = 0003f890562693a0 RDI = 00000fe240000004

R8 = 7f56df2000000018 R9 = 00006f2fc0000000 R10 = 2a724a6000000008 R11 = 2a724a6000000008 R12 = 7f56df2000000018 R13 = 454e494c00000001 R14 = 0003f890563417a0 R15 = 00007f11a0668a74

RIP = 00007f12637f9656 EFL = 0000000000010206

CS = 0033 FS = 0000 GS = 0000

Stack Trace (from fault): [ 0] 0x00007f1276d4592e /usr/local/MATLAB/R2012a/bin/glnxa64/libmwfl.so+00370990 _ZN2fl4diag15stacktrace_base7captureERKNS0_14thread_contextEm+000158 [ 1] 0x00007f1276d487d0 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwfl.so+00382928 [ 2] 0x00007f1276d48b3b /usr/local/MATLAB/R2012a/bin/glnxa64/libmwfl.so+00383803 _ZN2fl4diag13terminate_logEPKcRKNS0_14thread_contextE+000171 [ 3] 0x00007f1275c2c203 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01253891 _ZN2fl4diag13terminate_logEPKcPK8ucontext+000067 [ 4] 0x00007f1275c290fd /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01241341 [ 5] 0x00007f1275c2a79d /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01247133 [ 6] 0x00007f1275c2a925 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01247525 [ 7] 0x00007f1275c2af01 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01249025 [ 8] 0x00007f1275c2b3f5 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01250293 [ 9] 0x00007f12742f3340 /lib/x86_64-linux-gnu/libpthread.so.0+00066368 [ 10] 0x00007f12637f9656 /usr/local/MATLAB/R2012a/bin/glnxa64/mkl.so+10384982

Abnormal termination: Segmentation violation

Register State (from fault): RAX = 00007f12637f90d0 RBX = 0000000000000001 RCX = 00017d36563417a0 RDX = 00007f11a0668a74 RSP = 00007f11a2d96690 RBP = 00017d36562693a0 RSI = 00017d36562693a0 RDI = 00000fe240000000

R8 = 7f56df2000000018 R9 = 00001fc480000000 R10 = 2a724a6000000008 R11 = 2a724a6000000008 R12 = 7f56df2000000018 R13 = 454e494c00000001 R14 = 00017d36563417a0 R15 = 00007f11a0668a74

RIP = 00007f12637f9656 EFL = 0000000000010216

CS = 0033 FS = 0000 GS = 0000

Stack Trace (from fault): [ 0] 0x00007f1276d4592e /usr/local/MATLAB/R2012a/bin/glnxa64/libmwfl.so+00370990 _ZN2fl4diag15stacktrace_base7captureERKNS0_14thread_contextEm+000158 [ 1] 0x00007f1276d487d0 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwfl.so+00382928 [ 2] 0x00007f1276d48b3b /usr/local/MATLAB/R2012a/bin/glnxa64/libmwfl.so+00383803 _ZN2fl4diag13terminate_logEPKcRKNS0_14thread_contextE+000171 [ 3] 0x00007f1275c2c203 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01253891 _ZN2fl4diag13terminate_logEPKcPK8ucontext+000067 [ 4] 0x00007f1275c290fd /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01241341 [ 5] 0x00007f1275c2a79d /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01247133 [ 6] 0x00007f1275c2a925 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01247525 [ 7] 0x00007f1275c2af01 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01249025 [ 8] 0x00007f1275c2b3f5 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01250293 [ 9] 0x00007f12742f3340 /lib/x86_64-linux-gnu/libpthread.so.0+00066368 [ 10] 0x00007f12637f9656 /usr/local/MATLAB/R2012a/bin/glnxa64/mkl.so+10384982

Abnormal termination: Segmentation violation

Register State (from fault): RAX = 00007f12637f90d0 RBX = 0000000000000001 RCX = 0000fe24563417a0 RDX = 00007f11a0668a74 RSP = 00007f11a3099690 RBP = 0000fe24562693a0 RSI = 0000fe24562693a0 RDI = 00000fe240000000

R8 = 7f56df2000000018 R9 = 00000fe240000000 R10 = 2a724a6000000008 R11 = 2a724a6000000008 R12 = 7f56df2000000018 R13 = 454e494c00000001 R14 = 0000fe24563417a0 R15 = 00007f11a0668a74

RIP = 00007f12637f9656 EFL = 0000000000010216

CS = 0033 FS = 0000 GS = 0000

Stack Trace (from fault): [ 0] 0x00007f1276d4592e /usr/local/MATLAB/R2012a/bin/glnxa64/libmwfl.so+00370990 _ZN2fl4diag15stacktrace_base7captureERKNS0_14thread_contextEm+000158 [ 1] 0x00007f1276d487d0 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwfl.so+00382928 [ 2] 0x00007f1276d48b3b /usr/local/MATLAB/R2012a/bin/glnxa64/libmwfl.so+00383803 _ZN2fl4diag13terminate_logEPKcRKNS0_14thread_contextE+000171 [ 3] 0x00007f1275c2c203 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01253891 _ZN2fl4diag13terminate_logEPKcPK8ucontext+000067 [ 4] 0x00007f1275c290fd /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01241341 [ 5] 0x00007f1275c2a79d /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01247133 [ 6] 0x00007f1275c2a925 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01247525 [ 7] 0x00007f1275c2af01 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01249025 [ 8] 0x00007f1275c2b3f5 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01250293 [ 9] 0x00007f12742f3340 /lib/x86_64-linux-gnu/libpthread.so.0+00066368 [ 10] 0x00007f12637f9656 /usr/local/MATLAB/R2012a/bin/glnxa64/mkl.so+10384982

Abnormal termination: Segmentation violation

Register State (from fault): RAX = 00007f12637f90d0 RBX = 0000000000000001 RCX = 0003797e563417a0 RDX = 00007f11a0668a74 RSP = 00007f11a319a690 RBP = 0003797e562693a0 RSI = 0003797e562693a0 RDI = 00000fe240000000

R8 = 7f56df2000000018 R9 = 00005f4d80000000 R10 = 2a724a6000000008 R11 = 2a724a6000000008 R12 = 7f56df2000000018 R13 = 454e494c00000001 R14 = 0003797e563417a0 R15 = 00007f11a0668a74

RIP = 00007f12637f9656 EFL = 0000000000010216

CS = 0033 FS = 0000 GS = 0000

Stack Trace (from fault): [ 0] 0x00007f1276d4592e /usr/local/MATLAB/R2012a/bin/glnxa64/libmwfl.so+00370990 _ZN2fl4diag15stacktrace_base7captureERKNS0_14thread_contextEm+000158 [ 1] 0x00007f1276d487d0 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwfl.so+00382928 [ 2] 0x00007f1276d48b3b /usr/local/MATLAB/R2012a/bin/glnxa64/libmwfl.so+00383803 _ZN2fl4diag13terminate_logEPKcRKNS0_14thread_contextE+000171 [ 3] 0x00007f1275c2c203 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01253891 _ZN2fl4diag13terminate_logEPKcPK8ucontext+000067 [ 4] 0x00007f1275c290fd /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01241341 [ 5] 0x00007f1275c2a79d /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01247133 [ 6] 0x00007f1275c2a925 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01247525 [ 7] 0x00007f1275c2af01 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01249025 [ 8] 0x00007f1275c2b3f5 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01250293 [ 9] 0x00007f12742f3340 /lib/x86_64-linux-gnu/libpthread.so.0+00066368 [ 10] 0x00007f12637f9656 /usr/local/MATLAB/R2012a/bin/glnxa64/mkl.so+10384982

Abnormal termination: Segmentation violation

Register State (from fault): RAX = 00007f12637f90d0 RBX = 0000000000000001 RCX = 00007f12563417a0 RDX = 00007f11a0668a74 RSP = 00007f1262069a90 RBP = 00007f12562693a0 RSI = 00007f12562693a0 RDI = 00000fe240000000

R8 = 7f56df2000000018 R9 = 0000000000000000 R10 = 2a724a6000000008 R11 = 2a724a6000000008 R12 = 7f56df2000000018 R13 = 454e494c00000001 R14 = 00007f12563417a0 R15 = 00007f11a0668a74

RIP = 00007f12637f965a EFL = 0000000000010216

CS = 0033 FS = 0000 GS = 0000

Stack Trace (from fault): [ 0] 0x00007f1276d4592e /usr/local/MATLAB/R2012a/bin/glnxa64/libmwfl.so+00370990 _ZN2fl4diag15stacktrace_base7captureERKNS0_14thread_contextEm+000158 [ 1] 0x00007f1276d487d0 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwfl.so+00382928 [ 2] 0x00007f1276d48b3b /usr/local/MATLAB/R2012a/bin/glnxa64/libmwfl.so+00383803 _ZN2fl4diag13terminate_logEPKcRKNS0_14thread_contextE+000171 [ 3] 0x00007f1275c2c203 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01253891 _ZN2fl4diag13terminate_logEPKcPK8ucontext+000067 [ 4] 0x00007f1275c290fd /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01241341 [ 5] 0x00007f1275c2a79d /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01247133 [ 6] 0x00007f1275c2a925 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01247525 [ 7] 0x00007f1275c2af01 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01249025 [ 8] 0x00007f1275c2b3f5 /usr/local/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01250293 [ 9] 0x00007f12742f3340 /lib/x86_64-linux-gnu/libpthread.so.0+00066368 [ 10] 0x00007f12637f965a /usr/local/MATLAB/R2012a/bin/glnxa64/mkl.so+10384986

This error was detected while a MEX-file was running. If the MEX-file is not an official MathWorks function, please examine its source code for errors. Please consult the External Interfaces Guide for information on debugging MEX-files.

If this problem is reproducible, please submit a Service Request via: http://www.mathworks.com/support/contact_us/

A technical support engineer might contact you with further information.

Thank you for your help.

pcarbo commented 10 years ago

Sorry for not getting to you earlier. It is not unusual to get a segmentation fault, even if the MEX file successfully compiles and builds. However, it is difficult to say exactly what the problem could be. It is usually due to a linking problem---make sure that you are using the compiler versions (e.g. gcc) and the Fortran libraries that are compatible with MATLAB. This information is provided on the MathWorks website.

Another suggestion is to try to install the GPML MATLAB code, which includes the lbfgsb code: http://www.gaussianprocess.org/gpml/code/matlab/doc

It has been awhile since I've updated this code, so I apologize for not being of more help. If you manage to resolve the issue, please let me know.

Peter