RcppCore / RcppCore/RcppParallel
TBB issues when CRAN runs tests on package
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 173
- Forks
- 60
- Avg merge
- 1h 55m
- Merged PRs (30d)
- 2
Description
Firstly, please direct me to a more suitable list if this is not where I should seek help with RcppParallel.
CRAN would like me to fix clang-ASAN and clang-UBSAN issues from RcppParallel when I submit packages 'secr' and 'openCR'. These are completely arcane to me. The problem only seems to arise when running tests. Is there a setting in RcppParallel >=5.1.1 that will get me through?
The test results are at
https://www.stats.ox.ac.uk/pub/bdr/memtests/clang-ASAN/secr/tests/testthat.Rout.fail
and
https://www.stats.ox.ac.uk/pub/bdr/memtests/clang-UBSAN/openCR/tests/testthat.Rout
Here is a typical snippet from the first:
library(testthat)
test_check("secr")
Loading required package: secr
This is secr 4.4.1. For overview type ?secr
../../src/tbb/scheduler.cpp:328:16: runtime error: member call on address 0x7f795c81ff40 which does not point to an object of type 'tbb::task'
0x7f795c81ff40: note: object has invalid vptr
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Thanks
Murray
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with src/tbb/scheduler.cpp at line 328 and the linked clang-ASAN and clang-UBSAN test outputs. Reproduce the reports by running testthat::test_check for secr and openCR under the sanitizer configurations. Done means identifying the RcppParallel cause and either eliminating the invalid tbb::task report or documenting the required supported setting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, r
- Domain
- backend, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100