Re: malloc error - memory error

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Fri, 21 Mar 2008 22:05:11 -0600

Erik Noble wrote:
> Dear NCL World,
> I ran into an error (malloc) that I do not understand. Is this error
> related to running out of memory?
>

speculation: yes .... no one variable can exceed 2GB
> i am using an Intel Mac Quad-Core with Leopard (64-bit) and 4 GB of
> memory, in case that matters.
> Any help would be greatly appreciated.
> Sincerely,
> Erik
> ncl 0> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> ncl 1> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
> ncl 2> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
> ncl 3> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
> ncl 4> load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"
> ncl 5> fils = systemfunc ("ls *.HDF")
> ncl 6> f = addfiles (fils, "r")
> ncl 7> system("/bin/rm SOP3_TRMM_HDFprecip.nc")
> ncl 8> ncdf = addfile("SOP3_TRMM_HDFprecip.nc","c")
> ncl 9> filedimdef(ncdf,"time",-1,True)
> ncl 10> r = addfiles_GetVar (f, fils, "precipitation")
> ncl 11> r!0 = "time"
> ncl 12> a = dim_avg(r) ; average all lons as a function of lat
> ncl(18585) malloc: *** mmap(size=2253312000) failed (error code=12)
> *** error: can't allocate region
> *** set a breakpoint in malloc_error_break to debug
> fatal:NclMalloc Failed:[errno=12]
> fatal:dim_avg: Could not coerce input data to double, can't continue
> fatal:Execute: Error occurred at or near line 12
>
> ncl 13>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Mar 21 2008 - 22:05:11 MDT

This archive was generated by hypermail 2.2.0 : Sun Mar 23 2008 - 15:01:36 MDT