From p.dalgaard@biostat.ku.dk  Mon Oct  7 21:55:57 2002
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 07 Oct 2002 22:55:57 +0200
Subject: Core dump with "parse" (PR#2120)
In-Reply-To: <Pine.GSO.4.10.10210071314540.11068-100000@fisher.stat.ucla.edu>
References: <Pine.GSO.4.10.10210071314540.11068-100000@fisher.stat.ucla.edu>
Message-ID: <x2bs66klya.fsf@biostat.ku.dk>

Roger Peng <rpeng@stat.ucla.edu> writes:

> On my GNU/Linux box running 1.6.0, I get
...
> But on one of our OS X servers running R 1.5.1, I get:

The problem is that PrintExpression is using 
 
 Rprintf(CHAR(STRING_ELT(u, i)));

which works right until it needs to print something with % inside,
then Rprintf interprets the string as a format specification, and
expects to find further arguments to handle according to the
conversion specification. Since they are not there, it grabs
whatever is sitting in the relevant place on the stack and beyond
that, all bets are off...

I'll put the fix into r-patched after some testing.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


Core dump with "parse" (PR#2120)
Peter Dalgaard BSA