Issue with MATLAB install: ibmwfounda​tion_crash​_handling.​so: cannot enable executable stack as shared object requires: Invalid argument: Success: Success

조회 수: 105 (최근 30일)
Hey everyone!
I recently came across a bug on ArchLinux when using MATLAB. Since some time (about last week or 2 weeks ago), everytime I try and startup MATLAB (either from cmd, or application shortcut) I get the following error:
Command `service` threw an exception
Error loading /home/timey/.MathWorks/ServiceHost/-mw_shared_installs/v2025.1.1.2/bin/glnxa64/mathworksservicehost/rcf/matlabconnector/serviceprocess/rcf/service/libmwmshrcfservice.so. libmwfoundation_crash_handling.so: cannot enable executable stack as shared object requires: Invalid argument: Success: Success
I have tried uninstalling (deleting all matlab files from my system) and reinstalling, but nothing works. People in my class had similar problems, and switching to R2025 prerelease seemed to help, however, fro me that is not possible since the install script does not work.
Some additional information about my system:
Kernel: Linux 6.13.3-arch1-1
Host: HP Laptop 15-fc0xxx
OS: Arch Linux x86_64
CPU: AMD Ryzen 7 7730U (16) @ 4.55 GHz
GPU: AMD Barcelo [Integrated]
Memory: 6.14 GiB / 14.97 GiB (41%)
Any help / pointers to a solution would be greatly appreciated! :)
Thank you for reading!

채택된 답변

Timur
Timur 2025년 5월 14일
편집: Timur 2025년 5월 14일
I will post the answer I got from the MathWorks team as the official answer to this problem:
Please know that Arch Linux is not a qualified Linux distro, so MATLAB might or might not run and the developers won't release any hot fix unless this policy changes otherwise in the future.
MATLAB R2024b System Requirements for Linux
https://www.mathworks.com/support/requirements/matlab-linux.html
However, this issue is acknowledged, the error occurred due to the GNU 2.41 (which was recently released) on Arch Linux and there is a fix for it, if you look at some sites such as Arch Wiki.
This command was from such site, please try:
execstack -c /home/ash/.MathWorks/ServiceHost/-mw_shared_installs/v2025.1.1.2/bin/glnxa64/mathworksservicehost/rcf/matlabconnector/serviceprocess/rcf/service/libmwmshrcfservice.so
Then, relaunch MATLAB, if not working, try rebooting the machine.
If it still does not work, I suggest seeking further help from the Arch community, since I won't be able to assist you with this issue ):
Additionally, what originally worked for me was the workaround first posted by @Phillip, which you can find here.
A huge thank you to anyone involved! Lets hope this problem doesn't happen anymore with the release of 2025a :)
  댓글 수: 2
Simon
Simon 2025년 6월 5일
execstack is deprecated and is not available in Debian 12. Is there any alternative solution?
Timur
Timur 2025년 6월 5일
Can you use patchelf? Its also mentioned in the solution. The details are in the forum post linked. Other than that, I dont really know anything about debian, so I wont be of much help :(

댓글을 달려면 로그인하십시오.

추가 답변 (4개)

Raymond Norris
Raymond Norris 2025년 2월 25일
Hi @Timur please contact MathWorks Technical Support to see if this can be resolved.
  댓글 수: 6
Raymond Norris
Raymond Norris 2025년 5월 14일
Hi @Timur please contact me directly and I'll find out what's going on with your ticket.
Timur
Timur 2025년 5월 14일
Hey @Raymond Norris, I just found the response, it landed in spam a while ago. Apologies for the mistake, will delete my response :). Thank you for the help!

댓글을 달려면 로그인하십시오.


Sergio
Sergio 2025년 2월 27일
I have the same problem in Arch Linux

彬迅
彬迅 2025년 2월 28일
Me too!
  댓글 수: 4
Calum
Calum 2025년 3월 19일
편집: Calum 2025년 3월 19일
For me, the issue manifests as "ERROR 5201", and does not give those additional logging details about which libraries are impacted; I had to dive into the service host log files for that.

댓글을 달려면 로그인하십시오.


Norm
Norm 2025년 5월 14일
편집: Norm 2025년 5월 14일
The solution provided fixes the problem for a single user.
Same with the solution in section 3.35 in https://wiki.archlinux.org/title/MATLAB
My system has many users. Is there a solution for all users on the system?
Does R2025a fix the problem?
I'm using Fedora 42 updated to glibc-2.41-5.fc42.x86_64
Thanks!
  댓글 수: 1
Calum
Calum 2025년 5월 14일

The Arch docs imply that R2025a fixes this, which seems likely. To solve the issue for all users on the system, you can run as root

execstack -c /home/*/.MathWorks/ServiceHost/-mw_shared_installs/*/bin/glnxa64/libmwfoundation_crash_handling.so

If you need to handle routinely adding new users, and/or make this solution last through an update to the service host, you can add that command to some of the various scripts which are run when new users are created. Or even just make it a cron job/systemd timer.

I suppose you can also globally change the override tunable glibc.rtld.execstack to be 2, force-enabling an executable stack. This is definitely not great for security, though.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by