Displaying 3 results from an estimated 3 matches for "do_formatposixlt".
2016 Dec 06
6
segfault with POSIXlt zone=NULL zone=""
Hi all,
I ran into a segfault while playing with dates.
$ R --no-init-file
...
> library(lubridate); d=as.POSIXlt(floor_date(Sys.time(),"year")); d$zone=NULL; d$zone=""; d
Attaching package: ?lubridate?
The following object is masked from ?package:base?:
date
Warning message:
package ?lubridate? was built under R version 3.4.0
2016 Dec 06
0
ok to segfault with POSIXlt zone=NULL zone=""?
...e could lend a second opinion. My understanding is that we
should try to avoid segfaulting as a way of handling errors, if only
because they become much more difficult to debug when the R session is
forced to quit.
I don't know exactly which line is causing the bug, but looking at the
code for do_formatPOSIXlt in "src/main/datetime.c", it seems that
there would not be a huge performance penalty to add an extra sanity
check to prevent this from occurring.
Thank you,
Frederick
On Tue, Dec 06, 2016 at 04:37:20AM -0800, frederik at ofb.net wrote:
> Hi all,
>
> I ran into a segfault whi...
2003 Aug 18
1
round.POSIXt sometimes crashes R (PR#3763)
Full_Name: andrea capodicasa
Version: 1.7.0
OS: w2k sp3
Submission from: (NULL) (212.17.194.154)
Hi all,
the problem is when you try to round.Posix an empty vector of dates
Please give a look to this code:
> data=seq(ISOdate(2001,1,1),by="day",length=3)
> data
[1] "2001-01-01 13:00:00 ora solare Europa occidentale"
[2] "2001-01-02 13:00:00 ora solare Europa