nexusformat / code

NeXus API code and helper applications
GNU Lesser General Public License v2.1
12 stars 16 forks source link

Java API crashing in NXclose under rhel7 64 bit #442

Closed mkoennecke closed 7 years ago

mkoennecke commented 7 years ago

When running the jnexus native Java API from within an eclipse application the whole lot crashes on me. It complains about a duplicate free in NXclose in libNeXus. I did some printf debugging and the culpable line is the one reading killFileStack() in NXclose. What I checked so far:

mkoennecke commented 7 years ago

I finally got to the bottom of this. It was a missing nxclosedata() in my eclipse application mode. The hdf5 failed to close the file properly and then the whole lot crashed. This was so difficult to find because eclipse was hiding error messages. Only when I enabled debugging statements in NexusFile.c and had the object count printed in napi5.c:NX5close the problem became visible.