-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1168 #1163 #1162 This PR partially fixes memory leaks in the netcdf-c library, in the ncdump utility, and in some test cases. The netcdf-c library now runs memory clean with the assumption that the --disable-utilities option is used. The primary remaining problem is ncgen. Once that is fixed, I believe the netcdf-c library will run memory clean with no limitations. Notes ----------- 1. Memory checking was performed using gcc -fsanitize=address. Valgrind-based testing has yet to be performed. 2. The pnetcdf, hdf4, and examples code has not been tested. Misc. Non-leak changes 1. Make tst_diskless2 only run when netcdf4 is enabled (issue 1162) 2. Fix CmakeLists.txt to turn off logging if ENABLE_NETCDF_4 is OFF 3. Isolated all my debug scripts into a single top-level directory called debug 4. Fix some USE_NETCDF4 dependencies in nc_test and nc_test4 Makefile.am
- Loading branch information
1 parent
8d5e66e
commit 23f9ef8
Showing
92 changed files
with
979 additions
and
410 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
netcdf test_opaque.nc { | ||
types: | ||
ubyte(*) _bytestring ; | ||
opaque(16) opaque16_t ; | ||
variables: | ||
_bytestring vo1 ; | ||
opaque16_t vo1 ; | ||
|
||
// global attributes: | ||
:_DAP4_Little_Endian = 1UB ; | ||
data: | ||
|
||
vo1 = {1, 35, 69, 103, 137, 171, 205, 239} ; | ||
vo1 = 0X0123456789ABCDEF0000000000000000 ; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
netcdf test_opaque_array.7.nc { | ||
types: | ||
ubyte(*) _bytestring ; | ||
opaque(16) opaque16_t ; | ||
dimensions: | ||
_Anonymous1 = 1 ; | ||
_Anonymous2 = 2 ; | ||
variables: | ||
_bytestring vo2(_Anonymous1, _Anonymous2) ; | ||
opaque16_t vo2(_Anonymous1, _Anonymous2) ; | ||
|
||
// global attributes: | ||
string :_dap4.ce = "/vo2[1][0:1]" ; | ||
:_DAP4_Little_Endian = 1UB ; | ||
data: | ||
|
||
vo2 = | ||
{254, 220, 186, 152, 118, 84, 50, 16}, | ||
{254, 220, 186, 153, 153, 153, 153, 153} ; | ||
0XFEDCBA98765432100000000000000000, 0XFEDCBA99999999990000000000000000 ; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
netcdf test_opaque_array.nc { | ||
types: | ||
ubyte(*) _bytestring ; | ||
opaque(16) opaque16_t ; | ||
dimensions: | ||
d2 = 2 ; | ||
variables: | ||
_bytestring vo2(d2, d2) ; | ||
opaque16_t vo2(d2, d2) ; | ||
|
||
// global attributes: | ||
:_DAP4_Little_Endian = 1UB ; | ||
data: | ||
|
||
vo2 = | ||
{1, 35, 69, 103, 137, 171, 205, 239}, {171, 205, 239, 0, 0, 0, 0, 0}, | ||
{254, 220, 186, 152, 118, 84, 50, 16}, | ||
{254, 220, 186, 153, 153, 153, 153, 153} ; | ||
0X0123456789ABCDEF0000000000000000, 0XABCDEF00000000000000000000000000, | ||
0XFEDCBA98765432100000000000000000, 0XFEDCBA99999999990000000000000000 ; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.