search for: do_asposixlt

Displaying 6 results from an estimated 6 matches for "do_asposixlt".

2019 Aug 02
4
Infrequent but steady NULL-pointer caused segfault in as.POSIXlt.POSIXct (R 3.4.4)
...quot;) ? ? I looked into the dumped core with gdb, and found something very strange: gdb /usr/lib64/R/bin/exec/R ~/core.30387 (gdb) bt 5 #0 0x00007f1dca844ff1 in __strlen_sse2_pminub () from /lib64/libc.so.6 #1 0x00007f1dcb20e8f9 in Rf_mkChar (name=0x0) at envir.c:3725 #2 0x00007f1dcb1dc225 in do_asPOSIXlt (call=<optimized out>, op=<optimized out>, args=<optimized out>, env=<optimized out>) at datetime.c:705 #3 0x00007f1dcb22197f in bcEval (body=body at entry=0x4064b28, rho=rho at entry=0xc449d38, useCache=useCache at entry=TRUE) at eval.c:6473 #4 0x00007f1dcb230370...
2019 Aug 04
1
Infrequent but steady NULL-pointer caused segfault in as.POSIXlt.POSIXct (R 3.4.4)
...nd something very strange: > > > > gdb /usr/lib64/R/bin/exec/R ~/core.30387 > > (gdb) bt 5 > > #0 0x00007f1dca844ff1 in __strlen_sse2_pminub () from /lib64/libc.so.6 > > #1 0x00007f1dcb20e8f9 in Rf_mkChar (name=0x0) at envir.c:3725 > > #2 0x00007f1dcb1dc225 in do_asPOSIXlt (call=<optimized out>, > > op=<optimized out>, args=<optimized out>, > > env=<optimized out>) at datetime.c:705 > > #3 0x00007f1dcb22197f in bcEval (body=body at entry=0x4064b28, > > rho=rho at entry=0xc449d38, useCache=useCache at entry=TRUE) &...
2015 Dec 07
2
inconsistency in POSIXlt
The documentation for the POSIXlt class states '"POSIXlt" objects will often have an attribute "tzone", a character vector of length 3 giving the time zone name from the TZ environment variable and the names of the base time zone and the alternate (daylight-saving) time zone. Sometimes this may just be of length one, giving the time zone
2019 Aug 02
0
Infrequent but steady NULL-pointer caused segfault in as.POSIXlt.POSIXct (R 3.4.4)
...dumped core with gdb, and found something very strange: > > gdb /usr/lib64/R/bin/exec/R ~/core.30387 > (gdb) bt 5 > #0 0x00007f1dca844ff1 in __strlen_sse2_pminub () from /lib64/libc.so.6 > #1 0x00007f1dcb20e8f9 in Rf_mkChar (name=0x0) at envir.c:3725 > #2 0x00007f1dcb1dc225 in do_asPOSIXlt (call=<optimized out>, > op=<optimized out>, args=<optimized out>, > env=<optimized out>) at datetime.c:705 > #3 0x00007f1dcb22197f in bcEval (body=body at entry=0x4064b28, > rho=rho at entry=0xc449d38, useCache=useCache at entry=TRUE) > at eval.c:6...
2015 Dec 07
0
inconsistency in POSIXlt
...CT(tzone = mkString(tz)); } else { PROTECT(tzone = allocVector(STRSXP, 3)); SET_STRING_ELT(tzone, 0, mkChar(tz)); SET_STRING_ELT(tzone, 1, mkChar(R_tzname[0])); SET_STRING_ELT(tzone, 2, mkChar(R_tzname[1])); } In the file https://svn.r-project.org/R/trunk/src/main/datetime.c (function do_asPOSIXlt) R_tzname is an extern char pointer. I can't say exactly where it is populated, but the code assumes it will be and that it will take care of what passing a length 3 vector would. Also, note that AFAICT the second and third are not freeform text, only very specific values are valid. Long sto...
2007 Oct 30
1
timezone conversion difficulties with the new US daylight saving time switch over
...r to (2) is yes, does anyone have any good hints for where to start looking for a solution? It looks to me like unclass(as.POSIXlt(as.POSIXct("2007-10-30 11:38:47"), "EST5EDT"))$isdst is inappropriately zero. I tried following the code in src/main/datetime.c:do_asPOSIXlt, and it looks like this isdst value comes from a call to localtime() from localtime0() ... thanks in advance for any help, Tony Plate PS. I do not see the same problem in an old version of R (2.2.1) running under Ubuntu Linux: > Sys.timezone() [1] "" > as.POSIXlt((d <-...