[R] Seg Fault on R 1.8.1 under linux

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Jul 2 18:50:20 CEST 2004


Yes, save does not check if the connection is

a) open for
b) binary
c) writes.

Three missing checks: file = pipe("cat >see", "wb") has a chance of
working.

On Fri, 2 Jul 2004 ivo_welch-rstat8783 at mailblocks.com wrote:

> This may be known, but if it is not, maybe it is helpful.
>    h<- 1:1000;  save(h, file=pipe(">see"));
> causes a Segmentation fault on my system.  The more sensible save(h, 
> file=pipe("cat >see")) hangs.  I obviously have everything wrong here, 
> my point is only about suggesting a better error trapping somewhere.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list