Core dump with "parse" (PR#2120)

Peter Dalgaard BSA
07 Oct 2002 22:55:57 +0200

Roger Peng <> 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
~~~~~~~~~~ - (             FAX: (+45) 35327907
r-devel mailing list -- Read
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: