Core dump with "parse" (PR#2120)

Thomas Lumley tlumley@u.washington.edu
Mon, 7 Oct 2002 13:32:03 -0700 (PDT)


On Mon, 7 Oct 2002 j.c.rougier@durham.ac.uk wrote:

> Hi everyone,
>
> The following code may not be very sensible, but it generates a core
> dump.  The same happens in R-1.5.1.

It doesn't generate a core dump for me in either version, but it doesn't
work correctly either.

A simpler version is:
> parse(text="a %in% b")
expression(a 0n% b)

It looks like the %i is being used as a printf format string, which might
well cause a core dump.

This isn't happening inside parse, but inside print, since
> parse(text="a %in% b")[[1]]
a %in% b


	-thomas


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._