Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation Fault seen on the Matlab2021b docker container #137

Open
Rakshan-PK opened this issue Mar 3, 2025 · 5 comments
Open

Segmentation Fault seen on the Matlab2021b docker container #137

Rakshan-PK opened this issue Mar 3, 2025 · 5 comments

Comments

@Rakshan-PK
Copy link

Rakshan-PK commented Mar 3, 2025

Hi,
We are using the matlab docker file with the same structure as seen on the main branch. We are using version : 2021b.
Additionally, we have configured the container with the following products :

Image

So whenever we execute matlab commands, we have a weird behavior. We see segmentation fault with the following error log.


Could not create on-disk crash report: failed opening file: No such file or directory: iostream error

--------------------------------------------------------------------------------
          Segmentation violation detected at 2025-02-28 12:11:03 +0000
--------------------------------------------------------------------------------

Configuration:
  Crash Decoding           : Disabled - No sandbox or build area path
  Crash Mode               : continue (default)
  Default Encoding         : US-ASCII
  Deployed                 : false
  GNU C Library            : 2.31 stable
  Graphics Driver          : Unknown software 
  Graphics card 1          : 0x102b ( 0x102b ) 0x534 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    : 9670394
  MATLAB Root              : /opt/matlab21b
  MATLAB Version           : 9.11.0.2358333 (R2021b) Update 7
  OpenGL                   : software
  Operating System         : Linux 4.19.0-17-amd64 #1 SMP Debian 4.19.194-2 (2021-06-21) x86_64
  Process ID               : 299
  Processor ID             : x86 Family 6 Model 158 Stepping 9, GenuineIntel
  Session Key              : c9c51614-25a7-44cc-9d0d-82717c5eb36a
  Static TLS mitigation    : Disabled: Unnecessary
  Window System            : No active display

Fault Count: 1


Abnormal termination:
Segmentation violation

Current Thread: 'MCR 0 interpret' id 140013151840000

Register State (from fault):
  RAX = 00007f5682f43ce8  RBX = 00007f561c001070
  RCX = 0000000000001140  RDX = 00007f561c001070
  RSP = 00007f575a2d2e80  RBP = 00007f575a2d3370
  RSI = 0000000000000001  RDI = 0000000000000000

   R8 = 00007f576c0bdb40   R9 = 00007f576c0bdb40
  R10 = 0000000000000000  R11 = 0000000000000000
  R12 = 0000000000000001  R13 = 00007f5605b489f0
  R14 = 0000000000000000  R15 = 00007f56bfad8c00

  RIP = 00007f5682a8cbe1  EFL = 0000000000010283

   CS = 0033   FS = 0000   GS = 0000

