This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
>Organization: NCAR/CGD/CMS >Keywords: 199504182252.AA29047 Hi Charlie, > i'm using netcdf 2.3.2 under solaris > (uname -a = SunOS flamenco 5.3 Generic_Patch sun4m sparc) > and i'm getting a problem with these two lines in my c code: > > /* Turn off the default filling behavior to enhance efficiency */ > /* including this statement causes crashes on solaris 2.3 > (but not sunos,aix, or unicos) when the ncendef statement > is called */ > (void)ncsetfill(out_id,NC_NOFILL); > > /* Take the output file out of define mode */ > (void)ncendef(out_id); > > if i don't set nc_nofill then the program works on all architectures > i've tried. if i do set nc_nofill then the program works on all > architectures except solaris, where it crashes in the ncendef routine. > > here's the error message on solaris: > Assertion failed: (*vpp)->begin == xdr_getpos(xdrs), file file.c, line 640 > Abort (core dumped) > > any idea what could be going wrong? I just tried the above statements in a small test program on SunOS 5.3, and it worked fine, so evidently the problem depends on some previous program statement. Could you send a small example program that demonstrates the problem? Unless we can reproduce it here, we can't figure out what's wrong. ______________________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu