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.
Can you give me as much information as possible so I can try to recreate the segfault? What os, version of GEMPAK, gfortran/glibc version, what script you're running, etc. Michael > Michael, > > Hmmm, the full gdb bt is attached. > > daryl > > > > On Wed, 10 Apr 2013, Unidata GEMPAK Support wrote: > > > 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 > > > > > > -- > /** > * 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