[Rd] ctl-D, cancel, ctl-D yields seg fault (PR#2773)

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Apr 14 11:22:17 MEST 2003


On Mon, 14 Apr 2003 robert_dodier at yahoo.com wrote:

> Full_Name: Robert Dodier
> Version: 1.2.0  (2000-12-15)

That's over two years old!

> OS: RH Linux 7.1
> Submission from: (NULL) (128.138.88.127)
> 
> 
> If I start up R and just do:
> 
> > <ctl-D>
> Save workspace image? [y/n/c]: c
> > <ctl-D>
> 
> then R segfaults.
> 
> "gdb `locate R.bin` core" reports:
> (gdb) where
> #0  0x080a2282 in Rf_mainloop () at eval.c:41
> 
> However, if I use q() then there is no segfault:
> > q()
> Save workspace image? [y/n/c]: c
> > q()
> Save workspace image? [y/n/c]: n
> 
> and it exits without further ado.
> 
> Also, <ctl-D> followed by 'y' or 'n' exits without segfault.
> 
> I searched the bug archive but I didn't find this
> bug, so here it is. 

It does not happen in current versions of R, at least on RedHat 8.0.
Note that as you are (I presume) using readline, one would need to
test on the (long superceded) RH7.1 to be sure.

Please update your R and try again.

-- 
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-devel mailing list