RcppCore / RcppCore/RcppParallel
ODR issue for gcc san with CRAN version
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 173
- Forks
- 60
- Avg merge
- 1h 55m
- Merged PRs (30d)
- 2
Description
I am getting the following ODR violation; CRAN asked me to fix ODR violations in my package, and this one came up:
==136164==ERROR: AddressSanitizer: odr-violation (0x7efd2f2f1240):
[1] size=168 '__itt__ittapi_global' ../../src/tbb/tools_api/ittnotify_static.c:231:14
[2] size=168 '__itt__ittapi_global' ../../src/tbb/tools_api/ittnotify_static.c:231:14
These globals were registered at these points:
[1]:
#0 0x7efd3c896b78 (/usr/lib/x86_64-linux-gnu/libasan.so.6+0x37b78)
#1 0x7efd2f24ab91 in _sub_I_00099_1 (/usr/local/RDsan/lib/R/site-library/RcppParallel/lib/libtbbmalloc.so.2+0xd6b91)
#2 0x7efd3d244dbd (/lib64/ld-linux-x86-64.so.2+0x11dbd)
[2]:
#0 0x7efd3c896b78 (/usr/lib/x86_64-linux-gnu/libasan.so.6+0x37b78)
#1 0x7efd2f5dec70 in _sub_I_00099_1 (/usr/local/RDsan/lib/R/site-library/RcppParallel/lib/libtbb.so.2+0x240c70)
#2 0x7efd3d244dbd (/lib64/ld-linux-x86-64.so.2+0x11dbd)
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/tools_api/ittnotify_static.c at line 231 and the sanitizer traces for libtbbmalloc.so.2 and libtbb.so.2. Investigate why both libraries register __itt__ittapi_global when loaded together under CRAN's GCC sanitizer environment. Done means the reported ODR violation no longer occurs in that environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100