From spluque at gmail.com  Fri Apr 23 01:32:54 2010
From: spluque at gmail.com (Sebastian P. Luque)
Date: Thu, 22 Apr 2010 18:32:54 -0500
Subject: [Rd] segfault with format.POSIXct()
Message-ID: <87r5m783mh.fsf@kolob.sebmags.homelinux.org>

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,

-- 
Seb



[Rd] segfault with format.POSIXct()
Sebastian P. Luque