Skip to content

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

Merged
lguohan merged 1 commit intosonic-net:masterfrom
rameshsanth:master
Mar 7, 2019
Merged

[orchagent] Fix orchagent SEGV when PortConfigDone not set#803
lguohan merged 1 commit intosonic-net:masterfrom
rameshsanth:master

Conversation

@rameshsanth
Copy link
Copy Markdown

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

@jleveque jleveque requested a review from qiluo-msft February 26, 2019 02:18
@qiluo-msft
Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
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
Copy Markdown
Author

rameshsanth commented Feb 26, 2019 via email

@lguohan
Copy link
Copy Markdown
Contributor

lguohan commented Feb 28, 2019

retest this please

1 similar comment
@lguohan
Copy link
Copy Markdown
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>
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
jianyuewu pushed a commit to jianyuewu/sonic-swss that referenced this pull request Dec 24, 2025
* Add batch support in zmq.

Change-Id: Iec83d86c8541598467a7eefaa37cc232326570f4

* Trigger test

Change-Id: I6cdf31582814724792e2046a49592be13725a653
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