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.
> > I recently built and installed NetCDF-3.6.1 for an RHE4, x86_64 > system and, to test the installation, invoked ncdump with no arguments > just to make sure it would execute. On one of the systems tried, it > choked with a SEGV which I traced to a null pointer being passed to > name_path() in ncdump.c. > > I took the symptomatic approach with the fix for which the > diffs are pasted below. I doubt it's the best thing to do but I'm > pressed for time here. > > I'm sorry if this has been reported and/or fixed already. I > took a brief look at the mailing lists but saw nothing right away > that appeared to match what I observed. > > Best regards, > Phil > > P. A. Cheeseman > address@hidden > http://web.ics.purdue.edu/~aai/ > 765.496.8224 > > RCS file: RCS/ncdump.c,v > retrieving revision 1.1 > diff -r1.1 ncdump.c > 88c88,91 > < cp = strrchr(path, FILE_DELIMITER); > --- > > if (path != NULL) > > cp = strrchr(path, FILE_DELIMITER); > > else > > return(progname); > > Thanks, this has been fixed in the just released version 3.6.2. Ed Ticket Details =================== Ticket ID: ZKX-685122 Department: Support netCDF Priority: Normal Status: Closed