[Rd] corMatrix crashes with corARMA structure (PR#9952)

From: <btyner_at_gmail.com>
Date: Wed, 10 Oct 2007 16:35:24 +0200 (CEST)

Full_Name: Benjamin Tyner
Version: 2.6.0 RC 2007-10-01 r43043
Submission from: (NULL) (

platform       i386-pc-mingw32                       
arch           i386                                  
os             mingw32                               
system         i386, mingw32                         
status         RC                                    
major          2                                     
minor          6.0                                   
year           2007                                  
month          10                                    
day            01                                    
svn rev        43043                                 
language       R                                     
version.string R version 2.6.0 RC (2007-10-01 r43043)

I have seen this in other versions/platforms as well. Brian Ripley informs me the segfault is in corStruct.c

Code to reproduce:

n <- 100

# example from Box and Jenkins p. 83
arcoefs <- c(0.8)
macoefs <- c(-0.6)
p <- length(arcoefs)
q <- length(macoefs)

tmp <- corARMA(value=c(arcoefs,macoefs), form=~1, p=p, q=q) Sigma <- corMatrix(tmp, covariate = 1:n) # segfault

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 10 Oct 2007 - 14:42:11 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 25 Oct 2007 - 11:37:10 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.