Malloc error on program exit, NCL 6.0.0

From: Dave Allured <dave.allured_at_nyahnyahspammersnyahnyah>
Date: Thu Dec 15 2011 - 20:45:47 MST

NCL team,

With NCL version 6.0.0, one of my programs runs normally, but gets a
malloc error at the exact moment of program exit. The error does
*not* happen with NCL 5.2.1. The program reads one Netcdf file and
creates another one. Neither the data files nor program variables are
especially large, and no graphics are used. I checked carefully, and
the output file is complete to the very last datum written (an
attribute). Here is the terminal error message:

ncl(95597) malloc: *** error for object 0x103cbd270: pointer being
freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort

This is not a priority for me, since the output file is complete.
Perhaps the cause has already been fixed as one of the "memory leaks"
mentioned on the Current Release page. If you would like to test this
program for debug purposes, please feel free to download the code and
input file by anonymous FTP:

   ftp://ftp.cdc.noaa.gov/pub/Public/dallured/case/1215.malloc/

Before running the main program, set $LIB_NCL to the directory path of
the local subroutines, possibly ".". The run command needs one
argument:

   ncl ../scripts/filters/filter1.30day.lftx.1215.ncl var=\"lftx\"

I am running on Mac OS 10.6.8 with 8 Gb of physical memory:
mac56:~ 6> uname -a
Darwin mac56.psd.esrl.noaa.gov 10.8.0 Darwin Kernel Version 10.8.0:
Tue Jun 7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64
x86_64

Please let us know if you find anything interesting. Don't rule out a
bug in my program. Thanks for taking a look at this.

--Dave
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Dec 15 20:45:57 2011

This archive was generated by hypermail 2.1.8 : Fri Dec 16 2011 - 10:27:49 MST