Bug 14543 - Rgui crashes when printing large strings
Summary: Rgui crashes when printing large strings
Alias: None
Product: R
Classification: Unclassified
Component: Windows GUI / Window specific (show other bugs)
Version: R 2.12.1
Hardware: Other Windows 32-bit
: P5 normal
Assignee: R-core
Depends on:
Reported: 2011-03-25 19:50 UTC by Jan van der Laan
Modified: 2015-12-14 13:47 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Jan van der Laan 2011-03-25 19:50:02 UTC
Rgui seems to crash when printing large strings. The following code produces the error (on my system and that of a few colleagues):

x <- paste(rep("123456789", 1e6), collapse=",")
The problem does not occur when
- running R in a DOS-window
- running R in rstudio
and, therefore, seems to be related to the Rgui.


--please do not edit the information below--

R Version:
platform = i386-pc-mingw32
arch = i386
os = mingw32
system = i386, mingw32
status =
major = 2
minor = 12.1
year = 2010
month = 12
day = 16
svn rev = 53855
language = R
version.string = R version 2.12.1 (2010-12-16)

Windows 7 (build 7600)


Search Path:
.GlobalEnv, package:ff, package:bit, package:tools, package:stats, package:graphics, package:grDevices, package:utils, package:datasets, package:methods, Autoloads, package:base
Comment 1 Duncan Murdoch 2011-03-25 20:39:45 UTC
This still occurs in R-devel; looks like an integer overflow somewhere.  I'll track it down.
Comment 2 Duncan Murdoch 2011-03-26 15:34:24 UTC
Turned out this was a case of an automatic variable sized array overflowing the stack.  I've switched it to use a safer allocation scheme.