Re: [Rd] Infrequent but steady NULL-pointer caused segfault in as.POSIXlt.POSIXct (R 3.4.4)

2019-08-04 Thread Sun Yijiang
ormation/updates. If this ends up being a bug in R, please report > (and with a reproducible example, if it is not obvious from the source > code). > > Best > Tomas > > > On 8/2/19 10:23 AM, Sun Yijiang wrote: > > The R script I run daily for hours looks like

[Rd] Infrequent but steady NULL-pointer caused segfault in as.POSIXlt.POSIXct (R 3.4.4)

2019-08-02 Thread Sun Yijiang
The R script I run daily for hours looks like this: while (!finish) { Sys.sleep(0.1) time = as.integer(format(Sys.time(), "%H%M")) # always crash here if (new.data.timestamp() <= time) next # ... do some jobs for about 2 minutes ... gc() } Basically it waits for new da

Re: [Rd] Race condition on parallel package's mcexit and rmChild

2019-05-20 Thread Sun Yijiang
also ported > to R-patched. In fact rmChild() is used in mccollect(wait=FALSE). > > Best > Tomas > > On 5/19/19 11:39 AM, Sun Yijiang wrote: > > I've been hacking with parallel package for some time and built a > > parallel processing framework with it. However, al

[Rd] Race condition on parallel package's mcexit and rmChild

2019-05-20 Thread Sun Yijiang
I've been hacking with parallel package for some time and built a parallel processing framework with it. However, although very rarely, I did notice "ignoring SIGPIPE signal" error every now and then. After a deep dig into the source code, I think I found something worth noticing. In short, wring

[Rd] Race condition on parallel package's mcexit and rmChild

2019-05-20 Thread Sun Yijiang
I've been hacking with parallel package for some time and built a parallel processing framework with it. However, although very rarely, I did notice "ignoring SIGPIPE signal" error every now and then. After a deep dig into the source code, I think I found something worth noticing. In short, wring

Re: [Rd] Rscript fails with some packages (for example, h5)

2017-12-27 Thread Sun Yijiang
Thanks for the details. I’m new to R, and I’m not blaming anything here, just that I’m still not clear what good it makes to keep this inconsistency between R and Rscript. To me (and probably to many others from Perl/Python etc.), this is shockingly weird. I can live with that, and I also want to k

Re: [Rd] Rscript fails with some packages (for example, h5)

2017-12-26 Thread Sun Yijiang
's my confusion. Steve 2017-12-26 20:46 GMT+08:00 Dirk Eddelbuettel : > > On 26 December 2017 at 15:24, Sun Yijiang wrote: > | After looking into C source code, I found that Rscript by default fills > | environment variable R_DEFAULT_PACKAGES with > | "datasets,utils,grD

[Rd] Rscript fails with some packages (for example, h5)

2017-12-26 Thread Sun Yijiang
Consider this script (with h5 installed): $ cat test.R library(h5) name <- tempfile() f <- h5file(name) file.remove(name) $ Rscript test.R Error in initialize(value, ...) : cannot use object of class "character" in new(): class "H5File" does not extend that class Calls: h5file -> new -> initia