Commit Graph

5951 Commits

Author SHA1 Message Date
Ward Fisher
ce78cf2d73
Merge branch 'master' into MT-for-MSVC-release 2018-11-15 15:49:05 -07:00
Ward Fisher
572121d3dc
Merge pull request #1201 from Unidata/v4.6.2-release-branch.wif
V4.6.2 release branch.wif
2018-11-15 14:12:40 -07:00
Ward Fisher
9dd9a19142 Merge remote-tracking branch 'origin/ncgenmem.dmh' into v4.6.2-release-branch.wif 2018-11-15 10:51:59 -07:00
Ward Fisher
9e1a8565c2 Merge branch 'tmptmp' into v4.6.2-release-branch.wif 2018-11-15 10:32:18 -07:00
Ward Fisher
462bfbe15f Corrected whitespace issue on OSX 2018-11-15 10:32:07 -07:00
Dennis Heimbigner
b89e3f50d0 Fix introduced alert https://lgtm.com/projects/g/Unidata/netcdf-c/rev/pr-5fdf9cb537c1a981abb3838fdfb061b1088636f0
by removing offending, unused global variable.
2018-11-15 10:31:36 -07:00
Ward Fisher
53dc9022be Merge remote-tracking branch 'origin/ncgenmem.dmh' into tmptmp 2018-11-15 10:20:08 -07:00
Ward Fisher
6de931cec2 Merge branch 'fix_warnings' of https://github.com/gsjaardema/netcdf-c into v4.6.2-release-branch.wif 2018-11-15 10:02:52 -07:00
Ward Fisher
907ed8d95f
Merge branch 'master' into fix_warnings 2018-11-15 10:02:09 -07:00
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
Ward Fisher
b0b87b6fd4 Merge branch 'patch-28' of https://github.com/gsjaardema/netcdf-c into v4.6.2-release-branch.wif 2018-11-15 09:56:16 -07:00
Ward Fisher
619f0f1bdf
Merge branch 'master' into patch-28 2018-11-14 13:16:24 -07:00
Ward Fisher
bec178002a Merge branch 'patch-27' of https://github.com/gsjaardema/netcdf-c into v4.6.2-release-branch.wif 2018-11-14 11:29:07 -07:00
Ward Fisher
e9626207ad
Merge branch 'master' into patch-27 2018-11-14 11:14:41 -07:00
Ward Fisher
57847bb5cf Merge remote-tracking branch 'origin/ncgenjava.dmh' into v4.6.2-release-branch.wif 2018-11-14 11:10:16 -07:00
Greg Sjaardema
cd011cd1bb Eliminate compiler warnings (and code error) 2018-11-14 11:00:47 -07:00
Greg Sjaardema
a519c12f52
Remove extra argument
Removes extra argument to match function prototype in `NC_Dispatch` as described in #1196
2018-11-14 10:35:58 -07:00
Ward Fisher
95a3802fd5
Merge branch 'master' into ejh_test_output 2018-11-12 16:58:55 -07:00
Ward Fisher
8cb325c33c
Merge pull request #1191 from Unidata/v4.6.2-release-branch.wif
V4.6.2 release branch.wif
2018-11-12 16:55:38 -07:00
Ward Fisher
ff7a461789 Triggering re-run of TravisCI 2018-11-12 16:06:50 -07:00
Ward Fisher
da09e1367a Merge branch 'ejh_next_6' of https://github.com/NetCDF-World-Domination-Council/netcdf-c into v4.6.2-release-branch.wif 2018-11-12 14:19:42 -07:00
Ward Fisher
447e37a90f Merge remote-tracking branch 'origin/gh1183.dmh' into v4.6.2-release-branch.wif 2018-11-12 14:16:40 -07:00
Ward Fisher
129e874c30 Merge branch 'gh1182.wif' into v4.6.2-release-branch.wif 2018-11-12 14:15:41 -07:00
Ed Hartnett
825047b8f6 rest of moving HDF5 specific group info to libhdf5 2018-11-12 14:04:17 -07:00
Ed Hartnett
79c2f843d8 rest of hdf5 specific group changes 2018-11-12 13:57:04 -07:00
Ed Hartnett
971b16cdc8 hdf5 specific changes for hdf5open.c 2018-11-12 13:51:08 -07:00
Ed Hartnett
766f1d0195 hdf5-specific changes for hdf5grp.c 2018-11-12 13:43:43 -07:00
Ed Hartnett
902ee64ff0 hdf5-specific group stuff for hdf5attr.c 2018-11-12 13:38:11 -07:00
Ed Hartnett
261c7fb8d6 hdf5-specific group info for nc4info.c 2018-11-12 13:06:15 -07:00
Ed Hartnett
9c3a8cb2c5 hdf5-specific group stuff in hdf5var.c 2018-11-12 13:01:54 -07:00
Dennis Heimbigner
3ad02fe94f Fix failure in the nccopy -c option
re: https://github.com/Unidata/netcdf-c/issues/1183