Stack Trace (from fault):
[  0] 0x00007f5682a8cbe1 /opt/matlab21b/bin/glnxa64/builtins/shared_dastudio_builtins/../../../../bin/glnxa64/libQt5Gui.so.5+01182689
[  1] 0x00007f5682a8dc96 /opt/matlab21b/bin/glnxa64/builtins/shared_dastudio_builtins/../../../../bin/glnxa64/libQt5Gui.so.5+01186966 _ZN7QPixmapC2Eii+00000048
[  2] 0x00007f56589a2bea /opt/matlab21b/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwdig.so+07031786
[  3] 0x00007f5658942e2b /opt/matlab21b/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwdig.so+06639147 _ZN3dig13Configuration17generateSpriteMapEv+00005483
[  4] 0x00007f565895286b /opt/matlab21b/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwdig.so+06703211 _ZN3dig13Configuration4loadEv+00000331
[  5] 0x00007f5658a57460 /opt/matlab21b/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwdig.so+07771232
[  6] 0x00007f57597e7b11       /opt/matlab21b/bin/glnxa64/libmwmcos_impl.so+04602641
[  7] 0x00007f57597ea9c8       /opt/matlab21b/bin/glnxa64/libmwmcos_impl.so+04614600
[  8] 0x00007f57597f0c49       /opt/matlab21b/bin/glnxa64/libmwmcos_impl.so+04639817
[  9] 0x00007f57597e8fe4       /opt/matlab21b/bin/glnxa64/libmwmcos_impl.so+04607972
[ 10] 0x00007f57597e9044       /opt/matlab21b/bin/glnxa64/libmwmcos_impl.so+04608068
[ 11] 0x00007f575987bd42       /opt/matlab21b/bin/glnxa64/libmwmcos_impl.so+05209410
[ 12] 0x00007f57821376ac            /opt/matlab21b/bin/glnxa64/libmwmcos.so+00321196 _Z18omDirectCallMethodRKN4mcos15COSInternedBaseINS_8internal13IdEmptyPolicyEEES5_S5_iPP11mxArray_tagiPPKS6_+00000076
[ 13] 0x00007f57684e9dcc     /opt/matlab21b/bin/glnxa64/libmwlxeindexing.so+01486284
[ 14] 0x00007f57685b9874     /opt/matlab21b/bin/glnxa64/libmwlxeindexing.so+02336884
[ 15] 0x00007f5768508776     /opt/matlab21b/bin/glnxa64/libmwlxeindexing.so+01611638
[ 16] 0x00007f5768508776     /opt/matlab21b/bin/glnxa64/libmwlxeindexing.so+01611638
[ 17] 0x00007f5768528f42     /opt/matlab21b/bin/glnxa64/libmwlxeindexing.so+01744706 _ZN9MathWorks3lxe36DereferenceRplaceToXvalueZeroOutputsERKNS_3utl10attach_ptrIKNS0_7IRplaceEEE+00000034
[ 18] 0x00007f57684c79f6     /opt/matlab21b/bin/glnxa64/libmwlxeindexing.so+01346038 _ZN9MathWorks3lxe10at_rparen0EPvNS_2ts4TypeEPKvS1_S1_+00000358
[ 19] 0x00007f57693c6f3d           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+13516605
[ 20] 0x00007f57693c8fa0           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+13524896
[ 21] 0x00007f5768e8edc0           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+08043968
[ 22] 0x00007f5768e90de4           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+08052196
[ 23] 0x00007f5768e8de71           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+08040049
[ 24] 0x00007f5768e83d25           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+07998757
[ 25] 0x00007f5768e84211           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+08000017
[ 26] 0x00007f5768e8d6ba           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+08038074
[ 27] 0x00007f5768e8d7b6           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+08038326
[ 28] 0x00007f5768fbbe1b           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+09276955
[ 29] 0x00007f5768fbed40           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+09289024
[ 30] 0x00007f57691ee8b6           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+11581622
[ 31] 0x00007f576919a84c           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+11237452
[ 32] 0x00007f576919b50c           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+11240716
[ 33] 0x00007f576923ca64           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+11901540
[ 34] 0x00007f576923cd9d           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+11902365
[ 35] 0x00007f569450a572 /opt/matlab21b/bin/glnxa64/builtins/shared_dastudio_builtins/../../../../bin/glnxa64/libmwsl_services.so+02643314 _ZN14CMatlabCommand7executeEbN6matrix9ErrorModeE+00000114
[ 36] 0x00007f569450a6f7 /opt/matlab21b/bin/glnxa64/builtins/shared_dastudio_builtins/../../../../bin/glnxa64/libmwsl_services.so+02643703 _Z16slsvEVAL_NoThrowRKNSt7__cxx1112basic_stringIDsSt11char_traitsIDsESaIDsEEEPvb+00000103
[ 37] 0x00007f566e59cff9 /opt/matlab21b/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwsl_graphical_classes.so+05853177
[ 38] 0x00007f566e59e96d /opt/matlab21b/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwsl_graphical_classes.so+05859693
[ 39] 0x00007f566e59bc9f /opt/matlab21b/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwsl_graphical_classes.so+05848223 _ZN15CallbackSupport15executeCallbackEP16SLSVMWObjectBaseRK10slsvStringib+00000127
[ 40] 0x00007f566e4b75c5 /opt/matlab21b/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwsl_graphical_classes.so+04912581 _ZNK23slBlockDiagramCallbacks17executeBDCallbackEi+00000053
[ 41] 0x00007f5671b6fbc4 /opt/matlab21b/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwsimulink.so+15526852
[ 42] 0x00007f566ec9a227 /opt/matlab21b/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwsl_loadsave.so+01753639
[ 43] 0x00007f566ec2de18 /opt/matlab21b/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwsl_loadsave.so+01310232
[ 44] 0x00007f566ec8a5d6 /opt/matlab21b/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwsl_loadsave.so+01689046
[ 45] 0x00007f566eac549f /opt/matlab21b/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwsimulink_loadsave_opc.so+00595103
[ 46] 0x00007f5785472a3e           /opt/matlab21b/bin/glnxa64/libexpat.so.1+00059966
[ 47] 0x00007f5785473a7a           /opt/matlab21b/bin/glnxa64/libexpat.so.1+00064122
[ 48] 0x00007f5785470e86           /opt/matlab21b/bin/glnxa64/libexpat.so.1+00052870
[ 49] 0x00007f578547226c           /opt/matlab21b/bin/glnxa64/libexpat.so.1+00057964
[ 50] 0x00007f578546bfa8           /opt/matlab21b/bin/glnxa64/libexpat.so.1+00032680 XML_ParseBuffer+00000120
[ 51] 0x00007f566eac4ce0 /opt/matlab21b/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwsimulink_loadsave_opc.so+00593120
[ 52] 0x00007f566eac62b3 /opt/matlab21b/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwsimulink_loadsave_opc.so+00598707 _Z10slsReadXMLR10slsIStreamRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEER15slsXMLCallbacksb+00000131
[ 53] 0x00007f566ec454d4 /opt/matlab21b/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwsl_loadsave.so+01406164 _ZN19XMLStreamParserImpl5parseEv+00000132
[ 54] 0x00007f566ec87a8a /opt/matlab21b/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwsl_loadsave.so+01677962
[ 55] 0x00007f566ec87c9e /opt/matlab21b/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwsl_loadsave.so+01678494 _Z14slsLoadSLXFileR16slsPackageReaderRK14PartNamePrefixRKNSt7__cxx1112basic_stringIDsSt11char_traitsIDsESaIDsEEEP20slsSimulinkCallbacks+00000398
[ 56] 0x00007f5671b757f4 /opt/matlab21b/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwsimulink.so+15550452
[ 57] 0x00007f5671b763b5 /opt/matlab21b/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwsimulink.so+15553461
[ 58] 0x00007f5671b692af /opt/matlab21b/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwsimulink.so+15499951
[ 59] 0x00007f5671b6a4d4 /opt/matlab21b/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwsimulink.so+15504596
[ 60] 0x00007f5671b6a6e7 /opt/matlab21b/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwsimulink.so+15505127
[ 61] 0x00007f566e4c4863 /opt/matlab21b/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwsl_graphical_classes.so+04966499 _ZN22slBlockDiagramLoadSave10loadSystemER25slBlockDiagramLoadOptions+00000067
[ 62] 0x00007f5671b496be /opt/matlab21b/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwsimulink.so+15369918
[ 63] 0x00007f5671b4bec9 /opt/matlab21b/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwsimulink.so+15380169
[ 64] 0x00007f5671bb4ce0 /opt/matlab21b/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwsimulink.so+15809760 _Z13slFullOpenSysiPP11mxArray_tagiS1_+00000192
[ 65] 0x00007f5774f038fa         /opt/matlab21b/bin/glnxa64/libmwbuiltin.so+00076026 _ZNK9MathWorks7builtin10BuiltinFcn6invokeEiPP11mxArray_tagiS4_NS1_18VariantsToConsiderE+00000106
[ 66] 0x00007f5775973b4e    /opt/matlab21b/bin/glnxa64/libmwm_dispatcher.so+00764750
[ 67] 0x00007f5775976938    /opt/matlab21b/bin/glnxa64/libmwm_dispatcher.so+00776504
[ 68] 0x00007f5775956e1a    /opt/matlab21b/bin/glnxa64/libmwm_dispatcher.so+00646682
[ 69] 0x00007f57759570e1    /opt/matlab21b/bin/glnxa64/libmwm_dispatcher.so+00647393 _ZN18Mfh_MATLAB_fn_impl8dispatchEiPSt10unique_ptrI11mxArray_tagN6matrix6detail17mxDestroy_deleterEEiPPS1_+00000033
[ 70] 0x00007f57692e9fd4           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+12611540
[ 71] 0x00007f57692ec672           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+12621426
[ 72] 0x00007f576944637d           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+14037885
[ 73] 0x00007f57694380ba           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+13979834
[ 74] 0x00007f57693c6f3d           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+13516605
[ 75] 0x00007f57693c7010           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+13516816
[ 76] 0x00007f5768e8edc0           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+08043968
[ 77] 0x00007f5768e90de4           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+08052196
[ 78] 0x00007f5768e8de71           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+08040049
[ 79] 0x00007f5768e83d25           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+07998757
[ 80] 0x00007f5768e84211           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+08000017
[ 81] 0x00007f5768e8d6ba           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+08038074
[ 82] 0x00007f5768e8d7b6           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+08038326
[ 83] 0x00007f5768fbbe1b           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+09276955
[ 84] 0x00007f5768fbed40           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+09289024
[ 85] 0x00007f57691ee8b6           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+11581622
[ 86] 0x00007f576919a84c           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+11237452
[ 87] 0x00007f576919b50c           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+11240716
[ 88] 0x00007f576923ca64           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+11901540
[ 89] 0x00007f576923cd9d           /opt/matlab21b/bin/glnxa64/libmwm_lxe.so+11902365
[ 90] 0x00007f5775700650   /opt/matlab21b/bin/glnxa64/libmwm_interpreter.so+01361488 _Z51inEvalCmdWithLocalReturnInDesiredWSAndPublishEventsRKNSt7__cxx1112basic_stringIDsSt11char_traitsIDsESaIDsEEEPibbP15inWorkSpace_tagN9MathWorks3lxe10EvalSourceE+00000064
[ 91] 0x00007f5775ca508f             /opt/matlab21b/bin/glnxa64/libmwiqm.so+00934031 _ZNK3iqm18InternalEvalPlugin24inEvalCmdWithLocalReturnERKNSt7__cxx1112basic_stringIDsSt11char_traitsIDsESaIDsEEEP15inWorkSpace_tag+00000095
[ 92] 0x00007f5775ca5f7d             /opt/matlab21b/bin/glnxa64/libmwiqm.so+00937853 _ZN3iqm18InternalEvalPlugin7executeEP15inWorkSpace_tag+00000237
[ 93] 0x00007f5775b33265             /opt/matlab21b/bin/glnxa64/libmwmcr.so+00938597
[ 94] 0x00007f5775c8dbdf             /opt/matlab21b/bin/glnxa64/libmwiqm.so+00838623
[ 95] 0x00007f5775c5e0b1             /opt/matlab21b/bin/glnxa64/libmwiqm.so+00643249
[ 96] 0x00007f5775c5e391             /opt/matlab21b/bin/glnxa64/libmwiqm.so+00643985
[ 97] 0x00007f57842e844e          /opt/matlab21b/bin/glnxa64/libmwmlutil.so+08614990 _ZNK14cmddistributor16IIPRunNowMessage7deliverERKN10foundation7msg_svc8exchange7RoutingE+00000030
[ 98] 0x00007f5784e0c7f5              /opt/matlab21b/bin/glnxa64/libmwms.so+02627573 _ZN10foundation7msg_svc8exchange12MessageQueue7deliverERKN7mwboost10shared_ptrIKNS1_8EnvelopeEEE+00000197
[ 99] 0x00007f5784e0f0aa              /opt/matlab21b/bin/glnxa64/libmwms.so+02637994
[100] 0x00007f5784df9613              /opt/matlab21b/bin/glnxa64/libmwms.so+02549267
[101] 0x00007f5784dfb92c              /opt/matlab21b/bin/glnxa64/libmwms.so+02558252
[102] 0x00007f5784df72e3              /opt/matlab21b/bin/glnxa64/libmwms.so+02540259
[103] 0x00007f578424b211          /opt/matlab21b/bin/glnxa64/libmwmlutil.so+07971345
[104] 0x00007f578424b4bd          /opt/matlab21b/bin/glnxa64/libmwmlutil.so+07972029
[105] 0x00007f5786854853             /opt/matlab21b/bin/glnxa64/libmwmvm.so+02545747 _ZN7mwboost6detail8function26void_function_obj_invoker0INS_3_bi6bind_tINS3_11unspecifiedENS4_IS5_NS_8functionIFvvEEENS3_5list0EEENS3_5list1INS_17reference_wrapperINS_7promiseIvEEEEEEEEvE6invokeERNS1_15function_bufferE+00000035
[106] 0x00007f57868930af             /opt/matlab21b/bin/glnxa64/libmwmvm.so+02801839 _ZN7mwboost13unique_futureIvE3getEv+00001279
[107] 0x00007f5775afcc56             /opt/matlab21b/bin/glnxa64/libmwmcr.so+00715862
[108] 0x00007f578689abd0             /opt/matlab21b/bin/glnxa64/libmwmvm.so+02833360 _ZNK7mwboost9function0IvEclEv+00000032
[109] 0x00007f57868a2a10             /opt/matlab21b/bin/glnxa64/libmwmvm.so+02865680 _ZN14cmddistributor15PackagedTaskIIP10invokeFuncIN7mwboost8functionIFvvEEEEENS2_10shared_ptrINS2_13unique_futureIDTclfp_EEEEEERKT_+00000048
[110] 0x00007f57868a2ab8             /opt/matlab21b/bin/glnxa64/libmwmvm.so+02865848 _ZNSt17_Function_handlerIFN7mwboost3anyEvEZN14cmddistributor15PackagedTaskIIP10createFuncINS0_8functionIFvvEEEEESt8functionIS2_ET_EUlvE_E9_M_invokeERKSt9_Any_data+00000024
[111] 0x00007f5775cae14b             /opt/matlab21b/bin/glnxa64/libmwiqm.so+00971083 _ZN3iqm18PackagedTaskPlugin7executeEP15inWorkSpace_tag+00000091
[112] 0x00007f5775b32f75             /opt/matlab21b/bin/glnxa64/libmwmcr.so+00937845
[113] 0x00007f5775c8dbdf             /opt/matlab21b/bin/glnxa64/libmwiqm.so+00838623
[114] 0x00007f5775c5d07b             /opt/matlab21b/bin/glnxa64/libmwiqm.so+00639099
[115] 0x00007f577532bc02          /opt/matlab21b/bin/glnxa64/libmwbridge.so+00302082
[116] 0x00007f577532c543          /opt/matlab21b/bin/glnxa64/libmwbridge.so+00304451
[117] 0x00007f57753327f2          /opt/matlab21b/bin/glnxa64/libmwbridge.so+00329714 _Z22mnGetCommandLineBufferbRbN7mwboost8optionalIKP15inWorkSpace_tagEEbRKNS0_9function2IN6mlutil14cmddistributor17inExecutionStatusERKNSt7__cxx1112basic_stringIDsSt11char_traitsIDsESaIDsEEES4_EE+00000274
[118] 0x00007f5775332a92          /opt/matlab21b/bin/glnxa64/libmwbridge.so+00330386 _Z8mnParserv+00000482
[119] 0x00007f5775b35317             /opt/matlab21b/bin/glnxa64/libmwmcr.so+00946967
[120] 0x00007f578689abd0             /opt/matlab21b/bin/glnxa64/libmwmvm.so+02833360 _ZNK7mwboost9function0IvEclEv+00000032
[121] 0x00007f57868a2a10             /opt/matlab21b/bin/glnxa64/libmwmvm.so+02865680 _ZN14cmddistributor15PackagedTaskIIP10invokeFuncIN7mwboost8functionIFvvEEEEENS2_10shared_ptrINS2_13unique_futureIDTclfp_EEEEEERKT_+00000048
[122] 0x00007f57868a2ab8             /opt/matlab21b/bin/glnxa64/libmwmvm.so+02865848 _ZNSt17_Function_handlerIFN7mwboost3anyEvEZN14cmddistributor15PackagedTaskIIP10createFuncINS0_8functionIFvvEEEEESt8functionIS2_ET_EUlvE_E9_M_invokeERKSt9_Any_data+00000024
[123] 0x00007f5775cae14b             /opt/matlab21b/bin/glnxa64/libmwiqm.so+00971083 _ZN3iqm18PackagedTaskPlugin7executeEP15inWorkSpace_tag+00000091
[124] 0x00007f5775b32f75             /opt/matlab21b/bin/glnxa64/libmwmcr.so+00937845
[125] 0x00007f5775c8dbdf             /opt/matlab21b/bin/glnxa64/libmwiqm.so+00838623
[126] 0x00007f5775c5b3cc             /opt/matlab21b/bin/glnxa64/libmwiqm.so+00631756
[127] 0x00007f5775c5be60             /opt/matlab21b/bin/glnxa64/libmwiqm.so+00634464




