Bug 14543 - Rgui crashes when printing large strings
Rgui crashes when printing large strings
Status: RESOLVED FIXED
Product: R
Classification: Unclassified
Component: Windows GUI / Window specific
R 2.12.1
Other Windows 32-bit
: P5 normal
Assigned To: R-core
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-25 19:50 UTC by Jan van der Laan
Modified: 2011-03-26 15:34 UTC (History)
1 user (show)

See Also:


Attachments

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=",")
print(x)
 
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)

Locale:
LC_COLLATE=Dutch_Netherlands.1252;LC_CTYPE=Dutch_Netherlands.1252;LC_MONETARY=Dutch_Netherlands.1252;LC_NUMERIC=C;LC_TIME=Dutch_Netherlands.1252

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.