Re: [Rd] eval(match.call()) (PR#9339)

From: <p.dalgaard_at_biostat.ku.dk>
Date: Fri 03 Nov 2006 - 21:41:05 GMT


Marc Schwartz <marc_schwartz@comcast.net> writes:

> On Fri, 2006-11-03 at 21:15 +0100, Peter Dalgaard wrote:
> > harringt@stat.ubc.ca writes:
> >=20
> > > Full_Name: Justin Harrington
> > > Version: 2.4.0
> > > OS: Fedora Core 6
> > > Submission from: (NULL) (142.103.121.203)
> > >=20
> > >=20
> > > When I type the (albeit stupid) command
> > >=20
> > > eval(match.call())
> > >=20
> > > R crashes with the following messages (truncated):
> > >=20
> > > *** buffer overflow detected ***: /usr/lib/R/bin/exec/R terminated
> >=20
> > Yes, don't do that then ;-)

>=20

> Indeed... ;-)
>=20

> > Part of the puzzle is that
> >=20
> > > match.call()
> > match.call()
> >=20
> > which looks like something with potential for infinite recursion, but
> > that doesn't seem to be issue since
> >=20
> > > f <- function(call =3D sys.call(sys.parent()))call
> > > f()
> > f()
> > > eval(f())
> > f()
> >=20
> > does not exhibit the same crash. And indeed
> >=20
> > > x <- quote(match.call())
> > > eval(x)
> > *** buffer overflow detected ***: /usr/lib/R/bin/exec/R terminated
> > =3D=3D=3D=3D=3D=3D=3D Backtrace: =3D=3D=3D=3D=3D=3D=3D=3D=3D
> > /lib/libc.so.6(__chk_fail+0x41)[0x1f1161]
> > /lib/libc.so.6[0x1f0617]
> >=20
> > does look like something that just Should Not Happen...

>=20

> Peter, are you on FC6?
>=20

> On FC5, I cannot replicate your crash:
>=20

> > x <- quote(match.call())
> > eval(x)
> Error in match.call(definition, call, expand.dots) :
> '.Primitive...' is not a function
>=20
> ?

Yes, I'm on FC6 since yum had updated the 1229 packages this morning.

I see the crash with the FC6 RPM but not with a self-compiled R-patched.

--=20

   O__  ---- Peter Dalgaard             =C3=98ster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sat Nov 04 08:46:22 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 03 Nov 2006 - 22:30:33 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.