[Rd] segfault with format.POSIXct()

Uwe Ligges ligges at statistik.tu-dortmund.de
Fri Apr 23 13:31:14 CEST 2010


Works for me, both under Windows (32 and 64 bit) and Linux, although I 
have not package slmisc attached.

Uwe Ligges



On 23.04.2010 01:32, Sebastian P. Luque wrote:
> Hi,
>
> I'm getting a segmentation fault as follows:
>
> ---<--------------------cut here---------------start------------------->---
> R>  begt<- as.POSIXct(strptime("10/01/2009 06:00:00", format="%d/%m/%Y %H:%M:%S"),
> +                    tz="GMT")
> R>  tser<- seq(begt, by=5, length.out=91000)
> R>  tser.trunc<- format(tser)
> Error: segfault from C stack overflow
> ---<--------------------cut here---------------end--------------------->---
>
> With the following set up:
>
> ---<--------------------cut here---------------start------------------->---
> R>  sessionInfo()
> R version 2.11.0 RC (2010-04-19 r51778)
> x86_64-pc-linux-gnu
>
> locale:
>   [1] LC_CTYPE=en_CA.UTF-8       LC_NUMERIC=C               LC_TIME=en_CA.UTF-8        LC_COLLATE=en_CA.UTF-8
>   [5] LC_MONETARY=C              LC_MESSAGES=en_CA.UTF-8    LC_PAPER=en_CA.UTF-8       LC_NAME=C
>   [9] LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
> other attached packages:
> [1] slmisc_0.7.3   lattice_0.18-3
>
> loaded via a namespace (and not attached):
> [1] grid_2.11.0
> ---<--------------------cut here---------------end--------------------->---
>
>
> Reducing the size of the sequence in seq.POSIXct() to 90000 doesn't
> cause a segfault, so it seems to be a memory issue.  Is this a bug?
>
> Thanks,
>



More information about the R-devel mailing list