Hi,

I had a user recently report crash when using the CORE file driver
with backing store, with HDF5 1.8.7 on OS X (10.6).  The Python
snippet used to create the file was:

import h5py
import numpy as np

bs = 1024 * 1024
f = h5py.File('myfile.hdf5', driver='core', backing_store=True)
for ct in range(2000):
    print ct
    dset = f.create_dataset("MyDataset%d" % ct, (bs ,), 'd')
    dset[...] = np.random.uniform(0, 1, (bs,))

resulting in:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x000000000000052c
0x00000001004de76e in H5F_close (f=0x1014d8e20) at H5F.c:1754
1754        if(f->shared->fc_degree == H5F_CLOSE_SEMI) {
(gdb) where
#0  0x00000001004de76e in H5F_close (f=0x1014d8e20) at H5F.c:1754
#1  0x0000000100538e6b in H5I_clear_type (type=<value temporarily
unavailable, due to optimizations>, force=0, app_ref=0) at H5I.c:599

(gdb) p f
$1 = (H5F_t *) 0x1014d8e20
(gdb) p f->shared
$2 = (H5F_file_t *) 0x0
(gdb)

I've been over the Python side and can't find anything obviously wrong
in h5py. Unfortunately I am also having problems reproducing it on my
setup.  Have there been any reports of problems when closing CORE
files?

Andrew

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to