netcdf-c/docs
Dennis Heimbigner 751300ec59 Fix more memory leaks in netcdf-c library
This is a follow up to PR https://github.com/Unidata/netcdf-c/pull/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.
2018-11-15 10:00:38 -07:00
..
images
obsolete Misc. source comment typos 2018-04-26 23:04:01 -04:00
old More replacement of "parallel-netcdf" with "PnetCDF". 2018-09-20 11:45:25 -05:00
static-pages Use PnetCDF instead of parallel-netcdf to avoid confusion with 2018-09-17 17:18:48 -05:00
.gitignore
all-error-codes.md introduce error code NC_EPNETCDF for errors at PnetCDF level 2018-07-29 15:33:08 -05:00
architecture.dox Use PnetCDF instead of parallel-netcdf to avoid confusion with 2018-09-17 17:18:48 -05:00
attribute_conventions.md There was a request to extend the provenance information 2018-08-25 21:44:41 -06:00
auth.html Misc. source comment typos 2018-04-26 23:04:01 -04:00
auth.md The pr does some cleanup on the internal documentation 2018-06-29 15:06:27 -06:00
bestpractices.md
building-with-cmake.md
cdl.dox Misc. source comment typos 2018-04-26 23:04:01 -04:00
CMakeLists.txt Fix more memory leaks in netcdf-c library 2018-11-15 10:00:38 -07:00
COPYRIGHT.dox
credits.md
DAP2.dox Modify DAP2 and DAP4 to optionally allow Fillvalue/Variable mismatch 2018-10-01 15:51:43 -06:00
DAP4.dox Fix more memory leaks in netcdf-c library 2018-11-15 10:00:38 -07:00
DAP4.md Fix more memory leaks in netcdf-c library 2018-11-15 10:00:38 -07:00
dispatch.dox
docmap.pdf
Doxyfile.developer Recreating 4.6.2 release branch. 2018-10-22 16:52:07 -06:00
Doxyfile.in Added DAP4.dox to doxygen template in support of https://github.com/Unidata/netcdf-c/issues/1178 2018-11-07 11:19:57 -07:00
DoxygenLayout.xml
esg.md
FAQ.md add missing note about CDF-5 format 2018-07-05 22:54:41 -05:00
file_format_specifications.md Misc. source comment typos 2018-04-26 23:04:01 -04:00
filters.md Fix memory problems when using HDF5 version 1.10.x and later. 2018-10-04 11:37:21 -06:00
footer.html
groups.dox
guide.dox Fix more memory leaks in netcdf-c library 2018-11-15 10:00:38 -07:00
header.html
indexing.dox The pr does some cleanup on the internal documentation 2018-06-29 15:06:27 -06:00
inmeminternal.dox Fix the NC_INMEMORY code to work in all cases with HDF5 1.10. 2018-09-04 11:27:47 -06:00
inmemory.md Revert/Improve nc_create + NC_DISKLESS behavior 2018-10-10 13:32:17 -06:00
install-fortran.md
install.md fixed typo 2018-11-09 11:04:47 -07:00
internal.dox Use PnetCDF instead of parallel-netcdf to avoid confusion with 2018-09-17 17:18:48 -05:00
known_problems.md
mainpage.dox Corrected links to cdash dashboard. 2017-12-20 12:37:02 -07:00
Makefile.am Fix more memory leaks in netcdf-c library 2018-11-15 10:00:38 -07:00
netcdf-50x50.png
netcdf.m4
notes.md
OPeNDAP.dox Modify DAP2 and DAP4 to optionally allow Fillvalue/Variable mismatch 2018-10-01 15:51:43 -06:00
release_header.html
release.css
tests.md
testserver.dox Doxygen is apparently buggy when trying to combine a markdown 2018-07-01 21:56:59 -06:00
tutorial.dox Merge branch 'master' into var_par_access 2018-07-26 01:35:39 -05:00
types.dox add missing note about CDF-5 format 2018-07-05 22:54:41 -05:00
unidata_logo_cmyk.png
user_defined_formats.md Add warning about user formats 2018-07-13 11:47:58 -06:00
windows-binaries.md Corrected an incorrect download link for Windows NC3-only binary 2017-11-20 13:43:16 -07:00