ChimeraTK / ChimeraTK/DeviceAccess
Crash when trying to obtain dummy-writeable accessor for 2D DMA register
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 12
- Forks
- 12
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 13
Description
The problem is observed in QtHardMon: when clicking on a read-only 2D register a null-pointer assertion is thrown in line 113 of DummyBackendBase.h:
boost::dynamic_pointer_cast<NumericAddressedBackendRegisterAccessor<UserType, FixedPointConverter, false>>(accessor)->makeWriteable();
I guess this because the dynamic_cast of the accessor into a NumericAddressedBackendRegisterAccessor is simply wrong here.
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 QtHardMon crash by clicking a read-only 2D register, then inspect line 113 of DummyBackendBase.h and trace the accessor type used there. The issue is done when this action no longer triggers the null-pointer assertion and the accessor behavior remains correct for the affected register.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100