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

segmentation fault in nlm_fbm #79

Open
mhesselbarth opened this issue Nov 29, 2021 · 9 comments
Open

segmentation fault in nlm_fbm #79

mhesselbarth opened this issue Nov 29, 2021 · 9 comments

Comments

@mhesselbarth
Copy link
Contributor

mhesselbarth commented Nov 29, 2021

R-CMD-check

The new CI using GitHub actions runs successfully on Windows and Linux, however, fails on macOS due to an segmentation fault occurring during nlm_fbm. I can actually reproduce the error on my local machine as well and the R session crashes at the following line:

RandomFields::RFoptions(...)
@bitbacchus
Copy link
Collaborator

Hm, it fails to build the vignette getstarted.Rmd at line 111: nr <- NLMR::nlm_fbm(50, 100, fract_dim = 1.2). Can you locally build NLMR without the vignette and try to run nr <- NLMR::nlm_fbm(50, 100, fract_dim = 1.2) manually to see what happens?

@marcosci
Copy link
Collaborator

Hm, works like a charm on my mac:

nr <- NLMR::nlm_fbm(50, 100, fract_dim = 1.2)
'RandomFieldsUtils' will NOT use OMP
'RandomFields' will NOT use OMP

@mhesselbarth
Copy link
Contributor Author

Hm, it fails to build the vignette getstarted.Rmd at line 111: nr <- NLMR::nlm_fbm(50, 100, fract_dim = 1.2). Can you locally build NLMR without the vignette and try to run nr <- NLMR::nlm_fbm(50, 100, fract_dim = 1.2) manually to see what happens?

My R session crashes completely which also seems to be the case during the CI given the following error in the logs

 *** caught segfault ***
address 0x10f00001640, cause 'memory not mapped'

@bitbacchus
Copy link
Collaborator

Super weird. Can you maybe try to run some checks like described here? On my Linux machine they run flawlessly. The checks are run in a Linux docker container, but as docker uses the host OS kernel, maybe we can learn where the segfault happens exactly...

Do you guys have the same macOS? Or has someone a fancy m1 mac already>

@marcosci
Copy link
Collaborator

marcosci commented Dec 1, 2021

I saw Max's hometown village this weekend, fancy things suit him apparently 😄

Maybe Max needs to upgrade xcode? I updated it this week because of some sklearn stuff and I works ... can't think of a different reason.

@mhesselbarth
Copy link
Contributor Author

I can try to update XCode and see if that helps. Weird that it also fails during the CI run tho

@mhesselbarth
Copy link
Contributor Author

Still crashing my R session completely after updating XCode...no idea what is happening...

@bitbacchus
Copy link
Collaborator

bitbacchus commented Dec 16, 2021

Super weird. Can you maybe try to run some checks like described here? On my Linux machine they run flawlessly. The checks are run in a Linux docker container, but as docker uses the host OS kernel, maybe we can learn where the segfault happens exactly...

maybe this helps to find the issue... -> https://eco-programmers.github.io/brain/R/Debugging%20R%20Packages/

@mhesselbarth
Copy link
Contributor Author

mhesselbarth commented Dec 16, 2021

Right...I can have a look at this next week...

Since the CI also fails, doesn't seem to be a problem just on my laptop, right?

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

3 participants