Re: Malloc error on program exit, NCL 6.0.0

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Fri Dec 16 2011 - 09:10:39 MST

Hi Dave,

Thanks for bundling this all up. I'm running the code now as I type this to see
if I can produce the error with our current test version of NCL.

. . . still going . . .

Ahh, yes, I was able to reproduce this using our test version of NCL, so
apparently there's still an issue.

I'll run it through the debugger to see if I can figure out the problem.
I don't think this is a bug in your code, as this looks like an internal
memory issue.


On Dec 15, 2011, at 8:45 PM, Dave Allured wrote:

> 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:
> 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 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:

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Fri Dec 16 09:10:50 2011

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