MATLAB Answers

Linux 環境で MATLAB Drive Connector をインストール直後にクラッシュします。

1 view (last 30 days)
Linux 環境で MATLAB Drive Connector をインストールした直後、及び "MATLABConnector start" 実行時、 
下記のようなクラッシュログが表示されます。
Abnormal termination:
Segmentation violation
Current Thread: 'MATLABConnector' id 140670278809344
Register State (from fault):
RAX = 00007ff050068c80 RBX = 00007ff059ff7ae0
RCX = 00007ff0441d30b0 RDX = 00007ff059ff7920
RSP = 00007ff059ff7890 RBP = 00007ff059ff7c30
RSI = 0000000000000000 RDI = 00007ff059ff7ae0
R8 = 00007ff08c7c39d8 R9 = 00007ff0440008d0
R10 = 0000000000000000 R11 = 00007ff0441d3000
R12 = 00007ff059ff7b00 R13 = 00007ff059ff7b80
R14 = 00007ff059ff7d60 R15 = 00007ff059ff7ac0
RIP = 00007ff042799656 EFL = 0000000000010246
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007ff042799656 /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/login/desktoplogin/login/storage/secrets_store/libmwloginstoragesecrets_store.so+00132694
[ 1] 0x00007ff04279cf38 /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/login/desktoplogin/login/storage/secrets_store/libmwloginstoragesecrets_store.so+00147256
[ 2] 0x00007ff040a32b0d /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/login/desktoplogin/login/local/libmwloginlocal.so+00117517
[ 3] 0x00007ff040a2ac46 /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/login/desktoplogin/login/local/libmwloginlocal.so+00085062
[ 4] 0x00007ff040a35346 /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/login/desktoplogin/login/local/libmwloginlocal.so+00127814
[ 5] 0x00007ff08411e7a5 /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/libDeclarativeServices.so.1.0.0+00452517
[ 6] 0x00007ff0841316db /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/libDeclarativeServices.so.1.0.0+00530139
[ 7] 0x00007ff084131df1 /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/libDeclarativeServices.so.1.0.0+00531953
[ 8] 0x00007ff084132b4d /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/libDeclarativeServices.so.1.0.0+00535373
[ 9] 0x00007ff08411c33e /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/libDeclarativeServices.so.1.0.0+00443198
[ 10] 0x00007ff084131033 /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/libDeclarativeServices.so.1.0.0+00528435
[ 11] 0x00007ff08d0142ea /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/libCppMicroServices.so.3.4.0+00496362
[ 12] 0x00007ff08d015a58 /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/libCppMicroServices.so.3.4.0+00502360
[ 13] 0x00007ff08d02570b /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/libCppMicroServices.so.3.4.0+00567051 _ZN16cppmicroservices13BundleContext10GetServiceB5cxx11ERKNS_16ServiceReferenceIvEE+00000139
[ 14] 0x00007ff0840e2b06 /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/libDeclarativeServices.so.1.0.0+00207622
[ 15] 0x00007ff0840e2fe1 /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/libDeclarativeServices.so.1.0.0+00208865
[ 16] 0x00007ff08411e72a /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/libDeclarativeServices.so.1.0.0+00452394
[ 17] 0x00007ff0841316db /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/libDeclarativeServices.so.1.0.0+00530139
[ 18] 0x00007ff084131df1 /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/libDeclarativeServices.so.1.0.0+00531953
[ 19] 0x00007ff084132b4d /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/libDeclarativeServices.so.1.0.0+00535373
[ 20] 0x00007ff08411c33e /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/libDeclarativeServices.so.1.0.0+00443198
[ 21] 0x00007ff084131033 /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/libDeclarativeServices.so.1.0.0+00528435
[ 22] 0x00007ff08d0142ea /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/libCppMicroServices.so.3.4.0+00496362
[ 23] 0x00007ff08d015a58 /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/libCppMicroServices.so.3.4.0+00502360
[ 24] 0x00007ff08d01068a /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/libCppMicroServices.so.3.4.0+00480906 _ZNK16cppmicroservices18ServiceObjectsBase10GetServiceEv+00000890
[ 25] 0x00007ff058121eb7 /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/spf/servicepublishers/agent/spf/legacyservicepublisher/../../../../../../../bin/glnxa64/libmwagentcredentials.so+00163511
[ 26] 0x00007ff0581142f4 /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/spf/servicepublishers/agent/spf/legacyservicepublisher/../../../../../../../bin/glnxa64/libmwagentcredentials.so+00107252
[ 27] 0x00007ff0581183c1 /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/spf/servicepublishers/agent/spf/legacyservicepublisher/../../../../../../../bin/glnxa64/libmwagentcredentials.so+00123841
[ 28] 0x00007ff0895a0e4c /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/libmwagentcoreservice.so+00056908 _ZN5agent4core7service11ServiceBase5startERKNS1_20StartupConfigurationE+00003564
[ 29] 0x00007ff080147b71 /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/spf/servicepublishers/agent/spf/legacyservicepublisher/libmwagentspflegacyservicepublisher.so+00277361
[ 30] 0x00007ff080148eb4 /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/spf/servicepublishers/agent/spf/legacyservicepublisher/libmwagentspflegacyservicepublisher.so+00282292
[ 31] 0x00007ff08014b197 /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/spf/servicepublishers/agent/spf/legacyservicepublisher/libmwagentspflegacyservicepublisher.so+00291223
[ 32] 0x00007ff0802c070e /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/spf/framework/agent/spf/framework/libmwagentspfframework.so+00218894
[ 33] 0x00007ff0802c32b0 /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/spf/framework/agent/spf/framework/libmwagentspfframework.so+00230064
[ 34] 0x00007ff08ca96c3f /home/<Username>/.MATLABConnector/v1.7.0.24/<Hostname>/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6+00764991
[ 35] 0x00007ff08cd666db /lib/x86_64-linux-gnu/libpthread.so.0+00030427
[ 36] 0x00007ff08c4f471f /lib/x86_64-linux-gnu/libc.so.6+01185567 clone+00000063
--------------------------------------------------------------------------------------------
 

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 16 Jun 2021
Edited: MathWorks Support Team on 16 Jun 2021
このエラーは Connector のインストールフォルダ内にある、 credentials フォルダの権限設定に誤りがある事を示しています。
Connector がフォルダを作成する際、セキュリティのために、使用ユーザのみがアクセスできるように権限を設定します。
1) 下記コマンドを実行します。
$ ls -ld ~/.matlab/credentials/ ~/.matlab/credentials/default_store.xml
2) <Username> 部分を確認し、一般ユーザーである事を確認します。
drwx------ 2 <Username> users 3 Apr 8 16:42 ~/.matlab/credentials/
-rw------- 1 <Username> users 6129 Apr 8 16:42 ~/.matlab/credentials/default_store.xml
3)  <Username> 部分が一般ユーザーでない (rootなど) 場合、下記コマンドを実行し、フォルダを削除します。
$ rm -Rf ~/.matlab/credentials
4) 一般ユーザーとして MATLAB Drive Connector を再インストールします。
表示されたクラッシュレポートがマッチしない場合、下記の Article を参照してください。
MATLAB Drive Connector がクラッシュした際の一般的な解決方法となります。
MATLAB Drive Connector 起動時に "Unexpected Error" が表示され クラッシュ します。

More Answers (0)

Community Treasure Hunt

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

Start Hunting!