Hi all,
I'm getting a
Signal: SIGSEGV: memory access exception
in H5Oget_info_by_name when i used
H5Literate(lockID, H5_INDEX_NAME, H5_ITER_NATIVE, NULL, addGroup, (void *)
&childNames);
with the function
herr_t addGroup(hid_t loc_id, const char *name, const H5L_info_t *info,
void *operator_data)
{
H5O_info_t infobufO;
if (H5Lexists(loc_id, name, H5P_DEFAULT) > 0)
{
if(H5Oexists_by_name(loc_id, name, H5P_DEFAULT) > 0)
{
herr_t validO{H5Oget_info_by_name (loc_id, name, &infobufO,
H5P_DEFAULT)};
....
for a specific case that was sent to me. Looking at the stack for
libhdf5.so.6(H5O_dec_rc+0x13),
libhdf5.so.6(+0x127fa4),
libhdf5.so.6(H5C_protect+0xd3),
libhdf5.so.6(H5AC_protect+0x75),
libhdf5.so.6(H5O_protect+0x18e),
libhdf5.so.6(H5O_get_info+0x59),
libhdf5.so.6(+0xd3196),
libhdf5.so.6(+0xdef4d),
libhdf5.so.6(H5G_traverse+0x96),
libhdf5.so.6(H5G_loc_info+0x2f),
libhdf5.so.6(H5Oget_info_by_name+0xc8),
I know that the Object in question is invalid because when i look at it via
HDFView i see a question mark as shown below.
But HDFView handles this without an exception....any idea how i might do
the same?
T.