Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testunit fails: Error in shareData(mtcars, "share1") : * Creating file mapping...ERROR #40

Open
nunotexbsd opened this issue Mar 1, 2024 · 2 comments

Comments

@nunotexbsd
Copy link

nunotexbsd commented Mar 1, 2024

Any clues?

* checking tests ...
  Running 'test_kit.R'
 ERROR
Running the tests in 'tests/test_kit.R' failed.
Last 13 lines of output:
  > check("0021.012", charToFact(c("a",NA,"b")), addNA(as.factor(c("a",NA,"b"))))
  > check("0021.013", charToFact(c("a",NA,"a","b")), addNA(as.factor(c("a",NA,"a","b"))))
  > check("0021.014", charToFact(c("a",NA,"aa","b")), addNA(as.factor(c("a",NA,"aa","b"))))
  > check("0021.015", charToFact(c("a",NA,"aa")), addNA(as.factor(c("a",NA,"aa"))))
  >
  > rm(x1)
  >
  > # --------------------------------------------------------------------------------------------------
  > #                                   shareData
  > # --------------------------------------------------------------------------------------------------
  >
  > x = shareData(mtcars,"share1")
  shm_open error, errno(22): Invalid argument
  Error in shareData(mtcars, "share1") : * Creating file mapping...ERROR
  Execution halted
* DONE
R version 4.3.2 (2023-10-31)
Platform: amd64-portbld-freebsd15.0 (64-bit)
Running under: FreeBSD 15amd64-main 15.0-CURRENT FreeBSD 15.0-CURRENT 1500014 amd64

Matrix products: default
LAPACK: /usr/local/lib/R/lib/libRlapack.so.4.3.2;  LAPACK version 3.11.0

locale:
[1] C.UTF-8/C.UTF-8/C.UTF-8/C/C.UTF-8/C.UTF-8

time zone: Europe/Lisbon
tzcode source: system (FreeBSD)

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] compiler_4.3.2

Thanks.

@2005m
Copy link
Owner

2005m commented Mar 1, 2024

shm_open probably works differently under FreeBDS. I don't have access to such system and hence not able to debug or reproduce your error. If you can, you might want you look at the C code and try to debug it. For now, I am not going to be able to fix that issue. Sorry.

@nunotexbsd
Copy link
Author

@2005m

Not a big problem to me since program works ok. I was curious about why tests fails and some times this tests are important to check imcompatibilities on different OSes.

If you wanna give a try to run FreeBSD in a VM, you can get it from here:
https://www.freebsd.org/where/

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants