MATLAB: Does using the HDF5INFO function twice cause MATLAB 7.0.4 (R14SP2) to crash on Redhat Linux

hdf5infohdf5readhdf5writelinuxMATLAB

When I use the HDF5INFO function twice, MATLAB 7.0.4 (R14SP2) crashes and generates the following error log:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x42073770 during VM shutdown
Function=__libc_free+0x70
Library=/lib/tls/libc.so.6
Dynamic libraries:
08048000-0804b000 r-xp 00000000 03:02 3015344 /usr/local/matlab7/bin/glnx86/MATLAB
0804b000-0804d000 rw-p 00002000 03:02 3015344 /usr/local/matlab7/bin/glnx86/MATLAB
40000000-40015000 r-xp 00000000 03:02 2277389 /lib/ld-2.3.2.so
40015000-40016000 rw-p 00014000 03:02 2277389 /lib/ld-2.3.2.so
40017000-40084000 r-xp 00000000 03:02 3015479 /usr/local/matlab7/bin/glnx86/libut.so
40084000-40098000 rw-p 0006c000 03:02 3015479 /usr/local/matlab7/bin/glnx86/libut.so
400b4000-400f3000 r-xp 00000000 03:02 3015471 /usr/local/matlab7/bin/glnx86/libmx.so
400f3000-400fd000 rw-p 0003e000 03:02 3015471 /usr/local/matlab7/bin/glnx86/libmx.so
400fe000-4017a000 r-xp 00000000 03:02 3015457 /usr/local/matlab7/bin/glnx86/libmwservices.so
4017a000-40189000 rw-p 0007b000 03:02 3015457 /usr/local/matlab7/bin/glnx86/libmwservices.so
40194000-401c0000 r-xp 00000000 03:02 3015423 /usr/local/matlab7/bin/glnx86/libmwjmi.so
401c0000-401cb000 rw-p 0002b000 03:02 3015423 /usr/local/matlab7/bin/glnx86/libmwjmi.so
401cc000-4024a000 r-xp 00000000 03:02 3015401 /usr/local/matlab7/bin/glnx86/libmwbridge.so
4024a000-40256000 rw-p 0007d000 03:02 3015401 /usr/local/matlab7/bin/glnx86/libmwbridge.so
4025e000-40271000 r-xp 00000000 03:02 3015443 /usr/local/matlab7/bin/glnx86/libmwmcr.so
40271000-40275000 rw-p 00012000 03:02 3015443 /usr/local/matlab7/bin/glnx86/libmwmcr.so
40275000-40282000 r-xp 00000000 03:02 3015449 /usr/local/matlab7/bin/glnx86/libmwmvalue.so
<snip>

Best Answer

This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
This bug has been fixed in MATLAB 7.1 (R14SP3). If you are using a previous version please read the following:
We have verified that there is a bug in MATLAB 7.0.4 (R14SP2) when using the HDF5 format-related commands (HDF5WRITE, HDF5INFO, etc.) on Redhat Linux.
To work around this issue, download the attached version of the MEX-files. Here are the required steps:
1. Quit MATLAB
2. Rename the following library files to libhdf5.so.old, hdf5writec.mexglx.old, hdf5readc.mexglx.old, and hdf5infoc.mexglx.old respectively:
$MATLAB/bin/glnx86/libhdf5.so
$MATLAB/toolbox/matlab/imagesci/private/hdf5writec.mexglx
$MATLAB/toolbox/matlab/imagesci/private/hdf5readc.mexglx
$MATLAB/toolbox/matlab/imagesci/private/hdf5infoc.mexglx
(where $MATLAB is the MATLAB root directory on your machine, as returned by typing
matlabroot
at the MATLAB command prompt.)
3. Download the attached files. Place the new files in the same directories mentioned in step 2.
4. Restart MATLAB
5. After restarting MATLAB, issue the following command at the MATLAB prompt:
rehash toolboxcache