From B.Rowlingson at lancaster.ac.uk  Wed Oct  5 14:10:13 2005
From: B.Rowlingson at lancaster.ac.uk (Barry Rowlingson)
Date: Wed, 05 Oct 2005 13:10:13 +0100
Subject: [Rd] R crashes for large formulas in lm() (PR#8180)
In-Reply-To: <Pine.LNX.4.61.0510051256110.24974@gannet.stats>
References: <20051005111311.018711DD7C@slim.kubism.ku.dk>
	<Pine.LNX.4.61.0510051256110.24974@gannet.stats>
Message-ID: <4343C2A5.2060102@lancaster.ac.uk>

Prof Brian Ripley wrote:

> OK, let's try to reproduce that:
> 
> 
>>x1 <- runif(1000)
...
>>y <- rnorm(1000)
>>fit <- lm(y~(x1*x2*x3*x4*x5*x6*x7*x8)^2)
> 
> 
> No crash, a quite reasonable fit.

  Add one more:

  > x9 <- runif(1000)

  works with 8:

  > fit <- lm(y~(x1*x2*x3*x4*x5*x6*x7*x8)^2)

  but go 'one over the eight' and:

  > fit <- lm(y~(x1*x2*x3*x4*x5*x6*x7*x8*x9)^2)
  Segmentation fault


platform i686-pc-linux-gnu
arch     i686
os       linux-gnu
system   i686, linux-gnu
status
major    2
minor    1.1
year     2005
month    06
day      20
language R

Baz



[Rd] R crashes for large formulas in lm() (PR#8180)
Barry Rowlingson