From tlumley@u.washington.edu  Mon Oct  7 21:32:03 2002
From: tlumley@u.washington.edu (Thomas Lumley)
Date: Mon, 7 Oct 2002 13:32:03 -0700 (PDT)
Subject: Core dump with "parse" (PR#2120)
In-Reply-To: <200210071753.TAA15549@pubhealth.ku.dk>
Message-ID: <Pine.A41.4.44.0210071327050.42328-100000@homer19.u.washington.edu>

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


Core dump with "parse" (PR#2120)
Thomas Lumley