[Rd] editing pasted text from parameter list through rcompletion crashes R in Windows (PR#9775)

From: <mwtoews_at_sfu.ca>
Date: Wed, 04 Jul 2007 08:52:40 +0200 (CEST)

Full_Name: Michael Toews
Version: R 2.5.1
OS: WinXP; SP2
Submission from: (NULL) (

To reproduce this crash:

1. Start a new R session normally in Windows
2. Type (an example command): "boxplot(" without pressing enter
3. Copy this text: "c(1,2,6,4,7,3)"
4. Bring Rgui.exe back in focus, and hit "Tab" twice to activate the parameter
list (you should see "x=          ...=        range=      width=" etc.)
4. Paste the text, then press the backspace key, *crash*

There several other variations to crash R similarly, such as pressing the left-key to edit the pasted text while rcompletion is showing the parameter list. Present behaviour for rcompletion is to remove the parameter list from the console after typing has started; however, this list is not removed if text is pasted, which appears to crash R if the cursor moves backwards (buffer problems?).

 platform = i386-pc-mingw32
 arch = i386
 os = mingw32
 system = i386, mingw32
 status =
 major = 2
 minor = 5.1
 year = 2007
 month = 06
 day = 27
 svn rev = 42083
 language = R
 version.string = R version 2.5.1 (2007-06-27)

Windows XP (build 2600) Service Pack 2.0


Search Path:
 .GlobalEnv, package:stats, package:graphics, package:grDevices, package:utils, package:datasets, package:methods, Autoloads, package:base

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 04 Jul 2007 - 06:59:47 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 04 Jul 2007 - 21:35:57 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.