Issue with MATLAB install: ibmwfoundation_crash_handling.so: cannot enable executable stack as shared object requires: Invalid argument: Success: Success
Accepted Answer
More Answers (4)
1 vote
6 Comments

0 votes
0 votes
4 Comments
1 Comment
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.
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!