Re: [Rd] R crash with intToUtf8 on huge vectors (PR#14068)

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Tue, 17 Nov 2009 11:30:57 -0500

On 11/16/2009 8:10 AM, g.russell_at_eos-solutions.com wrote:
> Full_Name: George Russell
> Version: 2.10.0
> OS: Windows XP Professional Version 2002 Service Pack 2
> Submission from: (NULL) (217.111.3.131)
>
>
> Typing the following command into R --vanilla causes R to crash:
>
> k <- intToUtf8(rep(1e3,1e7))

Brian Ripley has tracked this one down and a fix should appear shortly.

    The intToUtf8 code was written for reasonably small conversions, and it overflowed the stack when it tried to produce a 20 megabyte string there.

Do you have a real application that works with such large strings?

Duncan Murdoch

> This is the output of sessionInfo():
> R version 2.10.0 (2009-10-26)
> i386-pc-mingw32
>
> locale:
> [1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252
> [3] LC_MONETARY=German_Germany.1252 LC_NUMERIC=C
> [5] LC_TIME=German_Germany.1252
>
> attached base packages:
> [1] stats graphics grDevices datasets utils methods base
>
> other attached packages:
> [1] RODBC_1.3-1
>
> Many thanks for your help and best wishes,
>
> George Russell
>
> ______________________________________________
> R-devel_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 17 Nov 2009 - 16:48:53 GMT

This archive was generated by hypermail 2.2.0 : Tue 17 Nov 2009 - 17:10:27 GMT