Re: [Rd] unmapped memory core dump with pure R program?

2013-07-14 Thread Dirk Eddelbuettel
On 13 July 2013 at 22:24, ivo welch wrote: | dear R developers---I am running a pure R program on the stock binary | debian (ubuntu) 64-bit linux distribution, 3.0.1. for identification, [...] | recurse some. I don't have symbols in my R binary, so the location may not | be useful, but I

Re: [Rd] unmapped memory core dump with pure R program?

2013-07-14 Thread ivo welch
thx. would be happy to do this, but is it worth the effort? are you guys interested in potentially chasing this down or is this mundane? regards, /iaw Ivo Welch (ivo.we...@gmail.com) On Sun, Jul 14, 2013 at 2:54 AM, Dirk Eddelbuettel e...@debian.org wrote: On 13 July 2013 at 22:24,

Re: [Rd] unmapped memory core dump with pure R program?

2013-07-14 Thread Simon Urbanek
On Jul 14, 2013, at 10:51 AM, ivo welch wrote: thx. would be happy to do this, but is it worth the effort? are you guys interested in potentially chasing this down or is this mundane? R should not segfault, so we're interested, but we will need a reproducible example. That said, R-devel

Re: [Rd] unmapped memory core dump with pure R program?

2013-07-14 Thread ivo welch
thanks, simon. it's replicable even on R version 3.0.1 Patched (2013-07-13 r63293) -- Good Sport (I presume that it is loading its own updated dynamic libraries when I installed it in a temporary directory and am invoking it as temp/R-patched/bin/R, and not the system-wide unpatched

Re: [Rd] unmapped memory core dump with pure R program?

2013-07-14 Thread Dirk Eddelbuettel
On 14 July 2013 at 09:04, ivo welch wrote: | thanks, simon. it's replicable even on | |R version 3.0.1 Patched (2013-07-13 r63293) -- Good Sport | | (I presume that it is loading its own updated dynamic libraries when I | installed it in a temporary directory and am invoking it as |

[Rd] Redirect system2 stdout to a file on windows

2013-07-14 Thread Jeroen Ooms
According to the manual, the `stdout` argument of the `system2` function can redirect output to a file. This seems to work on unix, however I can't get it to work on windows. The toy example below, no `out.txt` or `err.txt` files are created. I tried sending it to an existing file, or expand the

Re: [Rd] unmapped memory core dump with pure R program?

2013-07-14 Thread ivo welch
hi dirk---look, it's a fickle bus segfault. if you read my email in full, you will note that even eliminating an irrelevant print(head()) statement makes it go away. we are lucky it is reproducible and thus easy to track down for whoever wrote the code, given my code AND the data, of course.

Re: [Rd] unmapped memory core dump with pure R program?

2013-07-14 Thread Dirk Eddelbuettel
On 14 July 2013 at 11:45, ivo welch wrote: | hi dirk---look, it's a fickle bus segfault.  if you read my email in full, you | will note that even eliminating an irrelevant print(head()) statement makes it | go away.  we are lucky it is reproducible and thus easy to track down for | whoever wrote

Re: [Rd] unmapped memory core dump with pure R program?

2013-07-14 Thread ivo welch
hi dirk---it is not 100% clear what causes it. it is a segfault. the bug does not show up at the head command. it shows up at a different place, but removing an unrelated print(head()) command means the bug does not appear later. it weighs in at about 280MB. I will make it available to simon

Re: [Rd] Redirect system2 stdout to a file on windows

2013-07-14 Thread Gabor Grothendieck
On Sun, Jul 14, 2013 at 1:18 PM, Jeroen Ooms jeroen.o...@stat.ucla.edu wrote: According to the manual, the `stdout` argument of the `system2` function can redirect output to a file. This seems to work on unix, however I can't get it to work on windows. The toy example below, no `out.txt` or

Re: [Rd] Redirect system2 stdout to a file on windows

2013-07-14 Thread Jeroen Ooms
On Sun, Jul 14, 2013 at 10:24 PM, Gabor Grothendieck wrote: Try: out.txt - normalizePath(./out.txt, mustWork = FALSE) Doesn't work either, neither on Win7 nor WinXP. sessionInfo() R version 3.0.1 (2013-05-16) Platform: x86_64-w64-mingw32/x64 (64-bit)

Re: [Rd] Redirect system2 stdout to a file on windows

2013-07-14 Thread Gabor Grothendieck
On Sun, Jul 14, 2013 at 5:20 PM, Jeroen Ooms jeroen.o...@stat.ucla.edu wrote: On Sun, Jul 14, 2013 at 10:24 PM, Gabor Grothendieck wrote: Try: out.txt - normalizePath(./out.txt, mustWork = FALSE) Doesn't work either, neither on Win7 nor WinXP. sessionInfo() R version 3.0.1 (2013-05-16)

Re: [Rd] Redirect system2 stdout to a file on windows

2013-07-14 Thread Henrik Bengtsson
Works for me (Win 7 64bit) using R.exe: setwd(tempdir()) getwd() [1] C:/Users/hb/AppData/Local/Temp/RtmpSqjCDt res - system2(whoami, stdout=out.txt, stderr=err.txt) res [1] 0 file.info(c(out.txt, err.txt)) size isdir mode mtime ctime out.txt 12 FALSE