From jasont@indigoindustrial.co.nz  Thu Jan 25 00:43:48 2001
From: jasont@indigoindustrial.co.nz (jasont@indigoindustrial.co.nz)
Date: Thu, 25 Jan 2001 01:43:48 +0100 (MET)
Subject: [Rd] trouble with netCDF (PR#824)
Message-ID: <200101250043.BAA14088@pubhealth.ku.dk>

Another interesting point - read.netCDF does *not* cause
R to dump core if debug(read.netCDF) is on. To be clear:

> rm(list=ls(all=T))
> library(netCDF)

# --- works ---
> debug(read.netCDF)
> fd<-open.netCDF("data.nc")
> z<-read.netCDF(fd,"foo")

--- lots of stuff deleted ---

> length(z)
[1] 143
--- what it should be

> close.netCDF(fd)
[1] TRUE   

#--- end works ---

That works fine.  Carrying on in the same session:

# --- doesn't work ---

> rm(z,fd)
> undebug(read.netCDF)
> fd<-open.netCDF("data.nc")
> z<-read.netCDF(fd,"foo")
Segmentation fault (core dumped)   

# --- end doesn't work ---

Now more puzzled.

Jason Turner
-- 
Indigo Industrial Controls Ltd.
64-21-343-545
jasont@indigoindustrial.co.nz

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] trouble with netCDF (PR#824)
jasont@indigoindustrial.co.nz