MATLAB is exiting because of fatal error
Killed
[Pipeline] echo
generateStatus  : 137

Workarounds tried:
Increased memory : --shm-size=2G to 4G to 8G ( No success)
Came across this link : and tried

Image keeping in mind the installation path inside my container. Still no success.

Would be of great help if you could suggest a solution.

@epaganon
Copy link
Member

epaganon commented Mar 3, 2025

Hi @Rakshan-PK ,

Thanks for reaching out.

In order to be able to reproduce this issue, could you please share with us:

  • your Dockerfile
  • the command that you are using to build the docker image. Are you just running docker build .?
  • the docker run command that you are using to start the container
  • the MATLAB command that gives this error

Thanks and regards

@Rakshan-PK
Copy link
Author

Rakshan-PK commented Mar 3, 2025

github.zip

To give an overview of our process, yes we have matlab image built on our VM. From the jenkins pipeline, we execute jobs on this image(which runs the matlab container)

  • Our dockerfile: Attached

  • The build command : docker build -t <tagname> .

  • The docker run command comes from Jenkinslogs :

docker run -t -d -u 1000:1000 --shm-size=2G --mac-address=XXXXX -e MLM_LICENSE_FILE=/opt/matlab/licenses/license.lic -w /var/jenkins_home/workspace/test--volumes-from b1335b344f794211c02188da3ddec7f2b1c66bb6bd01aee6ce7830d235641828 -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** matlab21b-v2 cat

  • Command : load_system('MODEL_Name') PS: The model has been added to the Path

