Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V4.6.2 release branch.wif #1201

Merged
merged 17 commits into from
Nov 15, 2018
Merged

V4.6.2 release branch.wif #1201

merged 17 commits into from
Nov 15, 2018

Conversation

WardF
Copy link
Member

@WardF WardF commented Nov 14, 2018

Final push for 4.6.2 release, will be merging a couple more things into this and then off to 4.7.

WardF and others added 8 commits November 5, 2018 15:09
If not building shared libraries, then the RPATH handling should not be specified.  Although ignored on some compilers, the CRAY / Intel compiler will error out when installing the NetCDF executables if the RPATH settings are enabled.
Removes extra argument to match function prototype in `NC_Dispatch` as described in #1196
@WardF WardF added this to the 4.7.0 milestone Nov 14, 2018
@WardF WardF self-assigned this Nov 14, 2018
WardF and others added 8 commits November 15, 2018 09:56
This is a follow up to PR #1173

Sorry that it is so big, but leak suppression can be complex.

This PR fixes all remaining memory leaks -- as determined by
-fsanitize=address, and with the exceptions noted below.

Unfortunately. there remains a significant leak that I cannot
solve. It involves vlens, and it is unclear if the leak is
occurring in the netcdf-c library or the HDF5 library.

I have added a check_PROGRAM to the ncdump directory to show the
problem.  The program is called tst_vlen_demo.c To exercise it,
build the netcdf library with -fsanitize=address enabled. Then
go into ncdump and do a "make clean check".  This should build
tst_vlen_demo without actually executing it.  Then do the
command "./tst_vlen_demo" to see the output of the memory
checker.  Note the the lost malloc is deep in the HDF5 library
(in H5Tvlen.c).

I am temporarily working around this error in the following way.
1. I modified several test scripts to not execute known vlen tests
   that fail as described above.
2. Added an environment variable called NC_VLEN_NOTEST.
   If set, then those specific tests are suppressed.

This should mean that the --disable-utilities option to
./configure should not need to be set to get a memory leak clean
build.  This should allow for detection of any new leaks.

Note: I used an environment variable rather than a ./configure
option to control the vlen tests. This is because it is
temporary (I hope) and because it is a bit tricky for shell
scripts to access ./configure options.

Finally, as before, this only been tested with netcdf-4 and hdf5 support.
@WardF
Copy link
Member Author

WardF commented Nov 15, 2018

This pull request introduces 1 alert and fixes 1 when merging 9e1a856 into 95a3802 - view on LGTM.com

new alerts:

  • 1 for Short global name

fixed alerts:

  • 1 for Comparison result is always the same

Comment posted by LGTM.com

@WardF
Copy link
Member Author

WardF commented Nov 15, 2018

This pull request fixes 1 alert when merging 9dd9a19 into 95a3802 - view on LGTM.com

fixed alerts:

  • 1 for Comparison result is always the same

Comment posted by LGTM.com

@WardF WardF merged commit 572121d into master Nov 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants