ChimeraTK / ChimeraTK/VirtualLab
ASAN job is reporting issues
Open
Nobody has claimed this yet.
redmine
- Dominant language
- C++
- Stars
- 2
- Forks
- 1
- Avg merge
- 33m
- Merged PRs (30d)
- 2
Description
A bad cast and a memory leak are reported
2: /scratch/source/include/VirtualLabBackend.h:389:7: runtime error: downcast of address 0x61d000002880 which does not point to an object of type 'VirtualTestDevice'
2: 0x61d000002880: note: object is of type 'ChimeraTK::VirtualLab::VirtualLabBackend<VirtualTestDevice>'
2: 01 00 00 5f 60 85 3c 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 11 84 40 bb
2: ^~~~~~~~~~~~~~~~~~~~~~~
2: vptr for 'ChimeraTK::VirtualLab::VirtualLabBackend<VirtualTestDevice>'
2: SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /scratch/source/include/VirtualLabBackend.h:389:7 in
2: ==102==ERROR: LeakSanitizer: detected memory leaks
2:
2: Direct leak of 256 byte(s) in 4 object(s) allocated from:
2: #0 0x9fc34f in realloc (/scratch/build-ChimeraTK-VirtualLab/testVirtualLab+0x9fc34f)
2: #1 0x7fd2a6098333 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x90333)
2:
2: SUMMARY: AddressSanitizer: 256 byte(s) leaked in 4 allocation(s).
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
Reproduce the ASAN findings with the testVirtualLab executable, then inspect include/VirtualLabBackend.h around line 389. Trace the reported downcast and leak back to their ownership and lifetime, and consider the issue complete when the test no longer reports either sanitizer failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100