@epaganon
Copy link
Member

epaganon commented Mar 4, 2025

Hi @Rakshan-PK ,

We have not been able to reproduce the issue following the provided instructions. Could you please confirm whether:

  1. You can reproduce the issue on a local machine (instead of the Jenkins pipeline)?
  2. You can reproduce the using the latest version of our Dockerfile with no changes except build arguments?
  3. You are using a proxy registry with an old matlab-deps?

If you find the same issues with all the above then could you please confirm whether:

  1. it crash for all models?
  2. it only crash when loading models and using Simulink? What about any other MATLAB code?
  3. it is possible to use a newer version of MATLAB?

Thanks and regards

@Rakshan-PK
Copy link
Author

Hi, apologies for my late response
Answering your questions:

  1. The jenkins pipeline is currently hosted on a remote server. Its a headless server. So, executing it on the server(debian VM) directly without Jenkinspipeline is something I have not tried. However, the same model builds perfectly on a WIndows machine
  2. We currently use 2021b. Does the latest version of dockerfile mean the latest matlab version as well? Currently we just use 2021b.
  3. No, we do not use proxy registry

@epaganon
Copy link
Member

Hi @Rakshan-PK ,

Unfortunately, we have not been able to reproduce the issue on our end yet. The issue might be due to several possible causes, including:

  • the mathworks/matlab-deps:r2021b base image being outdated,
  • the fact that you are not using the Dockerfile that we have provided in this repository.

