Commit Graph

23522 Commits

Author SHA1 Message Date
H. Joe Lee
8e3678170e
Remove trailing extra whitespace in hyperlink (#4509) 2024-05-21 11:10:30 -07:00
Allen Byrne
69a4e7d68f
Correct examples tests to just run under dynamic analysis (#4505) 2024-05-21 07:48:47 -07:00
Allen Byrne
89354c0f66
Fix daily-build CI and correct use of *_FOUND settings for filters (#4504) 2024-05-20 14:58:10 -05:00
Dana Robinson
baec5ff88a
Fix/revert a libtool sed hack (#4501)
* Revert "Remove Autotools sed hack (#3848)"

This reverts commit 8b3ffdef30.

* Fix libtool sed cleanup on MacOS

Convert sed -i line to sed > libtool.bak && mv libtool.bak libtool
to avoid non-portable -i option.
2024-05-20 08:37:01 -05:00
vchoi-hdfgroup
757ca525a7
Fix for github Issue #1388 can't delete renamed dense attribute with corder tracking enabled (#4462)
* Fix for github issue #1388: can't delete renamed dense attribute with corder tracking enabled

The problem occurs in step 3(b) below which will delete the attribute with corder x
from the creation order index v2 B-tree.

The rename sequence in H5A__dense_rename() occurs in the following order:
1) The old attribute with corder x was removed from the creation order index v2 B-tree
2) The new renamed attribute was inserted via H5A__dense_insert():
(a) insert the attribute with new name j into the name index v2 B-tree
(b) insert the attribute with corder x into the creation order index v2 B-tree
3) The old attribute was removed via H5A__dense_remove():
(a) remove the attribute with old name k from the name index v2 B-tree
(b) remove the attribute with coorder x from the creation order index v2 B-tree

Fix: deactivate the "corder_bt2_addr" field so that H5A__dense_remove()
won't delete the attribute with corder x from the creation order index v2 B-tree.
2024-05-17 11:05:27 -05:00
Quincey Koziol
74c7cdb2b7
Improve spec. reading superblock into cache (a little) by using v2 size (#4491)
* Improve spec. reading superblock into cache (a little) by using v2 size

Instead of reading the absolute minimal possible, use the likely value of
a v2+ superblock w/8-byte addresses & lengths.
2024-05-17 08:30:30 -05:00
Scot Breitenfeld
510b728ebd
Release asset tarballs with no version filenames (#4494) 2024-05-17 08:26:54 -05:00
vchoi-hdfgroup
6c16791b5a
Fix for github issue #2220. (#4497)
Document the limitation in the Passthrough Conncector section of the VOL Connector Author Guide.
The limitation is posted by Neil in the github issue on Dec 22, 2022.
2024-05-17 08:19:04 -05:00
Allen Byrne
712ca2e7e4
Only one version of binaries is produced for platforms (#4496) 2024-05-17 08:15:51 -05:00
Allen Byrne
22253a9282
Remove unnecessary fortran install (#4498) 2024-05-17 08:14:51 -05:00
Quincey Koziol
2c2e39c72f
Disable EOF checks for SWMR readers in more cases. (#4489)
Fixes a race condition where the reader opens the file and sets its EOF from the
file's size (from the stat() call in the driver open callback).  Then, before
the reader can read the file's superblock, a SWMR writer races in, extends the
file, and closes the file, writing an updated superblock with the 'writer' and
'SWMR writer' flags in the superblock off (appropriately).  Then the reader
proceeds to read the superblock, and flags the EOF as wrong.  Taking out the
check for the 'writer' and 'SWMR writer' flags will cause SWMR readers to avoid
flagging the file as incorrect.
2024-05-15 13:55:30 -05:00
bmribler
773d6f970f
Add a missing image from the original document (#4490) 2024-05-15 13:54:48 -05:00
Neil Fortner
6203a4455e
Properly clean up cache when failing to load an object header (#4477)
* Properly clean up cache when failing to load an object header

* Don't check message type a second time in H5G__open_oid if the first attempt returns error

* Add more asserts to H5O__assert() to avoid segfaults

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-14 12:18:35 -05:00
Scot Breitenfeld
fe0df13115
Add H5fortkit dependecy for H5Rff.F90 (#4482) 2024-05-14 11:10:43 -05:00
Allen Byrne
70ed0533a9
Remove env step not used by CI in testing (#4476) 2024-05-13 09:09:25 -07:00
Scot Breitenfeld
559f28a7c4
point to HDFGroup repository (#4480) 2024-05-13 09:04:57 -07:00
vchoi-hdfgroup
8817b5b424
Fix github issue #2523: doxygen -- fix grammatically incorrect sentence alias (#4474) 2024-05-13 07:55:22 -05:00
Julien Schueller
ea76013648
H5Group: Fix operator= (#4473)
Closes #4472
2024-05-10 16:30:19 -05:00
jhendersonHDF
ac7b5ce314
Fix an issue where compound datatype member IDs can be leaked during conversion (#4459)
Also fixes issues with handling of partially initialized datatypes during library shutdown
2024-05-10 16:28:53 -05:00
Allen Byrne
f17ca5689e
Update for blosc2 in plugins and prefix hdf5 cmake varnames (#4468) 2024-05-10 13:01:28 -05:00
Julien Schueller
239d2f849d
CMake: Fix mingw/fortran build (#4466) 2024-05-10 12:33:55 -05:00
bmribler
18321dee40
Fix typo in H5Rget_obj_type (#4470)
Issue GH-1723
2024-05-09 13:20:17 -07:00
Quincey Koziol
2b5769e2a2
Refactor error handling code to eliminate internal ID calls (#4453)
All calls to the H5I routines are now made in API routines (sometimes in
FUNC_ENTER/LEAVE_* macros), except for some calls to H5E_clear_stack() within
the library, but I'm planning to remove those over time.

Also, made all the library internal error messages into static const variables,
instead of malloc'ing them, which means that they can just be referenced
and not copied.

Several new and updated auto-generated header files were necessary to enable
this.
2024-05-09 07:41:57 -07:00
Julien Schueller
c2099d0e70
win32defs: Fix Wundef warning (#4467) 2024-05-09 07:38:08 -07:00
Allen Byrne
9ad5f7e3a9
Use ADD_H5_ERR_TEST to not compare output (#4464) 2024-05-06 16:33:09 -05:00
bmribler
815453a78f
Fix typo in H5Rget_obj_type (#4463)
Issue GH-1723
2024-05-06 08:32:02 -05:00
Allen Byrne
ea3a3a25f1
Remove use of err files in autotools test scripts (#4461) 2024-05-06 08:31:39 -05:00
jhendersonHDF
6114d1adfb
Fixes and cleanup for ph5diff (#4460)
* Fixes and cleanup for ph5diff

Fixes concurrency issues in ph5diff that can cause interleaved
output

Fixes an issue where output can sometimes be dropped if it ended
up in ph5diff's output overflow file

Fixes an issue where MPI_Init is called after HDF5 has been
initialized, preventing the library from setting up an MPI
attribute to perform cleanup on MPI_Finalize

Fixes an issue in config/cmake/runTest.cmake where the CMake
logic would try to access an invalid list index if the number
of lines in a test's output and reference files don't match

* Add release note
2024-05-03 15:00:15 -05:00
Quincey Koziol
e4f079e27b
Clean up memory leaks in t_vfd (#4457) 2024-05-03 03:31:38 -07:00
Quincey Koziol
63fcd583d0
Removed "function/code stack" debugging configure option (#4454)
Easily replaced w/third-party tools, e.g. libbacktrace
(https://github.com/ianlancetaylor/libbacktrace)
2024-05-03 03:30:45 -07:00
Allen Byrne
1b6ae84d15
Convert ERR test to use grep (#4451)
* Convert ERR test to use grep
* Eliminate use of .err files in CMake
* Show error output if grep fails
* Turn off cuda in NVHPC CI
2024-05-03 03:29:53 -07:00
Scot Breitenfeld
dfc6295c1d
Fixed failures with xl compilers. (#4458)
* type cast constant

* fixed return types
2024-05-02 15:33:20 -05:00
dependabot[bot]
0da5af4737
Bump the github-actions group with 3 updates (#4455)
Bumps the github-actions group with 3 updates: [actions/download-artifact](https://github.com/actions/download-artifact), [peaceiris/actions-gh-pages](https://github.com/peaceiris/actions-gh-pages) and [github/codeql-action](https://github.com/github/codeql-action).


Updates `actions/download-artifact` from 4.1.4 to 4.1.7
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](c850b930e6...65a9edc588)

Updates `peaceiris/actions-gh-pages` from 3.9.3 to 4.0.0
- [Release notes](https://github.com/peaceiris/actions-gh-pages/releases)
- [Changelog](https://github.com/peaceiris/actions-gh-pages/blob/main/CHANGELOG.md)
- [Commits](373f7f263a...4f9cc6602d)

Updates `github/codeql-action` from 3.24.9 to 3.25.3
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](1b1aada464...d39d31e687)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: peaceiris/actions-gh-pages
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-02 05:33:32 -07:00
Quincey Koziol
76211b2c81
Fix bug in MPI-IO VFD (#4456)
Corrects incorrect usage of the vector_was_sorted parameter in H5FD__mpio_vector_build_types()
2024-05-02 05:23:52 -07:00
H. Joe Lee
eeaee6df62
Fix grammar in VOL guide (#4452) 2024-05-02 05:06:45 -07:00
bmribler
fa4f48d1e4
Fix heap-buffer-overflow in H5Fio.c (#4450)
The buffer size for checksum was smaller than H5_SIZEOF_CHKSUM, causing an
overflow while calculating the offset to the checksum in the buffer.

A check was added so H5F_get_checksums would fail appropriately in all
of its occurrences.

Fix gh-4434
2024-05-01 05:42:22 -07:00
Scot Breitenfeld
abf8b01f55
H5R Fortran wrappers and misc. H5R API/DOC updates (#4446)
- Add Fortran H5R APIs:
      h5rcreate_attr_f, h5rcreate_object_f, h5rcreate_region_f,
      h5ropen_attr_f, h5ropen_object_f, h5ropen_region_f,
      h5rget_file_name_f, h5rget_attr_name_f, h5rget_obj_name_f,
      h5rcopy_f, h5requal_f, h5rdestroy_f, h5rget_type_f

    - Fixed function H5Requal actually to compare the reference pointers

      Fixed an issue with H5Requal always returning true because the
      function was only comparing the ref2_ptr to itself.
2024-05-01 05:39:01 -07:00
vchoi-hdfgroup
b23affc2a6
Fix for github issue #3790: infinite loop closing library (#4445)
* Fix for github issue #3790: infinite loop closing library
Cause of the problem:
When h5dump tries to open the user provided test file, the metadata cache will
call the "get_final_load_size" callback to find out the actual size of the
the root object header.  The callback function will call
H5O__prefix_deserialize() to allocate space for the object header
data structure (via H5FL_CALLOC) and to deserialize the object header prefix
in order to find the actual size of the object header.
The metadata cache will then check whether the actual size obtained
will exceed the file's EOA.
Since the actual size obtained from the test file exceeds the EOA,
the metadata cache throws an error and return.
However, the oh structure that was allocated in H5O__prefix_deserialize()
was not freed and hence causing the problem described in this issue.
Fix:
1) Deallocate the oh structure after obtaining and saving the needed
information in udata which will be used later on in the "verify_chksum" callback.
2) Deserialize the object header prefix in the "object header's
"deserialize" callback regardless.  The original coding intends to keep the
deserialized prefix so that the object header's "deserialize" callback
does not need to deserialize the prefix again if the object header is coming
through the "get_final_load_size" callback.
2024-04-30 07:21:08 -05:00
Allen Byrne
667b607ca0
Add navigate chapters and use release_docs in Learn Basics (#4441) 2024-04-29 07:37:15 -05:00
Allen Byrne
1d3b22456c
sanitizer flags need set before compiler flags (#4444) 2024-04-27 10:14:03 -05:00
Quincey Koziol
5df6391246
Add support for builtin_expect compiler hint (#4425)
* Add support for __builtin_expect extension

And H5_LIKELY / H5_UNLIKELY macros to wrap it

Signed-off-by: Quincey Koziol <quincey@koziol.cc>

* Committing clang-format changes

---------

Signed-off-by: Quincey Koziol <quincey@koziol.cc>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-25 16:33:47 -05:00
Quincey Koziol
603f8b1f6b
Start refactoring H5E code to avoid using IDs internally (#4427) 2024-04-25 11:33:11 -07:00
Quincey Koziol
0ce1a96b4e
Don't print thread ID when the library isn't multithreaded. (#4428)
Corresponding changes to make error output for regression tests agnostic
to thread setting.

Signed-off-by: Quincey Koziol <quincey@koziol.cc>
2024-04-24 08:32:28 -07:00
H. Joe Lee
2a41324b59
Fix broken links in VOL API table (#4438) 2024-04-24 08:30:16 -07:00
jhendersonHDF
3876299d75
Split H5Tconv.c into modules by type (#4393)
* Split H5Tconv.c into modules by type

* Add new H5Tconv headers to list of private headers
2024-04-22 12:23:13 -07:00
Dana Robinson
0394b03f66
Allow clang-format to format H5Cpkg.h (#4429)
Co-authored-by: Larry Knox <lrknox@hdfgroup.org>
2024-04-20 17:11:33 -05:00
Larry Knox
1dc8aed9b6
Fixing string in RELEASE_PROCESS.md that is causing a doxygen error - (#4430)
Unsupported xml/html tag <n> found.
2024-04-20 15:36:34 -05:00
H. Joe Lee
ed10a4714b
Lowercase in File Format Specification (#4424) 2024-04-20 12:04:04 -05:00
Glenn Song
3bf963b87d
Add release process markdown file (#4312) 2024-04-20 07:10:52 -05:00
Larry Knox
1d1c040544
Updates for release_docs/NEWSLETTER.txt. (#4423) 2024-04-19 09:03:07 -07:00