Crash while running mex file

4 ビュー (過去 30 日間)
Ma
Ma 2015 年 1 月 12 日
コメント済み: Geoff Hayes 2015 年 1 月 13 日
Hello everybody, i try to run an self-compiled mex-file and get this two crash dumps:
------------------------------------------------------------------------ Segmentation violation detected at Mon Jan 12 17:44:06 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/R2013a MATLAB Version : 8.1.0.604 (R2013a) Operating System : Linux 3.12.24-rt38 #1 SMP PREEMPT RT Fri Nov 14 18:33:56 CET 2014 x86_64 Processor ID : x86 Family 6 Model 60 Stepping 3, GenuineIntel Virtual Machine : Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot™ 64-Bit Server VM mixed mode Window System : The X.Org Foundation (11501000), display :0
Fault Count: 2
Abnormal termination: Segmentation violation
Register State (from fault): RAX = 13b8b1aeb50d0dfe RBX = 0000000000000002 RCX = 0000000000000018 RDX = 0000000054b3f9d6 RSP = 00007f6041d6da80 RBP = 00007f607d71a4f0 RSI = 00007f6041d6da80 RDI = 0000000000000000
R8 = 0000000054b3f9d6 R9 = 0000000000000000
R10 = 0000000000000000 R11 = 0000000000000000
R12 = 00007f610ba887c0 R13 = 00007f6041d6dae0
R14 = 00007f6070003190 R15 = 112e0be826d694b3
RIP = 00007f6123955472 EFL = 0000000000010202
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault): [ 0] 0x00007f6123955472 /usr/local/MATLAB/R2013a/bin/glnxa64/libboost_chrono.so.1.49.0+00013426 _ZN5boost6chrono12system_clock3nowEv+00000034 [ 1] 0x00007f60408a5119 /home/robot_user/Documents/LEAP/LeapDeveloperKit_2.2.0+23475_linux/LeapSDK/lib/x64/libLeap.so+00925977 [ 2] 0x00007f6040891d0c /home/robot_user/Documents/LEAP/LeapDeveloperKit_2.2.0+23475_linux/LeapSDK/lib/x64/libLeap.so+00847116 [ 3] 0x00007f6040892f2b /home/robot_user/Documents/LEAP/LeapDeveloperKit_2.2.0+23475_linux/LeapSDK/lib/x64/libLeap.so+00851755 [ 4] 0x00007f6040893e45 /home/robot_user/Documents/LEAP/LeapDeveloperKit_2.2.0+23475_linux/LeapSDK/lib/x64/libLeap.so+00855621 [ 5] 0x00007f604085cd12 /home/robot_user/Documents/LEAP/LeapDeveloperKit_2.2.0+23475_linux/LeapSDK/lib/x64/libLeap.so+00630034 _ZN13DispatchQueue19DispatchEventUnsafeERSt11unique_lockISt5mutexE+00000098 [ 6] 0x00007f604085c2bb /home/robot_user/Documents/LEAP/LeapDeveloperKit_2.2.0+23475_linux/LeapSDK/lib/x64/libLeap.so+00627387 _ZN10CoreThread12WaitForEventEv+00000139 [ 7] 0x00007f604085c3d8 /home/robot_user/Documents/LEAP/LeapDeveloperKit_2.2.0+23475_linux/LeapSDK/lib/x64/libLeap.so+00627672 _ZN10CoreThread3RunEv+00000024 [ 8] 0x00007f604084e4b9 /home/robot_user/Documents/LEAP/LeapDeveloperKit_2.2.0+23475_linux/LeapSDK/lib/x64/libLeap.so+00570553 _ZN11BasicThread5DoRunEOSt10shared_ptrI6ObjectE+00000201 [ 9] 0x00007f612824fbf0 /usr/lib/x86_64-linux-gnu/libstdc++.so.6+00728048 [ 10] 0x00007f6127a6c182 /lib/x86_64-linux-gnu/libpthread.so.0+00033154 [ 11] 0x00007f6127798efd /lib/x86_64-linux-gnu/libc.so.6+01027837 clone+00000109
Abnormal termination 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.
------------------------------------------------------------------------ Segmentation violation detected at Mon Jan 12 17:44:06 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/R2013a MATLAB Version : 8.1.0.604 (R2013a) Operating System : Linux 3.12.24-rt38 #1 SMP PREEMPT RT Fri Nov 14 18:33:56 CET 2014 x86_64 Processor ID : x86 Family 6 Model 60 Stepping 3, GenuineIntel Virtual Machine : Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot™ 64-Bit Server VM mixed mode Window System : The X.Org Foundation (11501000), display :0
Fault Count: 2
Abnormal termination: Segmentation violation
Register State (from fault): RAX = 13b8b1aeb50d0dfe RBX = 0000000000000002 RCX = 0000000000000018 RDX = 0000000054b3f9d6 RSP = 00007f6041d6da80 RBP = 00007f607d71a4f0 RSI = 00007f6041d6da80 RDI = 0000000000000000
R8 = 0000000054b3f9d6 R9 = 0000000000000000
R10 = 0000000000000000 R11 = 0000000000000000
R12 = 00007f610ba887c0 R13 = 00007f6041d6dae0
R14 = 00007f6070003190 R15 = 112e0be826d694b3
RIP = 00007f6123955472 EFL = 0000000000010202
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault): [ 0] 0x00007f6123955472 /usr/local/MATLAB/R2013a/bin/glnxa64/libboost_chrono.so.1.49.0+00013426 _ZN5boost6chrono12system_clock3nowEv+00000034 [ 1] 0x00007f60408a5119 /home/robot_user/Documents/LEAP/LeapDeveloperKit_2.2.0+23475_linux/LeapSDK/lib/x64/libLeap.so+00925977 [ 2] 0x00007f6040891d0c /home/robot_user/Documents/LEAP/LeapDeveloperKit_2.2.0+23475_linux/LeapSDK/lib/x64/libLeap.so+00847116 [ 3] 0x00007f6040892f2b /home/robot_user/Documents/LEAP/LeapDeveloperKit_2.2.0+23475_linux/LeapSDK/lib/x64/libLeap.so+00851755 [ 4] 0x00007f6040893e45 /home/robot_user/Documents/LEAP/LeapDeveloperKit_2.2.0+23475_linux/LeapSDK/lib/x64/libLeap.so+00855621 [ 5] 0x00007f604085cd12 /home/robot_user/Documents/LEAP/LeapDeveloperKit_2.2.0+23475_linux/LeapSDK/lib/x64/libLeap.so+00630034 _ZN13DispatchQueue19DispatchEventUnsafeERSt11unique_lockISt5mutexE+00000098 [ 6] 0x00007f604085c2bb /home/robot_user/Documents/LEAP/LeapDeveloperKit_2.2.0+23475_linux/LeapSDK/lib/x64/libLeap.so+00627387 _ZN10CoreThread12WaitForEventEv+00000139 [ 7] 0x00007f604085c3d8 /home/robot_user/Documents/LEAP/LeapDeveloperKit_2.2.0+23475_linux/LeapSDK/lib/x64/libLeap.so+00627672 _ZN10CoreThread3RunEv+00000024 [ 8] 0x00007f604084e4b9 /home/robot_user/Documents/LEAP/LeapDeveloperKit_2.2.0+23475_linux/LeapSDK/lib/x64/libLeap.so+00570553 _ZN11BasicThread5DoRunEOSt10shared_ptrI6ObjectE+00000201 [ 9] 0x00007f612824fbf0 /usr/lib/x86_64-linux-gnu/libstdc++.so.6+00728048 [ 10] 0x00007f6127a6c182 /lib/x86_64-linux-gnu/libpthread.so.0+00033154 [ 11] 0x00007f6127798efd /lib/x86_64-linux-gnu/libc.so.6+01027837 clone+00000109
Abnormal termination: Segmentation violation
Register State (from fault): RAX = 13b8b1aeb5093d0c RBX = 0000000000000001 RCX = 0000000000000018 RDX = 0000000054b3f9d6 RSP = 00007f603bffed20 RBP = 00007f610ba885f0 RSI = 00007f603bffed20 RDI = 0000000000000000
R8 = 0000000054b3f9d6 R9 = 0000000000000001
R10 = 0000000000000004 R11 = 0000000000000004
R12 = 00007f610ba88648 R13 = 00007f610ba88648
R14 = 00007f610ba88658 R15 = 00007f610bf6f680
RIP = 00007f6123955472 EFL = 0000000000010206
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault): [ 0] 0x00007f6123955472 /usr/local/MATLAB/R2013a/bin/glnxa64/libboost_chrono.so.1.49.0+00013426 _ZN5boost6chrono12system_clock3nowEv+00000034 [ 1] 0x00007f60408a5119 /home/robot_user/Documents/LEAP/LeapDeveloperKit_2.2.0+23475_linux/LeapSDK/lib/x64/libLeap.so+00925977 [ 2] 0x00007f604085c125 /home/robot_user/Documents/LEAP/LeapDeveloperKit_2.2.0+23475_linux/LeapSDK/lib/x64/libLeap.so+00626981 _ZN10CoreThread18WaitForEventUnsafeERSt11unique_lockISt5mutexENSt6chrono10time_pointINS4_3_V212steady_clockENS4_8durationIlSt5ratioILl1ELl1000000000EEEEEE+00000117 [ 3] 0x00007f604085c34e /home/robot_user/Documents/LEAP/LeapDeveloperKit_2.2.0+23475_linux/LeapSDK/lib/x64/libLeap.so+00627534 _ZN10CoreThread12WaitForEventEv+00000286 [ 4] 0x00007f604085c3d8 /home/robot_user/Documents/LEAP/LeapDeveloperKit_2.2.0+23475_linux/LeapSDK/lib/x64/libLeap.so+00627672 _ZN10CoreThread3RunEv+00000024 [ 5] 0x00007f604084e4b9 /home/robot_user/Documents/LEAP/LeapDeveloperKit_2.2.0+23475_linux/LeapSDK/lib/x64/libLeap.so+00570553 _ZN11BasicThread5DoRunEOSt10shared_ptrI6ObjectE+00000201 [ 6] 0x00007f612824fbf0 /usr/lib/x86_64-linux-gnu/libstdc++.so.6+00728048 [ 7] 0x00007f6127a6c182 /lib/x86_64-linux-gnu/libpthread.so.0+00033154 [ 8] 0x00007f6127798efd /lib/x86_64-linux-gnu/libc.so.6+01027837 clone+00000109
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.
Can someone help me?
  3 件のコメント
Ma
Ma 2015 年 1 月 13 日
Hey Geoff, thanks for your advice. I try to run the matleap.cpp from Matleap by jeffsp. The compiler had problems with the libstdc++.so.6 so I relinked it to the compiler libstdc++.so.6 as it is described here. Now it crashes after running.
Geoff Hayes
Geoff Hayes 2015 年 1 月 13 日
What are your inputs to this function?

サインインしてコメントする。

回答 (1 件)

Shrirang
Shrirang 2015 年 1 月 13 日
Hi Ma, I have faced this "Segmentation Violation Error" while compiling C/C++ code. Following are two major causes which I found while solving the issue which might help to you. 1) A pointer variable is used without defining its size 2) And in your code you are accessing a hard coded memory location which is protected or your compiler cannot access this memory location.
  1 件のコメント
Ma
Ma 2015 年 1 月 13 日
Hey Shrirang, thank you for your help. I don't think that it is a problem with the size, because the code ( matleap code ) has been verified on other systems. Am I right?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by