ChimeraTK / ChimeraTK/DeviceAccess

Crash when trying to obtain dummy-writeable accessor for 2D DMA register

Open
#85 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.