Bug#644134: Acknowledgement (libhdf5 cannot open files after NetCDF's nc_close has been called)

Enrico Zini enrico at debian.org
Mon Oct 3 08:22:49 UTC 2011


Hello,

some more info thanks to Mark Hymers:

the culprit seems to be in NetCDF, netcdf/libsrc4/nc4file.c, line 2770:

   if (!numfiles)
   {      
      /* If all files have been closed, close he HDF5 library. This will
       * clean up some stuff that HDF5 is leaving open. */
      if ((retval = H5close()) < 0)
	 return NC_EHDFERR;

      /* Reset the ncid numbers. */
      last_file_id = 0;
   }

Indeed, if in my test case I keep a file open during the whole time, the
error doesn't happen.

According to http://www.hdfgroup.org/HDF5/doc/RM/RM_H5.html#Library-Close,
there is no need for that function to be called, since it's already
hooked into exit().

I'm now reassigning the bug to src:netcdf.


Ciao,

Enrico

-- 
GPG key: 4096R/E7AD5568 2009-05-08 Enrico Zini <enrico at enricozini.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20111003/8da65bcf/attachment.pgp>


More information about the Pkg-grass-devel mailing list