Open WDO2 opened 3 months ago
The error might have occured due to low disc space. However, I would suggest a plausible error message to point the user in the right direction.
While repeating basically the same commands it sometimes succeeds and sometimes fails and reports one or multiple of the following error messages:
double free or corruption (out)
double free or corruption (fasttop)
munmap_chunk(): invalid pointer
free(): invalid pointer
corrupted size vs. prev_size in fastbins
I regard mpm as unstable.
I have the same intermittent issue when using mpm to install MATLAB Toolboxes in an Apptainer build.
Relevant portions of recipe file:
Bootstrap: docker
From: mathworks/matlab:R2022b
# ...
%post
# ...
wget https://www.mathworks.com/mpm/glnxa64/mpm
chmod +x mpm
./mpm install --release=R2022b --products Deep_Learning_Toolbox \
Parallel_Computing_Toolbox \
Statistics_and_Machine_Learning_Toolbox \
Image_Processing_Toolbox
# ...
Error on first try: double free or corruption (fasttop)
Relevant output on second try with the same file:
+ chmod +x mpm
+ ./mpm install --release=R2022b --products Deep_Learning_Toolbox Parallel_Computing_Toolbox Statistics_and_Machine_Learning_Toolbox Image_Processing_Toolbox
Installing with the following parameters:
--doc=false
--release=R2022b
--products=Deep_Learning_Toolbox, Parallel_Computing_Toolbox, Statistics_and_Machine_Learning_Toolbox, Image_Processing_Toolbox
---------------------------------------------
The following required products will also be installed:
MATLAB
The following MathWorks Products are licensed under the The MathWorks, Inc. Software License
Agreement, available in the installation of the MathWorks Product or in the virtual machine image.
Parallel_Computing_Toolbox, Image_Processing_Toolbox, MATLAB, Deep_Learning_Toolbox, Statistics_and_Machine_Learning_Toolbox
Products will be installed to: /usr/local/MATLAB/R2022b
Starting install
Finished install
Completing setup...
Installation complete
Hi @WDO2 and @pcamach2
Thank you for reporting this. We're currently investigating the issue and will keep you updated on our progress.
I have been experiencing the same, but it was caused by lack of disk space. Freeing up space had mpm run successfully again :-)
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.1Reproduction Method:
(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:
Error Messages from building a .devcontainer: