Skip to content

Intel segfault when detecting number of threads #221

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

Closed
asardaes opened this issue Jun 23, 2024 · 7 comments
Closed

Intel segfault when detecting number of threads #221

asardaes opened this issue Jun 23, 2024 · 7 comments

Comments

@asardaes
Copy link

Hello, I noticed that my package currently has additional issues on CRAN for the Intel checks. There's a segfault when calling defaultNumThreads:

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

Traceback:
 1: RcppParallel::defaultNumThreads()
 2: Sys.getenv("RCPP_PARALLEL_NUM_THREADS", RcppParallel::defaultNumThreads())
 3: get_nthreads()
 4: DBA(CharTraj[5:1], CharTraj[[1]], trace = TRUE)
An irrecoverable exception occurred. R is aborting now ...

Is this a known issue?

@kevinushey
Copy link
Contributor

Thanks for the bug report -- I wonder if there are any other CRAN packages affected; that is, I wonder if the issue is somehow unique to your package, or if any package trying to use defaultNumThreads() is affected.

@asardaes
Copy link
Author

asardaes commented Jul 2, 2024

The only other example I found is detrendr, but that package is letting tests run in parallel, so it seems the main traces get lost, so I'm not 100% sure where it's crashing.

@asardaes
Copy link
Author

I should have looked more closely at the parent directory of the server with the results. These 2 packages show the same problem:

@kevinushey
Copy link
Contributor

Thanks -- I think we can conclude the issue needs to be fixed in RcppParallel (or in Intel's compiler). I'll try to investigate further; let me know if CRAN is giving you a hard time on these issues and I can try to prioritize.

@asardaes
Copy link
Author

Thanks, I haven't received anything from CRAN so far, in fact I'm not sure if their Intel checks are mostly testing the waters to see what's broken (the installation log even has warnings about deprecations in std code). I do plan to submit an update soon, so I can let you know if they already consider that a blocker or not.

@asardaes
Copy link
Author

asardaes commented Jul 29, 2024

My update was allowed to go through, but CRAN did ask me to check that this issue is not forgotten, so I imagine they will eventually support the Intel compiler more officially.

@asardaes
Copy link
Author

asardaes commented Sep 9, 2024

I don't know if CRAN changed something or the latest RcppParallel release fixed something related to this, but the issue appears to be gone.

@asardaes asardaes closed this as completed Sep 9, 2024
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