Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[orchagent] Fix orchagent SEGV when PortConfigDone not set #803

Merged
merged 1 commit into from
Mar 7, 2019
Merged

[orchagent] Fix orchagent SEGV when PortConfigDone not set #803

merged 1 commit into from
Mar 7, 2019

Conversation

rameshsanth
Copy link

What I did
Fix uninitialized value access

Why I did it
To fix following error:
Feb 25 22:34:17.837004 switch120 NOTICE swss#orchagent: :- bake: Add warm input: BUFFER_PROFILE, 3
Feb 25 22:34:17.837092 switch120 NOTICE swss#orchagent: :- bake: Add warm input: BUFFER_QUEUE, 3
Feb 25 22:34:17.837687 switch120 ERR swss#orchagent: :- main: Failed due to exception: stoul
Feb 25 22:34:17.841919 switch120 INFO kernel: [ 35.606307] traps: orchagent[3721] general protection ip:49c16c sp:7ffde2755580 error:0
Feb 25 22:34:17.841922 switch120 WARNING kernel: [ 35.606312] in orchagent[400000+151000]
Feb 25 22:34:18.844587 switch120 INFO swss.sh[2027]: 2019-02-25 22:34:18,843 INFO success: buffermgrd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

How I verified it
Reproduced the condition (PortConfigDone not set) and verified the fix.
Logs from after the fix::
Feb 26 01:23:36.621760 switch120 NOTICE swss#orchagent: :- bake: Add warm input: BUFFER_PROFILE, 3
Feb 26 01:23:36.621854 switch120 NOTICE swss#orchagent: :- bake: Add warm input: BUFFER_QUEUE, 3
Feb 26 01:23:36.621905 switch120 NOTICE swss#orchagent: :- bake: foundPortConfigDone = 0
Feb 26 01:23:36.621959 switch120 NOTICE swss#orchagent: :- bake: foundPortInitDone = 0
Feb 26 01:23:36.622021 switch120 NOTICE swss#orchagent: :- bake: m_portTable->getKeys 0
Feb 26 01:23:36.622021 switch120 NOTICE swss#orchagent: :- bake: No port table, fallback to cold start
Feb 26 01:23:36.622175 switch120 NOTICE swss#orchagent: :- bake: Add warm input: INTF_TABLE, 0
Feb 26 01:23:36.622297 switch120 NOTICE swss#orchagent: :- bake: Add warm input: NEIGH_TABLE, 0

Details if related

@qiluo-msft
Copy link
Contributor

Thanks for fixing this bug! Could you add a vs test?

Copy link
Contributor

@qiluo-msft qiluo-msft left a comment

Choose a reason for hiding this comment

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

As comment

@rameshsanth
Copy link
Author

rameshsanth commented Feb 26, 2019 via email

@lguohan
Copy link
Contributor

lguohan commented Feb 28, 2019

retest this please

1 similar comment
@lguohan
Copy link
Contributor

lguohan commented Feb 28, 2019

retest this please

@lguohan lguohan dismissed qiluo-msft’s stale review March 7, 2019 08:06

the developer does not have the vs test setup right now.

@lguohan lguohan merged commit 5984e3a into sonic-net:master Mar 7, 2019
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this pull request Mar 1, 2023
Allow SAI xml dynamic config override when template is defined

Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants