Crash Segmentation violation error during run simulink file

16 visualizzazioni (ultimi 30 giorni)
How i can solve?
--------------------------------------------------------------------------------
Segmentation violation detected at 2022-04-26 15:57:45 +0200
--------------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : UTF-8
Deployed : false
Desktop Environment : ubuntu:GNOME
GNU C Library : 2.31 stable
Graphics Driver : NVIDIA Corporation NVIDIA GeForce GTX 1650 Ti/PCIe/SSE2 Version 4.6.0 NVIDIA 470.103.01
Graphics card 1 : 0x10de ( 0x10de ) 0x1f95 Version 470.103.1.0 (0-0-0)
Graphics card 2 : 0x1002 ( 0x1002 ) 0x1636 Version 0.0.0.0 (0-0-0)
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : glnxa64
MATLAB Entitlement ID : 3400609
MATLAB Root : /usr/local/MATLAB/R2021a
MATLAB Version : 9.10.0.1851785 (R2021a) Update 6
OpenGL : hardware
Operating System : Ubuntu 20.04.4 LTS
Process ID : 41501
Processor ID : x86 Family 143 Model 96 Stepping 1, AuthenticAMD
Session Key : 2c3163e4-77d3-412e-bcd1-ffbf5e454031
Static TLS mitigation : Enabled: Full
Window System : The X.Org Foundation (12013000), display :0
Fault Count: 1
Abnormal termination:
Segmentation violation
Current Thread: 'MCR 0 interpret' id 139939468371712
Register State (from fault):
RAX = 00007f43cf4321a0 RBX = 00007f46324d0850
RCX = 0000000000000007 RDX = 00007f4300000001
RSP = 00007f46324cfb48 RBP = 00007f46324cfb80
RSI = 00007f43cfece8b0 RDI = 00007f43cf4321a0
R8 = 0000000000000006 R9 = 00000000000077ee
R10 = 0000000000000008 R11 = 00000000e6546b64
R12 = 00007f46324cfb58 R13 = 00007f43cf6c0590
R14 = 00007f46324d0850 R15 = 00007f46324d0050
RIP = 00007f44427e1cf0 EFL = 0000000000010206
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007f44427e1cf0 /usr/local/MATLAB/R2021a/bin/glnxa64/builtins/sl_graphical_classes/../../../../bin/glnxa64/libmwsl_graphical_classes.so+07015664 _ZNK15BDConfigSetInfo15getRTWComponentEv+00000016
[ 1] 0x00007f444251d2b0 /usr/local/MATLAB/R2021a/bin/glnxa64/builtins/sl_graphical_classes/../../../../bin/glnxa64/libmwsl_graphical_classes.so+04113072 _ZN11SLRootBDAPI22getRTWSystemTargetFileEPK8SLRootBD+00000064
[ 2] 0x00007f43e01c2794 /home/giulio/Documents/MATLAB/SupportPackages/R2021a/bin/glnxa64/simulink_plugins/hardwaresupportpkgs/targets/targetHiddenBlkInsert/libmwtargetHiddenBlkInsert.so+00124820
[ 3] 0x00007f4407c3657b /usr/local/MATLAB/R2021a/bin/glnxa64/sl_proxy/sl_proxy_desktop/../../../../bin/glnxa64/libmwsl_engine_classes.so+02909563
[ 4] 0x00007f4407c3695d /usr/local/MATLAB/R2021a/bin/glnxa64/sl_proxy/sl_proxy_desktop/../../../../bin/glnxa64/libmwsl_engine_classes.so+02910557
[ 5] 0x00007f4407ac9bea /usr/local/MATLAB/R2021a/bin/glnxa64/sl_proxy/sl_proxy_desktop/../../../../bin/glnxa64/libmwsl_engine_classes.so+01416170
[ 6] 0x00007f4407aca218 /usr/local/MATLAB/R2021a/bin/glnxa64/sl_proxy/sl_proxy_desktop/../../../../bin/glnxa64/libmwsl_engine_classes.so+01417752 _ZN8slplugin16RunCompBdSignalsI11SLCompEventLS1_8EJEEEvP8SLCompBDDpOT1_+00000088
[ 7] 0x00007f4407ac44f5 /usr/local/MATLAB/R2021a/bin/glnxa64/sl_proxy/sl_proxy_desktop/../../../../bin/glnxa64/libmwsl_engine_classes.so+01393909 _ZN8slplugin18ProcessEngineEventEP8SLCompBD13SlEngineEventP8SLExecBD+00001909
[ 8] 0x00007f4407ac4656 /usr/local/MATLAB/R2021a/bin/glnxa64/sl_proxy/sl_proxy_desktop/../../../../bin/glnxa64/libmwsl_engine_classes.so+01394262 _Z17bdPostEngineEventPK8SLRootBDP8SLCompBD13SlEngineEventP8SLExecBD+00000086
[ 9] 0x00007f4404e0ff82 /usr/local/MATLAB/R2021a/bin/glnxa64/sl_proxy/sl_proxy_desktop/../../../../bin/glnxa64/libmwsl_compile.so+06090626
[ 10] 0x00007f4404e2ea25 /usr/local/MATLAB/R2021a/bin/glnxa64/sl_proxy/sl_proxy_desktop/../../../../bin/glnxa64/libmwsl_compile.so+06216229
[ 11] 0x00007f4404dfdad0 /usr/local/MATLAB/R2021a/bin/glnxa64/sl_proxy/sl_proxy_desktop/../../../../bin/glnxa64/libmwsl_compile.so+06015696 _Z17SLCompDiagramImplP8SLRootBD7SimTypeP30SlModelCreationAndCompileHooks12SS_SimStatusRK12CompileFlags+00001456
[ 12] 0x00007f4407fb1350 /usr/local/MATLAB/R2021a/bin/glnxa64/sl_proxy/sl_proxy_desktop/../../../../bin/glnxa64/libmwsl_link_bd.so+00938832
[ 13] 0x00007f4407fb1aeb /usr/local/MATLAB/R2021a/bin/glnxa64/sl_proxy/sl_proxy_desktop/../../../../bin/glnxa64/libmwsl_link_bd.so+00940779 _ZN5slink20CreateSlModelForLinkEP8SLRootBDRK20LinkBlockDiagramArgs+00000027
[ 14] 0x00007f440e86a841 /usr/local/MATLAB/R2021a/bin/glnxa64/sl_proxy/sl_proxy_desktop/../../../../bin/glnxa64/libmwsimulink.so+24590401
[ 15] 0x00007f440e86b396 /usr/local/MATLAB/R2021a/bin/glnxa64/sl_proxy/sl_proxy_desktop/../../../../bin/glnxa64/libmwsimulink.so+24593302
[ 16] 0x00007f440e86fa3b /usr/local/MATLAB/R2021a/bin/glnxa64/sl_proxy/sl_proxy_desktop/../../../../bin/glnxa64/libmwsimulink.so+24611387
[ 17] 0x00007f440e8bc26f /usr/local/MATLAB/R2021a/bin/glnxa64/sl_proxy/sl_proxy_desktop/../../../../bin/glnxa64/libmwsimulink.so+24924783
[ 18] 0x00007f440dc4ba4b /usr/local/MATLAB/R2021a/bin/glnxa64/sl_proxy/sl_proxy_desktop/../../../../bin/glnxa64/libmwsimulink.so+11881035
[ 19] 0x00007f440e423588 /usr/local/MATLAB/R2021a/bin/glnxa64/sl_proxy/sl_proxy_desktop/../../../../bin/glnxa64/libmwsimulink.so+20104584 _ZN6SLGlue35simulationStartPauseContinueNARModeEP11mxArray_tag+00000200
[ 20] 0x00007f43f876297e /usr/local/MATLAB/R2021a/bin/glnxa64/builtins/slglue/../../../../bin/glnxa64/libmwsl_mi.so+00854398
[ 21] 0x00007f46319d1531 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwmcos_impl.so+04654385
[ 22] 0x00007f46319d34d8 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwmcos_impl.so+04662488
[ 23] 0x00007f46319da4e9 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwmcos_impl.so+04691177
[ 24] 0x00007f46319d0fc5 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwmcos_impl.so+04652997
[ 25] 0x00007f4631a6900a /usr/local/MATLAB/R2021a/bin/glnxa64/libmwmcos_impl.so+05275658
[ 26] 0x00007f4631b2d88c /usr/local/MATLAB/R2021a/bin/glnxa64/libmwmcos_impl.so+06080652
[ 27] 0x00007f4631b2a712 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwmcos_impl.so+06067986
[ 28] 0x00007f464fcc42da /usr/local/MATLAB/R2021a/bin/glnxa64/libmwm_dispatcher.so+00635610 _ZN18Mfh_MATLAB_fn_impl19dispatch_with_reuseEiPP11mxArray_tagiS2_+00000266
[ 29] 0x00007f464cfccd7e /usr/local/MATLAB/R2021a/bin/glnxa64/libmwm_lxe.so+13016446
[ 30] 0x00007f464cfd65a7 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwm_lxe.so+13055399
[ 31] 0x00007f464fb57678 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwm_interpreter.so+01484408 inFullFevalFcn+00000136
[ 32] 0x00007f464c3122e2 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwbuiltin.so+00062178 _ZNK9MathWorks7builtin10BuiltinFcn6invokeEiPP11mxArray_tagiS4_+00000082
[ 33] 0x00007f464fce2813 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwm_dispatcher.so+00759827
[ 34] 0x00007f464fcc42da /usr/local/MATLAB/R2021a/bin/glnxa64/libmwm_dispatcher.so+00635610 _ZN18Mfh_MATLAB_fn_impl19dispatch_with_reuseEiPP11mxArray_tagiS2_+00000266
[ 35] 0x00007f464cfccd7e /usr/local/MATLAB/R2021a/bin/glnxa64/libmwm_lxe.so+13016446
[ 36] 0x00007f464cd0d349 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwm_lxe.so+10134345
[ 37] 0x00007f464cdb67a1 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwm_lxe.so+10827681
[ 38] 0x00007f464cdb7227 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwm_lxe.so+10830375
[ 39] 0x00007f464fb43d7e /usr/local/MATLAB/R2021a/bin/glnxa64/libmwm_interpreter.so+01404286 inCallFcnWithTrap+00000078
[ 40] 0x00007f43fd4782b1 /usr/local/MATLAB/R2021a/bin/glnxa64/sl_proxy/sl_proxy_desktop/../../../../bin/glnxa64/libmwdig.so+07660209
[ 41] 0x00007f43fd459ff1 /usr/local/MATLAB/R2021a/bin/glnxa64/sl_proxy/sl_proxy_desktop/../../../../bin/glnxa64/libmwdig.so+07536625
[ 42] 0x00007f43fd4590fa /usr/local/MATLAB/R2021a/bin/glnxa64/sl_proxy/sl_proxy_desktop/../../../../bin/glnxa64/libmwdig.so+07532794 _ZN3dig14ActionCallbackclEPNS_12CallbackInfoE+00000026
[ 43] 0x00007f43fd3aae8f /usr/local/MATLAB/R2021a/bin/glnxa64/sl_proxy/sl_proxy_desktop/../../../../bin/glnxa64/libmwdig.so+06819471 _ZN3dig13ActionService17executeActionImplERNS_5model6ActionEP11mxArray_tag+00001775
[ 44] 0x00007f43fd3ab122 /usr/local/MATLAB/R2021a/bin/glnxa64/sl_proxy/sl_proxy_desktop/../../../../bin/glnxa64/libmwdig.so+06820130 _ZN3dig13ActionService13executeActionERNS_5model6ActionEP11mxArray_tagNS_13ExecutionModeERKNS_13ErrorCallbackE+00000402
[ 45] 0x00007f43fd3ac1ef /usr/local/MATLAB/R2021a/bin/glnxa64/sl_proxy/sl_proxy_desktop/../../../../bin/glnxa64/libmwdig.so+06824431 _ZN3dig13ActionService13executeActionERKNSt7__cxx1112basic_stringIDsSt11char_traitsIDsESaIDsEEEP11mxArray_tagNS_13ExecutionModeERKNS_13ErrorCallbackE+00002111
[ 46] 0x00007f43fd4ad912 /usr/local/MATLAB/R2021a/bin/glnxa64/sl_proxy/sl_proxy_desktop/../../../../bin/glnxa64/libmwdig.so+07878930 _ZN3dig4View11handleEventERK11QJsonObject+00000818
[ 47] 0x00007f43fd4a664a /usr/local/MATLAB/R2021a/bin/glnxa64/sl_proxy/sl_proxy_desktop/../../../../bin/glnxa64/libmwdig.so+07849546 _ZN3dig9ToolStrip11handleEventERK11QJsonObject+00001850
[ 48] 0x00007f43fd3efa65 /usr/local/MATLAB/R2021a/bin/glnxa64/sl_proxy/sl_proxy_desktop/../../../../bin/glnxa64/libmwdig.so+07101029
[ 49] 0x00007f43fd38534d /usr/local/MATLAB/R2021a/bin/glnxa64/sl_proxy/sl_proxy_desktop/../../../../bin/glnxa64/libmwdig.so+06665037
[ 50] 0x00007f46ea07ab80 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwmvm.so+02796416 _ZNK7mwboost9function0IvEclEv+00000032
[ 51] 0x00007f46ea082840 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwmvm.so+02828352 _ZN14cmddistributor15PackagedTaskIIP10invokeFuncIN7mwboost8functionIFvvEEEEENS2_10shared_ptrINS2_13unique_futureIDTclfp_EEEEEERKT_+00000048
[ 52] 0x00007f46ea0828e8 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwmvm.so+02828520 _ZNSt17_Function_handlerIFN7mwboost3anyEvEZN14cmddistributor15PackagedTaskIIP10createFuncINS0_8functionIFvvEEEEESt8functionIS2_ET_EUlvE_E9_M_invokeERKSt9_Any_data+00000024
[ 53] 0x00007f46a4173b0b /usr/local/MATLAB/R2021a/bin/glnxa64/libmwiqm.so+00949003 _ZN3iqm18PackagedTaskPlugin7executeEP15inWorkSpace_tag+00000091
[ 54] 0x00007f468c186c25 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwmcr.so+00928805
[ 55] 0x00007f46a415487d /usr/local/MATLAB/R2021a/bin/glnxa64/libmwiqm.so+00821373
[ 56] 0x00007f46a41245f3 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwiqm.so+00624115
[ 57] 0x00007f46a4059242 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwbridge.so+00295490
[ 58] 0x00007f46a4059b73 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwbridge.so+00297843
[ 59] 0x00007f46a405ff86 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwbridge.so+00323462 _Z22mnGetCommandLineBufferbRbN7mwboost8optionalIKP15inWorkSpace_tagEEbRKNS0_9function2IN6mlutil14cmddistributor17inExecutionStatusERKNSt7__cxx1112basic_stringIDsSt11char_traitsIDsESaIDsEEES4_EE+00000230
[ 60] 0x00007f46a406022a /usr/local/MATLAB/R2021a/bin/glnxa64/libmwbridge.so+00324138 _Z8mnParserv+00000490
[ 61] 0x00007f468c189207 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwmcr.so+00938503
[ 62] 0x00007f46ea07ab80 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwmvm.so+02796416 _ZNK7mwboost9function0IvEclEv+00000032
[ 63] 0x00007f46ea082840 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwmvm.so+02828352 _ZN14cmddistributor15PackagedTaskIIP10invokeFuncIN7mwboost8functionIFvvEEEEENS2_10shared_ptrINS2_13unique_futureIDTclfp_EEEEEERKT_+00000048
[ 64] 0x00007f46ea0828e8 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwmvm.so+02828520 _ZNSt17_Function_handlerIFN7mwboost3anyEvEZN14cmddistributor15PackagedTaskIIP10createFuncINS0_8functionIFvvEEEEESt8functionIS2_ET_EUlvE_E9_M_invokeERKSt9_Any_data+00000024
[ 65] 0x00007f46a4173b0b /usr/local/MATLAB/R2021a/bin/glnxa64/libmwiqm.so+00949003 _ZN3iqm18PackagedTaskPlugin7executeEP15inWorkSpace_tag+00000091
[ 66] 0x00007f468c186c25 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwmcr.so+00928805
[ 67] 0x00007f46a415487d /usr/local/MATLAB/R2021a/bin/glnxa64/libmwiqm.so+00821373
[ 68] 0x00007f46a4122971 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwiqm.so+00616817
[ 69] 0x00007f46a41234a6 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwiqm.so+00619686
[ 70] 0x00007f468c171ece /usr/local/MATLAB/R2021a/bin/glnxa64/libmwmcr.so+00843470
[ 71] 0x00007f468c172575 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwmcr.so+00845173
[ 72] 0x00007f468c172742 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwmcr.so+00845634
[ 73] 0x00007f46e8a988a7 /usr/local/MATLAB/R2021a/bin/glnxa64/libmwboost_thread.so.1.72.0+00063655
[ 74] 0x00007f46e98a0609 /lib/x86_64-linux-gnu/libpthread.so.0+00034313
[ 75] 0x00007f46e922a163 /lib/x86_64-linux-gnu/libc.so.6+01175907 clone+00000067
Program State:
Most Recent Simulink Activity:
playSimulationAction : OK in editor 1 at Tue Apr 26 15:57:44 2022
simStopTimeTextAction : OK in editor 1 at Tue Apr 26 15:57:44 2022
simStopTimeTextAction : OK in editor 1 at Tue Apr 26 15:57:44 2022
simStopTimeTextAction : OK in editor 1 at Tue Apr 26 15:57:44 2022
simStopTimeTextAction : OK in editor 1 at Tue Apr 26 15:57:44 2022
Add Block : OK in editor 1 at Tue Apr 26 15:57:41 2022
Most Recent Tool Interaction:
Editor 1: tools idle, Simulink::QuickInsertTool is most recently active tool since Tue Apr 26 15:57:41 2022

Risposte (1)

Gyan Vaibhav
Gyan Vaibhav il 29 Dic 2023
Hi Giulio,
I understand that you are facing an error, while trying to simulate your model. When you simulate the model Simulink crashes with the error you provided above.
Here are few things that the stack trace points to:
  1. This is a segmentation fault; this error typically occurs when a program tries to read or write an illegal memory location.
  2. The error seems to occur when Simulink tries to access the RTWcomponent for the model.
Here are a few steps that can be followed to resolve the issue.
  1. Check for Updates: Ensure that your MATLAB installation is up to date with the latest updates and patches. ometimes, crashes can be resolved by simply updating to the latest version.
  2. If the model is generating code, using the codegen feature, try running the model without code generation. If the model works, try replacing the Simulink blocks that don’t support code generation.
  3. If the issue persists, you could contact MathWorks Technical Support here: https://www.mathworks.com/support/contact_us.html
Hope this helps.
Thanks
Gyan

Categorie

Scopri di più su Simulink Functions in Help Center e File Exchange

Prodotti


Release

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by