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 Fix up documentation to replace old auth documentation 2017-08-20 18:27:48 -06:00
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 Cleaned up best practices document. 2016-05-09 20:42:35 -06:00
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 Additional dead link modification. 2016-01-15 14:39:32 -07:00
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 More doxygen tweaks. 2016-01-15 12:23:56 -07:00
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 Fix pull request https://github.com/Unidata/netcdf-c/pull/374 (dap4.dmh) 2017-04-03 21:39:44 -06:00
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 Fix doxygen list 2015-06-08 10:20:50 -06:00
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 Rolled known problems into generated documentation, and cleaning up broken links. 2015-09-23 13:49:06 -06:00
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 Fix spelling errors. 2016-08-28 15:45:36 +02:00
notes.md More document reorganization. 2015-03-15 15:29:58 -06:00
OPeNDAP.dox Modify DAP2 and DAP4 to optionally allow Fillvalue/Variable mismatch 2018-10-01 15:51:43 -06:00
release_header.html Added release to release header. 2016-11-21 11:23:02 -07:00
release.css Tweaks to css 2016-01-21 11:19:23 -07:00
tests.md Added a document to catalog what the various tests are. 2016-06-06 14:51:57 -06:00
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