Help troubleshooting MATLAB crash

Hello all,

I recently tried to use the epanet-matlab-toolkit.

First I had an issue as the library libepanet was not found, so I add the file libepanet.so in the folder /epanet_matlab_toolkit/glnx. Then Matlab crashes when I am running the script /tests/testFunctions from the toolkit.

Thank you,
Best regards,
Gautier

Bellow the matlab crash report.

MATLAB crash file:/home/gautier/matlab_crash_dump.23580-1:


  Segmentation violation detected at jeu. août 20 10:13:20 2020 +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.27 stable
Graphics Driver : Unknown software
Graphics card 1 : 0x10de ( 0x10de ) 0x1cb3 Version 0.0.0.0 (0-0-0)
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot™ 64-Bit Server VM mixed mode
MATLAB Architecture : glnxa64
MATLAB Entitlement ID : 3900950
MATLAB Root : /usr/local/MATLAB/R2019b
MATLAB Version : 9.7.0.1247435 (R2019b) Update 2
OpenGL : software
Operating System : Ubuntu 18.04.5 LTS
Process ID : 23580
Processor ID : x86 Family 6 Model 85 Stepping 4, GenuineIntel
Session Key : cfb0ec38-39ca-425e-b337-33b0440f8b94
Static TLS mitigation : Enabled: Full
Window System : The X.Org Foundation (12008000), display :1

Fault Count: 1

Abnormal termination:
Segmentation violation

Register State (from fault):
RAX = 00007f3f112f1660 RBX = 00007f3f112f6690
RCX = 00007f410bfff558 RDX = 0000000000000004
RSP = 00007f410bffafb8 RBP = 00007f410bffafe0
RSI = 4445800000000000 RDI = 00007f3f112f1660

R8 = 0000000000000004 R9 = 00007f411c034fb0
R10 = 00007f41040008d0 R11 = ffffffffffffffff
R12 = 00007f40881a6080 R13 = 00007f3f112f1660
R14 = 00007f3f112f64b8 R15 = 00007f410bffb550

RIP = 00007f412aa685ff EFL = 0000000000010246

CS = 0033 FS = 0000 GS = 0000

Stack Trace (from fault):
[ 0] 0x00007f412aa685ff /lib/x86_64-linux-gnu/libc.so.6+00767487
[ 1] 0x00007f4079f8c34e /usr/local/MATLAB/R2019b/bin/glnxa64/builtins/ml_external_interfaces/…/…/…/…/bin/glnxa64/libmwcli.so+00283470
[ 2] 0x00007f4079f9b9e2 /usr/local/MATLAB/R2019b/bin/glnxa64/builtins/ml_external_interfaces/…/…/…/…/bin/glnxa64/libmwcli.so+00346594
[ 3] 0x00007f4079f9cb06 /usr/local/MATLAB/R2019b/bin/glnxa64/builtins/ml_external_interfaces/…/…/…/…/bin/glnxa64/libmwcli.so+00350982
[ 4] 0x00007f41196a2058 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_dispatcher.so+00647256
[ 5] 0x00007f411968cf86 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_dispatcher.so+00561030
[ 6] 0x00007f411968d2d1 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_dispatcher.so+00561873 ZN18Mfh_MATLAB_fn_impl8dispatchEiPSt10unique_ptrI11mxArray_tagN6matrix6detail17mxDestroy_deleterEEiPPS1+00000033
[ 7] 0x00007f4116c9d323 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+14025507
[ 8] 0x00007f4116ca20d6 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+14045398
[ 9] 0x00007f4116da8ebe /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+15122110
[ 10] 0x00007f4116d9c211 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+15069713
[ 11] 0x00007f4116d08e34 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+14466612
[ 12] 0x00007f4116d2f44d /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+14623821
[ 13] 0x00007f41165fd890 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+07080080
[ 14] 0x00007f41165e5ea2 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+06983330
[ 15] 0x00007f41165ea383 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+07000963
[ 16] 0x00007f4116b590f1 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+12697841
[ 17] 0x00007f4116c8a8a1 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+13949089
[ 18] 0x00007f4116c8b99d /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+13953437
[ 19] 0x00007f411970a15f /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_dispatcher.so+01073503 ZN8Mfh_file20dispatch_file_commonEMS_FviPP11mxArray_tagiS2_EiS2_iS2+00000207
[ 20] 0x00007f411970bc5e /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_dispatcher.so+01080414
[ 21] 0x00007f411970c1a1 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_dispatcher.so+01081761 ZN8Mfh_file8dispatchEiPSt10unique_ptrI11mxArray_tagN6matrix6detail17mxDestroy_deleterEEiPPS1+00000033
[ 22] 0x00007f4116c9d323 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+14025507
[ 23] 0x00007f4116ca20d6 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+14045398
[ 24] 0x00007f4116da8ebe /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+15122110
[ 25] 0x00007f4116d9c36c /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+15070060
[ 26] 0x00007f4116d08e34 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+14466612
[ 27] 0x00007f4116d2f47d /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+14623869
[ 28] 0x00007f41164ae83b /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+05707835
[ 29] 0x00007f41164b0a74 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+05716596
[ 30] 0x00007f41164ad81d /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+05703709
[ 31] 0x00007f411649acf1 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+05627121
[ 32] 0x00007f411649af29 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+05627689
[ 33] 0x00007f41164ad026 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+05701670
[ 34] 0x00007f41164ad126 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+05701926
[ 35] 0x00007f41165e6c49 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+06986825
[ 36] 0x00007f41165ea383 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+07000963
[ 37] 0x00007f4116b590f1 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+12697841
[ 38] 0x00007f4116b03693 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+12347027
[ 39] 0x00007f4116b07d2f /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+12365103
[ 40] 0x00007f4116b0b0e2 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+12378338
[ 41] 0x00007f4116ba7f8f /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+13021071
[ 42] 0x00007f4116ba8279 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwm_lxe.so+13021817
[ 43] 0x00007f41188c54c4 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwbridge.so+00341188 _Z8mnParserv+00000596
[ 44] 0x00007f41198555b5 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwmcr.so+01017269
[ 45] 0x00007f412c09b42b /usr/local/MATLAB/R2019b/bin/glnxa64/libmwmvm.so+03097643 ZN14cmddistributor15PackagedTaskIIP10invokeFuncIN7mwboost8functionIFvvEEEEENS2_10shared_ptrINS2_13unique_futureIDTclfp_EEEEEERKT+00000059
[ 46] 0x00007f412c09b518 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwmvm.so+03097880 _ZNSt17_Function_handlerIFN7mwboost3anyEvEZN14cmddistributor15PackagedTaskIIP10createFuncINS0_8functionIFvvEEEEESt8functionIS2_ET_EUlvE_E9_M_invokeERKSt9_Any_data+00000024
[ 47] 0x00007f41199a589c /usr/local/MATLAB/R2019b/bin/glnxa64/libmwiqm.so+00751772 _ZN7mwboost6detail8function21function_obj_invoker0ISt8functionIFNS_3anyEvEES4_E6invokeERNS1_15function_bufferE+00000028
[ 48] 0x00007f41199a5557 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwiqm.so+00750935 _ZN3iqm18PackagedTaskPlugin7executeEP15inWorkSpace_tag+00000439
[ 49] 0x00007f4119844015 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwmcr.so+00946197
[ 50] 0x00007f411998a6a0 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwiqm.so+00640672
[ 51] 0x00007f411996ee01 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwiqm.so+00527873
[ 52] 0x00007f411996fa7f /usr/local/MATLAB/R2019b/bin/glnxa64/libmwiqm.so+00531071
[ 53] 0x00007f411982b575 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwmcr.so+00845173
[ 54] 0x00007f411982bb93 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwmcr.so+00846739
[ 55] 0x00007f411982c404 /usr/local/MATLAB/R2019b/bin/glnxa64/libmwmcr.so+00848900
[ 56] 0x00007f412a378bdd /usr/local/MATLAB/R2019b/bin/glnxa64/libmwboost_thread.so.1.65.1+00080861
[ 57] 0x00007f412b33d6db /lib/x86_64-linux-gnu/libpthread.so.0+00030427
[ 58] 0x00007f412aacea3f /lib/x86_64-linux-gnu/libc.so.6+01186367 clone+00000063
[ 59] 0x0000000000000000 +00000000