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 don't think this is where your problem is coming from. either barr is freed inside the for loop at line 173, or the break at 180 allows barr to be freed at line 251. If I'm missing something here let me know, but the crnexz source looks sound. Michael > > Hi Michael, > > > > I occasionally get segfaults running nex2img and diagnosed one of the > > problems. > > > > line 251 of gempak/source/driver/active/gn/crnexz.c > > > > free(barr); > > > > This appears to be a double free situation as barr may be free'd above > > on line 216 > > > > daryl > > > > -- > > /** > > * Daryl Herzmann > > * Assistant Scientist -- Iowa Environmental Mesonet > > * http://mesonet.agron.iastate.edu > > */ > > > > > Ticket Details =================== Ticket ID: KSU-679066 Department: Support GEMPAK Priority: Normal Status: Open