matlab-dockerfile icon indicating copy to clipboard operation
matlab-dockerfile copied to clipboard

mpm fails installing - error message "double free or corruption (out)"

Open WDO2 opened this issue 1 year ago • 5 comments

Issue: mpm fails to install Matlab (a suspicious part of the error message is "double free or corruption (out)")

Overview: We use mpm to install Matlab in a docker container (As alternative method we build a .devcontainer which produces basically the same error messages but additionally the hint that "double free or corruption (out)" is an issue.

mpm --version MATLAB Package Manager 2024.2.1

Reproduction Method:

wget -q https://www.mathworks.com/mpm/glnxa64/mpm
chmod +x mpm
./mpm install     --release=r2023a     --destination=/opt/matlab/r2023a     --products MATLAB     || (echo "MPM Installation Failure. See below for more information:" && cat /tmp/mathworks_root.log && false)

(While retrying the pipeline I find that sometimes it passes, hence that command is unstable)

Expected behavior: Matlab should be installed

Error Messages from building a container:

#40 12.03 Products will be installed to: /opt/matlab/r2023a
#40 12.22 Starting install
#40 78.02 Finished install
#40 78.02 Completing setup...
#40 78.74 Installation complete
#40 80.89 MPM Installation Failure. See below for more information:
#40 80.89 (Aug 06, 2024 12:59:34) Starting download of product meta data
#40 80.89 (Aug 06, 2024 12:59:34) Finished downloading product meta data
#40 80.89 (Aug 06, 2024 12:59:38) Starting to retrieve support package metadata
#40 80.89 (Aug 06, 2024 12:59:42) Finished retrieving support package metadata
#40 80.89 (Aug 06, 2024 12:59:42) Starting Install
#40 80.89 (Aug 06, 2024 13:00:48) Completed Install
#40 80.89 (Aug 06, 2024 13:00:48) User provided options:	matlabroot : /opt/matlab/r2023a	runmatlabddux : true	
#40 80.89 (Aug 06, 2024 13:00:48) Starting OS Registration Service for MATLAB
#40 80.89 (Aug 06, 2024 13:00:48) Generating Java class path for /opt/matlab/r2023a
#40 80.89 (Aug 06, 2024 13:00:48) Successfully generated Java class path for /opt/matlab/r2023a
#40 80.89 (Aug 06, 2024 13:00:48) Generating pathdef.m for /opt/matlab/r2023a
#40 80.89 (Aug 06, 2024 13:00:48) Successfully generated pathdef.m for /opt/matlab/r2023a
#40 80.89 (Aug 06, 2024 13:00:48) Calling Manifest cache executable
#40 80.89 (Aug 06, 2024 13:00:48) Successfully called Manifest cache executable
#40 80.89 (Aug 06, 2024 13:00:48) Completed OS Registration Service for MATLAB
#40 80.89 (Aug 06, 2024 13:00:48) Starting Support Package Registration Service
#40 80.89 (Aug 06, 2024 13:00:48) Completed Support Package Registration Service

Error Messages from building a .devcontainer:

13.27 Products will be installed to: /opt/matlab/r2023a
13.47 Starting install
114.3 Finished install
114.3 Completing setup...
115.1 Installation complete
116.9 double free or corruption (out)
117.4 MPM Installation Failure. See below for more information:
117.4 (Aug 07, 2024 07:45:02) Starting download of product meta data
117.4 (Aug 07, 2024 07:45:02) Finished downloading product meta data
117.4 (Aug 07, 2024 07:45:05) Starting to retrieve support package metadata
117.4 (Aug 07, 2024 07:45:10) Finished retrieving support package metadata
117.4 (Aug 07, 2024 07:45:10) Starting Install
117.4 (Aug 07, 2024 07:46:51) Completed Install
117.4 (Aug 07, 2024 07:46:51) User provided options:    matlabroot : /opt/matlab/r2023a runmatlabddux : true
117.4 (Aug 07, 2024 07:46:51) Starting OS Registration Service for MATLAB
117.4 (Aug 07, 2024 07:46:51) Generating Java class path for /opt/matlab/r2023a
117.4 (Aug 07, 2024 07:46:51) Successfully generated Java class path for /opt/matlab/r2023a
117.4 (Aug 07, 2024 07:46:51) Generating pathdef.m for /opt/matlab/r2023a
117.4 (Aug 07, 2024 07:46:51) Successfully generated pathdef.m for /opt/matlab/r2023a
117.4 (Aug 07, 2024 07:46:51) Calling Manifest cache executable
117.4 (Aug 07, 2024 07:46:52) Successfully called Manifest cache executable
117.4 (Aug 07, 2024 07:46:52) Completed OS Registration Service for MATLAB
117.4 (Aug 07, 2024 07:46:52) Starting Support Package Registration Service
117.4 (Aug 07, 2024 07:46:52) Completed Support Package Registration Service

WDO2 avatar Aug 07 '24 08:08 WDO2