[MINC-users] minc2, hdf5, and shared libraries

Andrew Janke a.janke at gmail.com
Mon Aug 17 08:23:44 EDT 2009


Hi Jim,

> (1) keep the HDF5 library from unloading (not sure how to do this)
> (2) go through the minc2 API code and try to keep the HDF5 library
> from registering the atexit() clean-up function.  The HDF5 function
> H5dont_atexit() exists for this purpose, however I'm not clear about
> the repercussions of doing this, and am also unsure about where best
> to call this function.
> (3) map the minc2 and hdf5 libraries together, so that one cannot be
> unloaded without the other.  I'm not sure what ./configure switches
> might allow me to do this (if any).


As a first off dirty hack I would try:

(4) Either drop back to MINC 1.X or compile MINC2 without HDF support
(configure --disable-minc2) and see if this really is an issue with
HDF or MINC.

Once you know this then I would try removing MINC and seeing if HDF5
breaks in the same way just by itself. If it does then you really only
have one option (1). Or add the call as per (2), I would punt that
there might not be complete memory clean up though.


--
Andrew Janke
(a.janke at gmail.com || http://a.janke.googlepages.com/)
Canberra->Australia    +61 (402) 700 883



More information about the MINC-users mailing list