[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20030715: netcdf-3.5.1b+, Mac OS X, Absoft f95: assertion failure



Swen,

>Date: Mon, 14 Jul 2003 09:31:30 +0200
>From: Swen Metzger <address@hidden>
>Organization: UCAR/Unidata
>To: Steve Emmerson <address@hidden>
>Subject: Re: 20030707: building netcdf-3.5.1b+ under Mac OS X using Absoft f95 

The above message contained the following:

> I now encountered a problem with the netcdf-3.5.1 library.
> 
> If I execute our climate model, I get the following error by reggriding
> a netcdf file. Please note that this does not depend on a particular
> netcdf file or on the model initialization and that the same model/
> procedure works on various other platforms.
> 
> the error message "putget.c:1495: failed assertion `value != NULL'"
> independently occurs from existing files or model initialization:
> 
>       START REGRIDDING ...
>       NREGRID STATISTICS:
>       .......................................................
>       NO. OF RECURSION LEVELS   :   3
>       RECURSION LEVELS PROCESSED:   1  64  4032
> 
>       DIMENSION   1 : (MODULO)
>         SOURCE:  -2.81250000000000  357.187500000000
>         SOURCE REGION COVERED ON AVERAGE:   1.00000000000000
>         DEST. :  -2.81250  357.187
>         DEST.  REGION COVERED ON AVERAGE:   1.00000000000000
>       DIMENSION   2 :
>         SOURCE:  -1.00000000000000  1.00000000000000
>         SOURCE REGION COVERED ON AVERAGE:   0.999660313129430
>         DEST. :  -0.999660  0.999660
>         DEST.  REGION COVERED ON AVERAGE:   1.00000000000001
>       DIMENSION   3 :
>         SOURCE:  <UNDEFINED>
>         SOURCE REGION COVERED ON AVERAGE:   1.00000000000000
>         DEST. :  <UNDEFINED>
>         DEST.  REGION COVERED ON AVERAGE:   1.00000000000000
> 
>       VARIABLE RANGES:
>       (  1 ): <REAL>
>         SOURCE:   0.000000  1.972246E-12
>         DEST. :   0.000000  1.972245E-12
>       .......................................................
>   VARIABLE 'EMI_SO2_BB' ...
> putget.c:1495: failed assertion `value != NULL'
> Abort
> 
> This seems a problem of the statement
> 
>       assert(value != NULL);
> 
> in /usr/local/netcdf-3.5.1b+/src/libsrc/putget.c (line 1495)
> 
> Do you have any idea what does it mean/cause, and how
> to avoid/circumvent this problem?

The assertion failure means that the pointer to the array of source
values is NULL.  This should not occur.  Do you have the core-file from
the assertion failure?  If so, would you please send me a dump of the
stack.  If not, would you please obtain one and send me the stack-dump.

> Thanks, Swen
> 
> P.S. The same also occurs, if I use the netcdf-3.5.1 library that is
> now available for Mac OS X from fink (http://fink.sourceforge.net/)

Regards,
Steve Emmerson