Malloc Error with 64-bit Matlab
I have an Intel Xeon with EMT64 extensions that won’t run the x86_64 version of Matlab 7.0R14SP2. It spits back an error *** glibc detected *** malloc(): memory corruption: followed by a location in memory. I tested my RAM with hardware utilities and everything came back fine. It was only after these tests that I discovered this temporary workaround offered by the Mathworks.
In the file $MATLAB/bin/.matlab7rc.sh add the following lines to the beginning:
LD_ASSUME_KERNEL=2.4.1
export LD_ASSUME_KERNEL