Skip to content

RDKCOM-5498: RDKBDEV-3347 Fix sometimes processes will crash when getting dynamic nodes#72

Merged
snayak002c merged 2 commits intordkcentral:developfrom
owen-lu-sercomm:RDKBDEV-3347
Jan 27, 2026
Merged

RDKCOM-5498: RDKBDEV-3347 Fix sometimes processes will crash when getting dynamic nodes#72
snayak002c merged 2 commits intordkcentral:developfrom
owen-lu-sercomm:RDKBDEV-3347

Conversation

@owen-lu-sercomm
Copy link
Copy Markdown
Contributor

Reason for change:
Sometimes processes will crash when getting dynamic nodes. Take wifi for example, the object record will be deleted and create again if dynamic node need repopulate when get value. AssociatedDevice only judge if the ReqCount increase to decide repopulate. The ReqCount increase before the Ts lock. So get multi parameters like Device.WiFi.AccessPoint.1.AssociatedDevice.1.MACAddress and Device.WiFi.AccessPoint.2.AssociatedDevice.1.MACAddress at the same time, if other thread try to get nodes between the two parameters, the first parameter's record may be freed when getting the second parameter. It sometimes will cause the crash.
Test Procedure:

  1. Do full service longrun for about 48h
  2. Check if there are process crash caused by getting dynamic nodes or not
    Risks: Low

Signed-off-by: Owen Lu owen_lu@sercomm.com

…nodes

Reason for change:
Sometimes processes will crash when getting dynamic nodes. Take wifi for example, the object record will be deleted and create again if dynamic node need repopulate when get value. AssociatedDevice only judge if the ReqCount increase to decide repopulate. The ReqCount increase before the Ts lock. So get multi parameters like Device.WiFi.AccessPoint.1.AssociatedDevice.1.MACAddress and Device.WiFi.AccessPoint.2.AssociatedDevice.1.MACAddress at the same time, if other thread try to get nodes between the two parameters, the first parameter's record may be freed when getting the second parameter. It sometimes will cause the crash.
Test Procedure:
1. Do full service longrun for about 48h
2. Check if there are process crash caused by getting dynamic nodes or not
Risks: Low

Signed-off-by: Owen Lu <owen_lu@sercomm.com>
@owen-lu-sercomm owen-lu-sercomm requested review from a team as code owners January 20, 2026 09:57
@pradeeptakdas pradeeptakdas changed the title RDKBDEV-3347:Fix sometimes processes will crash when getting dynamic nodes RDKCOM-5498: RDKBDEV-3347 Fix sometimes processes will crash when getting dynamic nodes Jan 20, 2026
@snayak002c snayak002c merged commit 0e395a5 into rdkcentral:develop Jan 27, 2026
4 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants