From p.dalgaard@biostat.ku.dk  Tue Feb  1 12:37:35 2000
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 01 Feb 2000 13:37:35 +0100
Subject: [Rd] Segmentation fault in recursion, 0.90.1 (PR#409)
In-Reply-To: J.C.Rougier@durham.ac.uk's message of "Tue, 1 Feb 2000 13:12:57 +0100 (MET)"
References: <200002011212.NAA12287@pubhealth.ku.dk>
Message-ID: <x2r9exgkts.fsf@blueberry.kubism.ku.dk>

J.C.Rougier@durham.ac.uk writes:

> The following gives an immediate segmentation fault, v 0.90.1
> 
> "fred" <- function(x) { print(x); Recall(x-1)}
> fred(0)	# segmentation fault at recursion 831
> 
> Obviously this recursion is non-terminating, but shouldn't it be caught
> and reported at some limit?  In 0.64.1 we had
> 
> Error: protect(): stack overflow
> 
> at recursion 831.  Cheers, Jonathan.

The development version has

...
[1] -162
[1] -163
Error in print(x) : evaluation is nested too deeply: infinite recursion?

The limit can be set with options(expressions=...)

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Segmentation fault in recursion, 0.90.1 (PR#409)
Peter Dalgaard BSA