Skip to content

RUM-11210: Fix RumAgent crash when initialising uploader#102

Merged
ambushwork merged 1 commit into
developfrom
yl/fix-rum-agent-crash
Aug 11, 2025
Merged

RUM-11210: Fix RumAgent crash when initialising uploader#102
ambushwork merged 1 commit into
developfrom
yl/fix-rum-agent-crash

Conversation

@ambushwork

Copy link
Copy Markdown
Member

What does this PR do?

There is a concurrent issue that, uploader is assigned with invalid(null) value on L213, then checking m.top.uploader, it is not null anymore (m.top.x is a global attribute, can be assigned from any other places), but local attribute uploader has the copy of invalid, then the if block is skipped, which causes the crash of calling method on invalid attribute.

The way of fixing it, is to always check local attribute instead of global attribute

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@ambushwork
ambushwork requested a review from a team as a code owner August 11, 2025 13:17
@ambushwork
ambushwork merged commit 29689fe into develop Aug 11, 2025
7 checks passed
@ambushwork
ambushwork deleted the yl/fix-rum-agent-crash branch August 11, 2025 14:38
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