[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #RGU-954809]: Assertion `value != ((void *)0)' failed
- Subject: [netCDF #RGU-954809]: Assertion `value != ((void *)0)' failed
- Date: Wed, 16 Jan 2008 13:18:58 -0700
> Full Name: stefano materia
> Email Address: address@hidden
> Organization: cola
> Package Version: netcdf-3.6.2
> Operating System: linux
> Hardware:
> Description of problem: Hi,
> I am running a fortran code compiled by the intel fortran compiler, which
gives me an error in a netcdf call (nf_get_var_real)
>
> I do not get a core file. The program exits with:
>
> hd_hyssib.x: putget.c:3676: getNCvx_float_float: Assertion `value != ((void
*)0)' failed.
> forrtl: error (76): Abort trap signal
> Image PC Routine Line Source
> libc.so.6 0000003A46630070 Unknown Unknown Unknown
> libc.so.6 0000003A46630015 Unknown Unknown Unknown
> libc.so.6 0000003A46631980 Unknown Unknown Unknown
> libc.so.6 0000003A46629726 Unknown Unknown Unknown
> hd_hyssib.x 00000000004BFD27 Unknown Unknown Unknown
> hd_hyssib.x 00000000004BFE2E Unknown Unknown Unknown
> hd_hyssib.x 000000000041FBFB mo_netcdf_mp_io_g 601
i.mo_netcdf.f90
> hd_hyssib.x 0000000000408003 hydro_.read_hydro 187
i.hydro.f90
> hd_hyssib.x 0000000000407A7E hydro_.init_hydro 128
i.hydro.f90
> hd_hyssib.x 0000000000404170 MAIN__ 79
i.hydro.f90
> hd_hyssib.x 00000000004031E2 Unknown Unknown Unknown
> libc.so.6 0000003A4661D8A4 Unknown Unknown Unknown
> hd_hyssib.x 0000000000403129 Unknown Unknown Unknown
> ./run_hyssib.sh: line 77: 23043: Abort
>
> line 601 of the mo_netcdf is a call to nf_get_var_real from (line 187 of
read_hydro) a bidimensional variable called FDIR.
> The code calls 7 variables of the same file, in the same identical way, but
just that variable shows the problem. In fact, the program run correctly by
commenting the call to nf_get_var_real from variable FDIR, keeping the calls
from the other six variables.
> The netcdf file doesn't show any strange, and the variable itself looks
correct in the file.
>
> Sorry if I didn't give you all the information needed, please ask if I have
to add something in order to make the solution of the problem easier.
>
> Thank you
> Stefano
>
>
Howdy Stefano!
What is happening is that a NULL pointer is being passed for the final
parameter of the nc_get_var_real function. Are you sure that the space for the
data was properly allocated, and that you are giving the correct variable? Are
you sure it is a real?
Thanks,
Ed
Ticket Details
===================
Ticket ID: RGU-954809
Department: Support netCDF
Priority: Normal
Status: Closed