Why do I receive a segmentation violation when starting MATLAB configured to use Login Named User?

56 views (last 30 days)
I have an installation of MATLAB configured to use Login Named User (LNU). When starting MATLAB it crashes with a segmentation violation with information similar to the following:
Abnormal termination:
Segmentation violation
Register State (from fault):
RAX = 0000000000000000 RBX = 00000000100e5088
RCX = 00002b676c75aaa0 RDX = 00000000100e5978
RSP = 00000000490ce820 RBP = 00000000490ce930
RSI = 0000000000000001 RDI = 00000000100e5978
R8 = 0000000000000000 R9 = 0000000000000000
R10 = 0000000000000000 R11 = 00002b676c75aab6
R12 = 00000000100e5088 R13 = 00000000100e5978
R14 = 00000000490cea60 R15 = 00000000490cea60
RIP = 00002b67652cc1eb EFL = 0000000000010206
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00002b6764bc01de /apps/matlab/R2012b_trial/bin/glnxa64/libmwfl.so+00516574 _ZN2fl4diag15stacktrace_base7captureERKNS0_14thread_contextEm+000158
[ 1] 0x00002b6764bc14b2 /apps/matlab/R2012b_trial/bin/glnxa64/libmwfl.so+00521394
[ 2] 0x00002b6764bc2ffe /apps/matlab/R2012b_trial/bin/glnxa64/libmwfl.so+00528382 _ZN2fl4diag13terminate_logEPKcRKNS0_14thread_contextE+000174
[ 3] 0x00002b676598b093 /apps/matlab/R2012b_trial/bin/glnxa64/libmwmcr.so+00557203 _ZN2fl4diag13terminate_logEPKcPK8ucontext+000067
[ 4] 0x00002b6765987b9d /apps/matlab/R2012b_trial/bin/glnxa64/libmwmcr.so+00543645
...

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 7 Mar 2013
The reason for this error is that the current user doesn't have permission to access the XML file needed to use the Login Named User (LNU) feature. This XML file is named "license_info.xml" and is located in one of the following locations:
1) The $MATLAB/licenses folder, where $MATLAB is the MATLAB installation directory.
2) The user application data folder (Windows) or home folder (Linux/Mac)
Windows: %appdata%/Mathworks/MATLAB/R20xx_licenses
Mac/Linux/Solaris: ~/.matlab/R20xx_licenses
Granting read access to the XML file to the affected user will resolve this issue.

More Answers (1)

Ahmed Khaled
Ahmed Khaled on 14 Mar 2022
MATLAB Log File: C:\Users\SAE1~1\AppData\Local\Temp\matlab_crash_dump.11832-1
------------------------------------------------
MATLAB Log File
------------------------------------------------
--------------------------------------------------------------------------------
Access violation detected at 2022-03-14 21:04:36 +0300
--------------------------------------------------------------------------------
Fault Count: 1
Abnormal termination:
Access violation
Current Thread: 'MCR 0 interpreter thread' id 12252
Register State (from fault):
RAX = 0000000000000050 RBX = 0000000000000050
RCX = 0000000000000050 RDX = 0000000000000000
RSP = 000000062bff8810 RBP = 000000062bff89d0
RSI = 000000062bff8d80 RDI = 000000062bff93c0
R8 = 000000003ce79e3f R9 = 0000000037b6debd
R10 = 0000000000000000 R11 = 000000062bff80b0
R12 = 0000000000000000 R13 = 0000000000000001
R14 = 000001f3a08c9f10 R15 = 000001f4704788b0
RIP = 00007ffbdc0d567c EFL = 00010202
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x00007ffbdc0d567c C:\Program Files\Polyspace\R2021a\bin\win64\sl_graphical_classes.dll+06510204 BDConfigSetInfo::getRTWComponent+00000012
[ 1] 0x00007ffbdbb8cacf C:\Program Files\Polyspace\R2021a\bin\win64\sl_graphical_classes.dll+00969423 SLRootBDAPI::getRTWSystemTargetFile+00000063
[ 2] 0x00007ffb9dbee5b5 C:\ProgramData\MATLAB\SupportPackages\R2021a\bin\win64\simulink_plugins\hardwaresupportpkgs\targets\targetHiddenBlkInsert\libmwtargetHiddenBlkInsert.dll+00124341 sl_hmi::DashboardBlock::useLatestValueForValueParam+00032757
[ 3] 0x00007ffbdb500f36 C:\Program Files\Polyspace\R2021a\bin\win64\sl_engine_classes.dll+04198198 slplugin::addCompBdSignal+00019302
[ 4] 0x00007ffbdb1da7f7 C:\Program Files\Polyspace\R2021a\bin\win64\sl_engine_classes.dll+00894967 bdPostEngineEvent_nothrow+00001847
[ 5] 0x00007ffbdb1c69b0 C:\Program Files\Polyspace\R2021a\bin\win64\sl_engine_classes.dll+00813488 ssSetGrBlkMaxFreqHz+00004336
[ 6] 0x00007ffbdb1d60c9 C:\Program Files\Polyspace\R2021a\bin\win64\sl_engine_classes.dll+00876745 slplugin::MasterCompEvent::~MasterCompEvent+00004329
[ 7] 0x00007ffbdb1cad6d C:\Program Files\Polyspace\R2021a\bin\win64\sl_engine_classes.dll+00830829 ssSetGrBlkMaxFreqHz+00021677
[ 8] 0x00007ffbdb1d7760 C:\Program Files\Polyspace\R2021a\bin\win64\sl_engine_classes.dll+00882528 slplugin::ProcessEngineEvent+00000336
[ 9] 0x00007ffbdb1da041 C:\Program Files\Polyspace\R2021a\bin\win64\sl_engine_classes.dll+00892993 bdPostEngineEvent+00000209
[ 10] 0x00007ffbc5caf280 C:\Program Files\Polyspace\R2021a\bin\win64\sl_compile.dll+03469952 SLOutportWithFcnCallInitPassThru::throwErrorOnInvalidICSrc+00002720
[ 11] 0x00007ffbc5cf3dcb C:\Program Files\Polyspace\R2021a\bin\win64\sl_compile.dll+03751371 VarHiddenConnectionInfo::setNIForRemoval+00010315
[ 12] 0x00007ffbc5cf3f88 C:\Program Files\Polyspace\R2021a\bin\win64\sl_compile.dll+03751816 VarHiddenConnectionInfo::setNIForRemoval+00010760
[ 13] 0x00007ffbc5c9722a C:\Program Files\Polyspace\R2021a\bin\win64\sl_compile.dll+03371562 SLCompDiagramImpl+00040618
[ 14] 0x00007ffbc5c8d68a C:\Program Files\Polyspace\R2021a\bin\win64\sl_compile.dll+03331722 SLCompDiagramImpl+00000778
[ 15] 0x00007ffbdcc0d146 C:\Program Files\Polyspace\R2021a\bin\win64\sl_link_bd.dll+01102150 slink::CreateSlModelForLink+00000758
[ 16] 0x00007ffbdcc0ce73 C:\Program Files\Polyspace\R2021a\bin\win64\sl_link_bd.dll+01101427 slink::CreateSlModelForLink+00000035
[ 17] 0x00007ffbdf1c3ee4 C:\Program Files\Polyspace\R2021a\bin\win64\libmwsimulink.dll+15810276 slstSetOutputPortRateID+00130612
[ 18] 0x00007ffbdf1c9d26 C:\Program Files\Polyspace\R2021a\bin\win64\libmwsimulink.dll+15834406 slstSetOutputPortRateID+00154742
[ 19] 0x00007ffbdf1d04a7 C:\Program Files\Polyspace\R2021a\bin\win64\libmwsimulink.dll+15860903 slstSetOutputPortRateID+00181239
[ 20] 0x00007ffbdf20bcf2 C:\Program Files\Polyspace\R2021a\bin\win64\libmwsimulink.dll+16104690 slstSetOutputPortRateID+00425026
[ 21] 0x00007ffbde601022 C:\Program Files\Polyspace\R2021a\bin\win64\libmwsimulink.dll+03477538 ExitPauseInDebuggerMenuSim+00001346
[ 22] 0x00007ffbdedd3706 C:\Program Files\Polyspace\R2021a\bin\win64\libmwsimulink.dll+11679494 SLGlue::simulationStartPauseContinueNARMode+00000182
[ 23] 0x00007ffba4905509 C:\Program Files\Polyspace\R2021a\bin\win64\sl_mi.dll+00349449 SLM3I::mi::initCosSFBlockOpenNotification+00074009
[ 24] 0x00007ffc01b9d42e bin\win64\pgo\mcos_impl.dll+00381998
[ 25] 0x00007ffc01b9c9d5 bin\win64\pgo\mcos_impl.dll+00379349
[ 26] 0x00007ffc01b9c670 bin\win64\pgo\mcos_impl.dll+00378480
[ 27] 0x00007ffc01bdd543 bin\win64\pgo\mcos_impl.dll+00644419 mdMethodListAllFcn+00084595
[ 28] 0x00007ffc01bdd458 bin\win64\pgo\mcos_impl.dll+00644184 mdMethodListAllFcn+00084360
[ 29] 0x00007ffc01bdd33e bin\win64\pgo\mcos_impl.dll+00643902 mdMethodListAllFcn+00084078
[ 30] 0x00007ffc01ba083d bin\win64\pgo\mcos_impl.dll+00395325 mdIsA+00002017
[ 31] 0x00007ffc1fae4630 bin\win64\pgo\m_dispatcher.dll+00083504 Mfh_MATLAB_fn_impl::ensure_loading_of_load_module+00001856
[ 32] 0x00007ffc1fae47b9 bin\win64\pgo\m_dispatcher.dll+00083897 Mfh_MATLAB_fn_impl::dispatch_with_reuse+00000045
[ 33] 0x00007ffbfacfa62e bin\win64\pgo\m_lxe.dll+00370222
[ 34] 0x00007ffbfad7a093 bin\win64\pgo\m_lxe.dll+00893075 MathWorks::lxe::initializeFcn+00521059
[ 35] 0x00007ffc2661f68c bin\win64\pgo\libmx.dll+00652940 matrix::detail::noninlined::mx_array_api::mxFevalFunctionHandle+00000036
[ 36] 0x00007ffc1f9b5a75 bin\win64\pgo\m_interpreter.dll+00154229 mwboost::serialization::singleton<mwboost::serialization::extended_type_info_typeid<MathWorks::ExecutionEvents::UncaughtErrorEvent> >::singleton<mwboost::serialization::extended_type_info_typeid<MathWorks::ExecutionEvents::UncaughtErrorEvent> >+00027445
[ 37] 0x00007ffc1f0f8bea C:\Program Files\Polyspace\R2021a\bin\win64\builtin.dll+00101354 MathWorks::builtin::BuiltinFcn::invoke+00001130
[ 38] 0x00007ffc1faf4b1c bin\win64\pgo\m_dispatcher.dll+00150300 Mfh_MATLAB_fn_impl::dispatch_mf_with_reuse+00000136
[ 39] 0x00007ffc1fae4630 bin\win64\pgo\m_dispatcher.dll+00083504 Mfh_MATLAB_fn_impl::ensure_loading_of_load_module+00001856
[ 40] 0x00007ffc1fae47b9 bin\win64\pgo\m_dispatcher.dll+00083897 Mfh_MATLAB_fn_impl::dispatch_with_reuse+00000045
[ 41] 0x00007ffbfacfa62e bin\win64\pgo\m_lxe.dll+00370222
[ 42] 0x00007ffbfacf6436 bin\win64\pgo\m_lxe.dll+00353334
[ 43] 0x00007ffbfacf638f bin\win64\pgo\m_lxe.dll+00353167
[ 44] 0x00007ffc1f99d550 bin\win64\pgo\m_interpreter.dll+00054608 inCallFcn+00000084
[ 45] 0x00007ffbfae5f126 bin\win64\pgo\m_lxe.dll+01831206 mwboost::archive::detail::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>+00022786
[ 46] 0x00007ffc1f9a26e2 bin\win64\pgo\m_interpreter.dll+00075490 inCallFcnWithTrap+00000098
[ 47] 0x00007ffbade04bc9 C:\Program Files\Polyspace\R2021a\bin\win64\dig.dll+03623881 dig::FunctionInfoToArray+00000649
[ 48] 0x00007ffbaddd121a C:\Program Files\Polyspace\R2021a\bin\win64\dig.dll+03412506 dig::ActionCallback::operator()+00000826
[ 49] 0x00007ffbaddd0efd C:\Program Files\Polyspace\R2021a\bin\win64\dig.dll+03411709 dig::ActionCallback::operator()+00000029
[ 50] 0x00007ffbadcc27d4 C:\Program Files\Polyspace\R2021a\bin\win64\dig.dll+02303956 dig::ActionService::executeActionImpl+00001732
[ 51] 0x00007ffbadcc185f C:\Program Files\Polyspace\R2021a\bin\win64\dig.dll+02299999 dig::ActionService::executeAction+00000287
[ 52] 0x00007ffbadcc1e64 C:\Program Files\Polyspace\R2021a\bin\win64\dig.dll+02301540 dig::ActionService::executeAction+00000388
[ 53] 0x00007ffbade56164 C:\Program Files\Polyspace\R2021a\bin\win64\dig.dll+03957092 dig::View::handleEvent+00001252
[ 54] 0x00007ffbade4dc38 C:\Program Files\Polyspace\R2021a\bin\win64\dig.dll+03923000 dig::ToolStrip::handleEvent+00001704
[ 55] 0x00007ffbadd2a182 C:\Program Files\Polyspace\R2021a\bin\win64\dig.dll+02728322 dig::UDDPropertyAdapter::setPropertyValue+00011682
[ 56] 0x00007ffbadc6b3ab C:\Program Files\Polyspace\R2021a\bin\win64\dig.dll+01946539 dig::config::Widget::Impl::printHierarchy+00101019
[ 57] 0x00007ffbadc5b9f3 C:\Program Files\Polyspace\R2021a\bin\win64\dig.dll+01882611 dig::config::Widget::Impl::printHierarchy+00037091
[ 58] 0x00007ffbadc6f2f0 C:\Program Files\Polyspace\R2021a\bin\win64\dig.dll+01962736 dig::config::Widget::Impl::printHierarchy+00117216
[ 59] 0x00007ffc2054392a C:\Program Files\Polyspace\R2021a\bin\win64\iqm.dll+00801066 iqm::PackagedTaskPlugin::execute+00000074
[ 60] 0x00007ffc1fc5e1ed C:\Program Files\Polyspace\R2021a\bin\win64\mcr.dll+00516589 services::lmgr::exception::LicensingStartupException::~LicensingStartupException+00009613
[ 61] 0x00007ffc205165ec C:\Program Files\Polyspace\R2021a\bin\win64\iqm.dll+00615916 iqm::Iqm::setupIqmFcnPtrs+00106204
[ 62] 0x00007ffc204e71f0 C:\Program Files\Polyspace\R2021a\bin\win64\iqm.dll+00422384 iqm::Iqm::create+00007024
[ 63] 0x00007ffc1f748eaf C:\Program Files\Polyspace\R2021a\bin\win64\libmwbridge.dll+00102063 ioReadLine+00000463
[ 64] 0x00007ffc1f748ca5 C:\Program Files\Polyspace\R2021a\bin\win64\libmwbridge.dll+00101541 ioReadLine+00000165
[ 65] 0x00007ffc1f75a761 C:\Program Files\Polyspace\R2021a\bin\win64\libmwbridge.dll+00173921 mnGetCommandLineBuffer+00000289
[ 66] 0x00007ffc1f75abb7 C:\Program Files\Polyspace\R2021a\bin\win64\libmwbridge.dll+00175031 mnParser+00000487
[ 67] 0x00007ffc1fc63d86 C:\Program Files\Polyspace\R2021a\bin\win64\mcr.dll+00540038 mcr_set_enableReadingFromStdin+00013894
[ 68] 0x00007ffc1fbff5d3 C:\Program Files\Polyspace\R2021a\bin\win64\mcr.dll+00128467 mcrFunctionSignature::set_signature+00107555
[ 69] 0x00007ffc1fc1b550 C:\Program Files\Polyspace\R2021a\bin\win64\mcr.dll+00243024 mcrFunctionSignature::set_signature+00222112
[ 70] 0x00007ffc2054392a C:\Program Files\Polyspace\R2021a\bin\win64\iqm.dll+00801066 iqm::PackagedTaskPlugin::execute+00000074
[ 71] 0x00007ffc1fc5e1ed C:\Program Files\Polyspace\R2021a\bin\win64\mcr.dll+00516589 services::lmgr::exception::LicensingStartupException::~LicensingStartupException+00009613
[ 72] 0x00007ffc205165ec C:\Program Files\Polyspace\R2021a\bin\win64\iqm.dll+00615916 iqm::Iqm::setupIqmFcnPtrs+00106204
[ 73] 0x00007ffc204e84bc C:\Program Files\Polyspace\R2021a\bin\win64\iqm.dll+00427196 iqm::Iqm::create+00011836
[ 74] 0x00007ffc204e7c32 C:\Program Files\Polyspace\R2021a\bin\win64\iqm.dll+00425010 iqm::Iqm::create+00009650
[ 75] 0x00007ffc1fc358fc C:\Program Files\Polyspace\R2021a\bin\win64\mcr.dll+00350460 mcrInstantiationError::operator=+00010428
[ 76] 0x00007ffc1fc364ac C:\Program Files\Polyspace\R2021a\bin\win64\mcr.dll+00353452 mcrInstantiationError::operator=+00013420
[ 77] 0x00007ffc1fc33ac0 C:\Program Files\Polyspace\R2021a\bin\win64\mcr.dll+00342720 mcrInstantiationError::operator=+00002688
[ 78] 0x00007ffc4a419b9a C:\Program Files\Polyspace\R2021a\bin\win64\mwboost_thread-vc142-mt-x64-1_72.dll+00039834 mwboost::thread::swap+00000074
[ 79] 0x00007ffc4fa61bb2 C:\WINDOWS\System32\ucrtbase.dll+00138162 configthreadlocale+00000146
[ 80] 0x00007ffc50437034 C:\WINDOWS\System32\KERNEL32.DLL+00094260 BaseThreadInitThunk+00000020
[ 81] 0x00007ffc52542651 C:\WINDOWS\SYSTEM32\ntdll.dll+00337489 RtlUserThreadStart+00000033
Program State:
Most Recent Simulink Activity:
playSimulationAction : OK in editor 1 at Mon Mar 14 21:04:29 2022
Create Segment : OK in editor 1 at Mon Mar 14 21:04:27 2022
Move : OK in editor 1 at Mon Mar 14 21:04:25 2022
Add Block : OK in editor 1 at Mon Mar 14 21:04:22 2022
Add Block : OK in editor 1 at Mon Mar 14 21:03:47 2022
D : OK in editor 1 at Mon Mar 14 21:03:16 2022
Esc : OK in editor 1 at Mon Mar 14 21:03:15 2022
Most Recent Tool Interaction:
Editor 1: tools idle, class Simulink::GuidePromotionTool is most recently active tool since Mon Mar 14 21:04:27 2022

Tags

No tags entered yet.

Products


Release

R2012b

Community Treasure Hunt

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

Start Hunting!