Test case: z <- ts(matrix(rnorm(200),10,20), start=c(1961,1)) acf(z,lag.max=1) This segfaults for me. Maybe it shouldn't? cheers dave --please do not edit the information below-- Version: platform = i386-pc-linux-gnu arch = i386 os = linux-gnu system = i386, linux-gnu status major = 2 minor = 0.1 year = 2004 month = 11 day = 15 language = R Search Path: .GlobalEnv, package:methods, package:stats, package:graphics, +package:grDevices, package:utils, package:datasets, Autoloads, package:base
On Mon, 4 Apr 2005 17:15:29 +0200 (CEST), davidhughjones@gmail.com wrote :>Test case: >z <- ts(matrix(rnorm(200),10,20), start=c(1961,1)) >acf(z,lag.max=1) > >This segfaults for me. Maybe it shouldn't?Not for me in a recent alpha build on Windows. Could you try it in the latest R-alpha from CRAN? Duncan Murdoch>cheers >dave > >--please do not edit the information below-- > >Version: > platform = i386-pc-linux-gnu > arch = i386 > os = linux-gnu > system = i386, linux-gnu > status > major = 2 > minor = 0.1 > year = 2004 > month = 11 > day = 15 > language = R > >Search Path: > .GlobalEnv, package:methods, package:stats, package:graphics, >+package:grDevices, package:utils, package:datasets, Autoloads, package:base > >______________________________________________ >R-devel@stat.math.ethz.ch mailing list >https://stat.ethz.ch/mailman/listinfo/r-devel
On Mon, 4 Apr 2005 murdoch@stats.uwo.ca wrote:> On Mon, 4 Apr 2005 17:15:29 +0200 (CEST), davidhughjones@gmail.com > wrote : > >> Test case: >> z <- ts(matrix(rnorm(200),10,20), start=c(1961,1)) >> acf(z,lag.max=1) >> >> This segfaults for me. Maybe it shouldn't? > > Not for me in a recent alpha build on Windows. Could you try it in > the latest R-alpha from CRAN?Not for me in R-alpha nor R-2.0.1 on i686 or x86_64 Fedora Core 3. What device was this (presumably X11)? Looks like a problem with the exact OS or hardware in use: if it is reproducible, please provide a gdb backtrace.>> --please do not edit the information below-- >> >> Version: >> platform = i386-pc-linux-gnu >> arch = i386 >> os = linux-gnu >> system = i386, linux-gnu >> status >> major = 2 >> minor = 0.1 >> year = 2004 >> month = 11 >> day = 15 >> language = R-- Brian D. Ripley, ripley@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
David emailed me his dataset, and I get a segfault crash with it. This happens in an R memory allocation routine after the C function acf() in src/library/stats/src/filter.c has returned, so it looks to me as though acf() is writing somewhere it shouldn't. I'll try to track it down... Duncan Murdoch
On Mon, 4 Apr 2005 17:15:29 +0200 (CEST), davidhughjones@gmail.com wrote :>Test case: >z <- ts(matrix(rnorm(200),10,20), start=c(1961,1)) >acf(z,lag.max=1) > >This segfaults for me. Maybe it shouldn't?This was a bug in the memory allocation in the C code, now fixed. I've committed the fix to the beta and to the 2.0.1 patch version. Duncan Murdoch