From g.russell at eos-solutions.com  Wed Dec  9 10:35:09 2009
From: g.russell at eos-solutions.com (g.russell at eos-solutions.com)
Date: Wed, 9 Dec 2009 10:35:09 +0100
Subject: [Rd] Antwort: Re:  Crash with Unicode and sub (PR#14114)
In-Reply-To: <4B1E2972.5010301@biostat.ku.dk>
Message-ID: <OF0B94AA00.4DC7A5D5-ONC1257687.00341C48-C1257687.0034A852@DFD-Hamburg>

Hello Peter,

I have now installed R-2.10.1 RC (sessionInfo() says "R version 2.10.1 RC 
(2009-12-06 r50684)", the rest I believe is as before). The following code 
always brings R --vanilla down (with a crash, not a normal exit):
-- cut here --
gctorture()
u <- intToUtf8(c(rep(1e3,1e2),32,c(rep(1e3,1e2))))
v <- rep(u,1e2)
v <- sub(" ","",v)
v %in% ""
q()
-- cut here --

I've tried this several times now, with different effects. Sometimes R 
crashes after 'v %in% ""'. Sometimes it survives that command, but crashes 
during the q(). I have also had the error message "Fehler in match(x, 
table, nomatch = 0L) > 0L : Vergleich (6) ist nur f?r atomare und 
Listentypen m?glich" from that command (the match seems to be the 
problem), when I type q() R still crashes. 

Best wishes,

George Russell | KG EOS Holding GmbH & Co

Tel: +49 40 2850 ? 1574  | g.russell at eos-solutions.com

EOS. With head and heart in finance

KG EOS Holding GmbH & Co | Steindamm 71, 20099 Hamburg | AG Hamburg HRA 95 
748
Pers?nlich haftend | EOS Holding GmbH | AG Hamburg HRB 78 748
Gesch?ftsf?hrer | Hans-Werner Scherer, Klaus Engberding, Justus 
Hecking-Veltman, Paul Leary sen., Christos Savvides, Dr. Andreas Witzig
Vorsitzender des Beirates | J?rgen Schulte-Laggenbeck 

Save a tree. Don?t print this email unless it?s really necessary.

Diese E-Mail enth?lt vertrauliche und/oder rechtlich gesch?tzte 
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
irrt?mlich erhalten haben, informieren Sie bitte sofort den Absender und 
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
Weitergabe dieser Mail ist nicht gestattet.

This email may contain confidential and/or privileged information.
If you are not the intended recipient or have received this email in 
error, please notify the sender immediately and destroy this email.
Any unauthorized copying, disclosure or distribution of the material in 
this email is strictly forbidden.

Peter Dalgaard <P.Dalgaard at biostat.ku.dk> schrieb am 08.12.2009 11:24:50:

> g.russell at eos-solutions.com wrote:
> > Full_Name: George Russell
> > Version: 2.10.0
> > OS: Windows XP Version 2002 SP 2
> > Submission from: (NULL) (217.111.3.131)
> > 
> > 
> > The following typed into R --vanilla induces a crash:
> > -- cut here --
> > gctorture()
> > u <- intToUtf8(c(rep(1e3,1e2),32,c(rep(1e3,1e2))))
> > v <- rep(u,1e2)
> > v <- sub(" ","",v)
> > v %in% ""
> > -- cut here --
> > 
> > sessionInfo() says:
> > 
> > -- cut here --
> > 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
> > -- cut here --
> > 
> > I apologise for not testing this with R-2.10.1 but as far as I can
> see there are
> > only source releases available so far, which I am not able to compile.
> >
> 
> 2.10.1 RC is available now. Please check. It does seem to be
> reproducible in the Windows version, or at least it takes a very long
> time, but that means running under Wine on SUSE for me. I don't see the
> effect with the Linux build.
> 
> -- 
>    O__  ---- Peter Dalgaard             ?ster Farimagsgade 5, Entr.B
>   c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
>  (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
> ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)              FAX: (+45) 35327907
> 



[Rd] Antwort: Re: Crash with Unicode and sub (PR#14114)
g.russell at eos-solutions.com