[Rd] Infinite recursion in S3 methods crashes R on windows (related to PR#8203?)

From: Rich FitzJohn <rich.fitzjohn_at_gmail.com>
Date: Wed 23 Nov 2005 - 21:53:19 GMT


Hi,

Infinite recursion in S3 methods seem to crash R on Windows 2000 (R terminating with the ("Rgui.exe has generated errors...") message, rather than throwing an error. This happens with both Rgui and Rterm.

The following toy example triggers this: myf <- function(x, ...)
  UseMethod("myf")

myf.default <- function(x, ...)
  myf(x)

myf(1)
...R crashes...

Which I would expect to terminate with the usual "evaluation nested too deeply: infinite recursion" or protect stack overflow message.

This may be related to the reported bug 8203 - apologies if this has been fixed. I couldn't find specific mention of this in the NEWS file.

This does not happen on R 2.1.0 on Windows 2000 (same machine), or on R 2.2.0 on Linux. R/Machine version below.

Cheers,
Rich

Version:
platform = i386-pc-mingw32
arch = i386
os = mingw32
system = i386, mingw32
status =
major = 2
minor = 2.0
year = 2005
month = 10
day = 06
svn rev = 35749
language = R

Windows 2000 Professional (build 2195) Service Pack 4.0

Locale:
LC_COLLATE=English_New Zealand.1252;LC_CTYPE=English_New Zealand.1252;LC_MONETARY=English_New
Zealand.1252;LC_NUMERIC=C;LC_TIME=English_New Zealand.1252

Search Path:
.GlobalEnv, package:methods, package:stats, package:graphics,
package:grDevices, package:utils, package:datasets, Autoloads, package:base

--
Rich FitzJohn
rich.fitzjohn <at> gmail.com   |    http://homepages.paradise.net.nz/richa183
                      You are in a maze of twisty little functions, all alike

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Thu Nov 24 09:13:29 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:34 GMT