ODR issue for gcc san with CRAN version
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- cpp
- Domain
- build-system
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.
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)
- Dominant language
- C++
- Stars
- 173
- Forks
- 60
- Avg merge
- 1h 55m
- Merged PRs (30d)
- 2
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.
More from RcppCore/RcppParallel
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
RcppCore/RcppParallel#239 · 6 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 20/100
RcppCore/RcppParallel#228 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
RcppCore/RcppParallel#227 · 6 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
RcppCore/RcppParallel#216 · 5 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
RcppCore/RcppParallel#213 ·
All issues in RcppCore/RcppParallel
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100