r-lib/processx

Cannot fork, Unix process

xfim opened this issue · 1 comments

xfim commented

Dear all,

I am not sure this belongs to "processx", but the error message points towards it. So please excuse me if this is not the place to raise the issue. I will appreciated then, if you can point towards other forums.

I am using R-4.1.2 from GNU/Linux, and processx_3.5.3.

The issue is that I am calling devtools::check() as I was doing last week, and now the following error message appears:

── Building 
Setting env vars:
• CFLAGS    : -Wall -pedantic
• CXXFLAGS  : -Wall -pedantic
• CXX11FLAGS: -Wall -pedantic
• CXX14FLAGS: -Wall -pedantic
• CXX17FLAGS: -Wall -pedantic
• CXX20FLAGS: -Wall -pedantic

Error: <c_error in rethrow_call(c_processx_exec, command, c(command, args), pty,  ...:
 Cannot fork when running '/usr/lib64/R/bin/R' (system error -12, Unknown Error  -12) @unix/processx.c:533 (processx_exec)>

 Stack trace:

 1. devtools::check(".")
 2. withr::with_envvar(pkgbuild::compiler_flags(FALSE), action = "pre ...
 3. base:::force(code)
 4. pkgbuild::build(pkg$path, tempdir(), args = build_args, quiet = q ...
 5. withr::with_temp_libpaths(rcmd_build_tools(options$cmd, c(options ...
 6. base:::force(code)
 7. pkgbuild:::rcmd_build_tools(options$cmd, c(options$path, options$ ...
 8. pkgbuild:::with_build_tools({ ...
 9. base:::withCallingHandlers(callr::rcmd_safe(..., env = env, spinn ...
 10. callr::rcmd_safe(..., env = env, spinner = FALSE, show = FALSE,  ...
 11. callr:::run_r(options)
 12. base:::with(options, with_envvar(env, do.call(processx::run,  ...
 13. base:::with.default(options, with_envvar(env, do.call(processx::r ...
 14. base:::eval(substitute(expr), data, enclos = parent.frame())
 15. base:::eval(substitute(expr), data, enclos = parent.frame())
 16. callr:::with_envvar(env, do.call(processx::run, c(list(bin, args  ...
 17. base:::force(code)
 18. base:::do.call(processx::run, c(list(bin, args = real_cmdargs,  ...
 19. (function (command = NULL, args = character(), error_on_status = TRUE,  ...
 20. process$new(command, args, echo_cmd = echo_cmd, wd = wd, windows_ ...
 21. processx:::initialize(...)
 22. processx:::process_initialize(self, private, command, args, stdin ...
 23. base:::rethrow_call(c_processx_exec, command, c(command, args),  ...

 x Cannot fork when running '/usr/lib64/R/bin/R' (system error -12, Unknown Error  -12) @unix/processx.c:533 (processx_exec)

Execution halted

Questions:

  • Does it sound that it belongs to processx?
  • If so, is it really something to do with the package, or a more OS problem?
  • Any hints on how to solve it?

Thank you,

xfim commented

It turns out it seems to be related to the linear algebra routines than to processx: r-lib/pkgbuild#138. Thank you anyway.