This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
> Dear NetCDF support, > > I wanted to report a bug in the source code of f90/netcdf_expanded.f90 > (4.1.3) that could potentially produce a crash. > > The bug is in line 734 of the source code (routine > nf90_put_var_2D_FourByteInt) > print *, values(1, 1), values(1, 2), values(1, 3), values(1, 4) > > This debugging print statement is potentially dangerous for several > reasons: > > 1) The print statement is unexpected and could foul up peoples output > and there scripts > > 2) The elements "values(1,2)" etc may not exist and could hence result > in a segfault. > > Please remove this line in further implementations. > > Regards, > Remko > Howdy Remko! Thanks, this has been fixed for the next release. In the next release, the fortran libraries are separate from the C library (which is still required for the fortran libraries to build.) Try a beta release of the new fortran libraries here: ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-fortran-4.2-beta4.tar.gz Thanks, Ed Ticket Details =================== Ticket ID: EIP-466022 Department: Support netCDF Priority: Critical Status: Closed