Changes:
1. fix typo in nccopy.1 man page
2. fix chunkspec parsing for -c so that "-c var:"
   (with no chunkspec arguments) disables chunking
   on the specified variable
3. Add test case to ncdump/tst_nccopy5.sh
2018-11-12 12:59:56 -07:00
Ed Hartnett
5c7fc1fb55 HDF5-specific group changes 2018-11-12 12:52:24 -07:00
Ed Hartnett
e74009c708 HDF5-specific group changes 2018-11-12 12:32:21 -07:00
Ed Hartnett
c59d6930f0 HDF5-specific group changes 2018-11-12 12:12:56 -07:00
Ed Hartnett
65bde4878b HDF5-specific group changes 2018-11-12 11:03:00 -07:00
Ed Hartnett
d6c5e1f127 HDF5-specific group changes 2018-11-12 10:48:24 -07:00
Ed Hartnett
17552b7eb3 HDF5-specific group changes 2018-11-12 10:37:06 -07:00
Ed Hartnett
6b75bb483b allocating HDF5-specific group info struct for root group 2018-11-12 09:02:46 -07:00
Ed Hartnett
9364157a9b allocating and freeing memory for HDF5-specific group info 2018-11-12 08:11:06 -07:00
Ed Hartnett
c35aa3ccb9 changed header files to separate HDF5-specific grp info 2018-11-12 07:40:15 -07:00
Ward Fisher
77be69eddf Merge branch 'ejh_config' of https://github.com/NetCDF-World-Domination-Council/netcdf-c into v4.6.2-release-branch.wif 2018-11-09 14:20:11 -07:00
Ward Fisher
807f79332e Merge branch 'ejh_install_docs' of https://github.com/NetCDF-World-Domination-Council/netcdf-c into v4.6.2-release-branch.wif 2018-11-09 14:19:20 -07:00
Ward Fisher
558c99a0c9 Merge branch 'ejh_release_announcements' of https://github.com/NetCDF-World-Domination-Council/netcdf-c into v4.6.2-release-branch.wif 2018-11-09 14:18:54 -07:00
Ed Hartnett
a33655d916 fixed typo 2018-11-09 11:04:47 -07:00
Ed Hartnett
aac0d6c467 minor doc change 2018-11-09 09:35:15 -07:00
Ed Hartnett
aff2aa9341 added release notes 2018-11-09 09:01:30 -07:00
Ed Hartnett
50bda41b6b fixed dap configure issue 2018-11-09 08:45:27 -07:00
Ed Hartnett
e3f2c6811f fixed dap configure issue 2018-11-09 07:39:12 -07:00
Ed Hartnett
c62804f1f2 whitespace issues 2018-11-09 05:48:30 -07:00
Ed Hartnett
c3d5c43662 fixed test output 2018-11-09 05:45:29 -07:00