Skip to content

RDKEMW-25809:Fix for hang in RDKPerf module - #17

Open
vrenu2018 wants to merge 4 commits into
rdkcentral:mainfrom
vrenu2018:topic/RDKEMW-25809
Open

vrenu2018 wants to merge 4 commits into
rdkcentral:mainfrom
vrenu2018:topic/RDKEMW-25809

Conversation

@vrenu2018

Copy link
Copy Markdown

Reason for change: Infinite while loop runs when Task() is executed after StopTask() is called
Test Procedure: Playback VIPA content multiple times and ensure that gst-scan hang is not seen
Risks: low

Reason for change: Infinite while loop runs when Task() is executed after StopTask() is called
Test Procedure: Playback VIPA content multiple times and ensure that gst-scan hang is not seen
Risks: low

Signed-off-by: Renuka Varry <rvarry049_comcast@cable.comcast.com>
Copilot AI lite review requested due to automatic review settings September 27, 2026 17:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The unsynchronized m_bContinue accesses leave a critical data race unresolved.

Review effort: Lite
Findings: 1 High severity

Open (1)
What changed in this PR

Fixes a hang in the RDKPerf module when Task() runs after StopTask().

Changes:

  • Adds an early stop-state check in TimerCallback::Task().
  • Synchronizes startup state inspection.
  • Leaves m_bContinue accesses unsynchronized.
File Summary
rdkperf/​rdk_perf.cpp Updates timer task startup and early termination handling.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread rdkperf/rdk_perf.cpp Outdated
Reason for change: Infinite while loop runs when Task() is executed after StopTask() is called
Test Procedure: Playback VIPA content multiple times and ensure that gst-scan hang is not seen
Risks: low

Signed-off-by: Renuka Varry <rvarry049_comcast@cable.comcast.com>
Copilot AI review requested due to automatic review settings September 27, 2026 17:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

Cancellation and startup state changes are not atomic, so the hang can still occur.

Review effort: Lite
Findings: 1 High severity

Open (1)

Reason for change: Infinite while loop runs when Task() is executed after StopTask() is called
Test Procedure: Playback VIPA content multiple times and ensure that gst-scan hang is not seen
Risks: low

Signed-off-by: Renuka Varry <rvarry049_comcast@cable.comcast.com>
Copilot AI review requested due to automatic review settings September 28, 2026 16:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The shutdown state is not latched, allowing Task() to restart indefinitely after StopTask().

Review effort: Lite
Findings: 1 High severity

Open (1)
Resolved since last review (1)

Comment thread rdkperf/rdk_perf.cpp Outdated
Reason for change: Infinite while loop runs when Task() is executed after StopTask() is called
Test Procedure: Playback VIPA content multiple times and ensure that gst-scan hang is not seen
Risks: low

Signed-off-by: Renuka Varry <rvarry049_comcast@cable.comcast.com>
Copilot AI review requested due to automatic review settings September 28, 2026 19:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants