-
Notifications
You must be signed in to change notification settings - Fork 266
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
nc_test/run_diskless2.sh test failure with classic build of current master in --enable-large-file-tests builds on 64-bit machines #1162
Comments
@DennisHeimbigner this still fails, even with the changes on your branch. When I run this on my machine, I have to change run_diskless2.sh to this, in order to get it to work:
If I leave it as:
I get: |
#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
#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
I’m also seeing a failure here:
Not sure if this is related, but while opening the test log I’ve seen this just above:
But that did not make the corresponding test fail though: full log |
With today's master I am still seeing the failure of large file builds, with run_diskless2.sh failing as described above. The key fact is that it fails on 64-bit machines, but passes on 32-bit machines. |
what do you mean by "large file builds"? |
I am not seeing this failure of diskless2. |
@DennisHeimbigner I mean builds with configure option --enable-large-file-tests. run_diskless2.sh is only run when large file tests are enabled. Also it fails because I'm on a 64-bit machine. The 32-bit machine settings work for me. The key code is this in run_diskless2.sh:
|
If you look at run_diskless2.log, you will see this:
It is not clear to me what to do with this. Perhaps the right way |
Another possibility is to reduce the malloc size until it passes, |
I think we can reduce it safely, this test only runs when large file tests are run. I'd say we can reduce it down to maybe 4GB? That seems large for a diskless file, but within the scope of modern machines. |
So my issue is actually different then. I’m likely failing here: https://github.com/Unidata/netcdf-c/blob/master/nc_test/run_diskless2.sh#L48, which means the diskless file does not exist? Should I open a new issue? |
ret: #1162 The test nc_test/run_diskless2.sh fails when LARGE_FILE_TESTS is enabled. Since the goal of the test was to test out diskless+persist on a reasonably large file, I fixed by just limiting the file size to 1000000000L bytes.
OK this seems to be fixed so I will close this issue. |
Building current master like this fails:
autoreconf -i && ./configure --disable-netcdf4 --enable-large-file-tests --disable-dap-remote-tests && make check
It fails in run_diskless2.sh:
When I look at tst_diskless2, I see that it is failing on the nc_close().
@DennisHeimbigner this is probably from your recent changes, but I've been away from my CI system for a month so I really don't know when this broke.
The text was updated successfully, but these errors were encountered: