summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-08-13 11:26:16 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-08-13 11:26:16 (GMT)
commit7861784214be442052d7eaf5892e9d4b3debc7aa (patch)
tree779ff5345c20b0ca3bfb6ad21232156cbf613d0b
parent9952cd37fa720bb9fb27df607ad3aaf46eea0a3a (diff)
parentfbe2fc45893cb06f66dd93869a5a12ecf6d02f4d (diff)
downloadhdf5-7861784214be442052d7eaf5892e9d4b3debc7aa.zip
hdf5-7861784214be442052d7eaf5892e9d4b3debc7aa.tar.gz
hdf5-7861784214be442052d7eaf5892e9d4b3debc7aa.tar.bz2
Merge pull request #2757 in HDFFV/hdf5 from ~BYRN/hdf5_adb:hdf5_1_12 to hdf5_1_12
* commit 'fbe2fc45893cb06f66dd93869a5a12ecf6d02f4d': spelling HDFFV-11127 - force RTLD_LOCAL in dlopen
-rw-r--r--release_docs/RELEASE.txt13
-rw-r--r--src/H5PLpkg.h2
2 files changed, 12 insertions, 3 deletions
diff --git a/release_docs/RELEASE.txt b/release_docs/RELEASE.txt
index 1eb1406..b6895db 100644
--- a/release_docs/RELEASE.txt
+++ b/release_docs/RELEASE.txt
@@ -134,10 +134,19 @@ Bug Fixes since HDF5-1.12.0 release
==================================
Library
-------
+ - Explicitly declared dlopen to use RTLD_LOCAL
+
+ dlopen documentation states that if neither RTLD_GLOBAL nor
+ RTLD_LOCAL are specified, then the default behavior is unspecified.
+ The default on linux is usually RTLD_LOCAL while macos will default
+ to RTLD_GLOBAL.
+
+ (ADB - 2020/08/12, HDFFV-11127)
+
- Fixed the segmentation fault when reading attributes with multiple threads
It was reported that the reading of attributes with variable length string
- datatype will crash with segmentation fault particularly when the number of
+ datatype will crash with segmentation fault particularly when the number of
threads is high (>16 threads). The problem was due to the file pointer that
was set in the variable length string datatype for the attribute. That file
pointer was already closed when the attribute was accessed.
@@ -203,7 +212,7 @@ Bug Fixes since HDF5-1.12.0 release
- Fixed configure issue when building HDF5 with NAG Fortran 7.0.
- HDF5 now accounts for the addition of half-precision floating-point
+ HDF5 now accounts for the addition of half-precision floating-point
in NAG 7.0 with a KIND=16.
(MSB - 2020/02/28, HDFFV-11033)
diff --git a/src/H5PLpkg.h b/src/H5PLpkg.h
index 8c2367f..a086a2c 100644
--- a/src/H5PLpkg.h
+++ b/src/H5PLpkg.h
@@ -95,7 +95,7 @@
# define H5PL_HANDLE void *
/* Get a handle to a plugin library. Windows: TEXT macro handles Unicode strings */
-# define H5PL_OPEN_DLIB(S) dlopen(S, RTLD_LAZY)
+# define H5PL_OPEN_DLIB(S) dlopen(S, RTLD_LAZY | RTLD_LOCAL)
/* Get the address of a symbol in dynamic library */
# define H5PL_GET_LIB_FUNC(H,N) dlsym(H,N)