To narrow down the list of possible causes, could you please try building a Docker image from the Dockerfile provided in this repository and use it in your Jenkins pipeline?

To build the Docker from our Dockerfile you can:

git clone [email protected]:mathworks-ref-arch/matlab-dockerfile.git
cd matlab-dockerfile
docker build --no-cache --pull -t repro:r2021b --build-arg MATLAB_RELEASE=r2021b --build-arg MATLAB_PRODUCT_LIST="MATLAB Simulink MATLAB_Coder Simulink_Coder Embedded_Coder" .

The --pull and --no-cache flags will make sure that you are using the latest version of the mathworks/matlab-deps:r2021b base image, and the MATLAB_RELEASE and MATLAB_PRODUCT_LIST build arguments will install the selected products and release.

Then, you can use the image repro:2021b in you pipeline. We have tried running the image via:

docker run -it --rm -v  <path/to/license/file.lic>:/opt/matlab/r2021b/licenses/license.lic -e MLM_LICENSE_FILE=/opt/matlab/r2021b/licenses/license.lic repro:r2021b

and, then, executed load_system('A_Model') in the MATLAB Command Line but it did not result in a crash.

Could you please:

  1. Try the steps above?
  2. Use the repro:2021b image in the docker run command you provided, instead of the matlab21b-v2 image?

Thanks and regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants