[R-SIG-Mac] Forking issues in Mavericks
Simon Urbanek
simon.urbanek at r-project.org
Wed Oct 30 21:41:25 CET 2013
Jeroen,
actually, it works just fine for me on 10.9 (with CRAN build of R):
> library(parallel)
> library(httr)
> myfork <- mcparallel(GET("https://api.github.com/users/hadley/repos"))
> out <- mccollect(myfork)
> out
$`53129`
Response [https://api.github.com/users/hadley/repos]
Status: 200
Content-type: application/json; charset=utf-8
[{"id":12241750,"name":"adv-r","full_name":"hadley/adv-r","owner":{"login":"hadley","id":4196,"avatar_url":"https://2.gravatar.com/avatar/7ba164f40a50bc23dbb2aa825fb7bc16?d=https%3A%2F%2Fidenticons.gi
[...]
> sessionInfo()
R version 3.0.2 Patched (2013-10-23 r64103)
Platform: x86_64-apple-darwin10.8.0 (64-bit)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] parallel stats graphics grDevices utils datasets methods
[8] base
other attached packages:
[1] httr_0.2
loaded via a namespace (and not attached):
[1] digest_0.6.3 RCurl_1.95-4.1 stringr_0.6.2 tools_3.0.2
> system("uname -a")
Darwin ginaz.client.research.att.com 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64
BTW: if you really want to trace the crash, start the parent R and run this in lldb:
pro at -n R -w
that will attach to the forked child process.
Cheers,
Simon
On Oct 29, 2013, at 3:08 PM, Jeroen Ooms <jeroen.ooms at stat.ucla.edu> wrote:
> The following works in Linux and OSX 10.8 but in OSX 10.9 it results
> in a "__THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__()":
>
> library(parallel)
> library(httr)
> myfork <- mcparallel(GET("https://api.github.com/users/hadley/repos"))
> out <- mccollect(myfork)
>
> I've seen this error before when trying to access X11 from inside a
> forked process. In this case it seems to be related to SSL, but I'm
> not quite sure how to further debug this in 10.9 (lldb anyone?). What
> exactly might be triggering this error?
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
More information about the R-SIG-Mac
mailing list