orchagent core dump when executing with -s option (syncMode)#1014
Merged
stcheng merged 1 commit intosonic-net:masterfrom Aug 5, 2019
Merged
orchagent core dump when executing with -s option (syncMode)#1014stcheng merged 1 commit intosonic-net:masterfrom
stcheng merged 1 commit intosonic-net:masterfrom
Conversation
Collaborator
dzhangalibaba
commented
Aug 1, 2019
- before changes:
- orchagent create_switch first, which is using redis_generic_create() to write ASIC_DB, and syncd will handle this request, since syncd is in syncMode, a response with op "getresponse" is send via internal_syncd_api_send_response().
- but in orchagent , g_syncMode is not set yet at this moment, so there is no internal_api_wait_for_response() waiting the response generated by internal_syncd_api_send_response()
- later internal_redis_generic_get() is invoked and got the response which is not for it. That response cause get_switch_attr into segfault and orchagent exit
- after the changes:
- set g_syncMode first before create_switch
- internal_api_wait_for_response() will be there when using redis_generic_create() to consume the response generated via internal_syncd_api_send_response
- later, internal_redis_generic_get() got its expected response
Collaborator
Author
|
this issue is a must seen issue. Looks the merged syncMode commit is not tested |
Contributor
|
retest this please |
kcudnik
approved these changes
Aug 1, 2019
Collaborator
Author
|
looks the vs test itself has some issues? |
Contributor
|
yes seems like it, @lguohan have you seen this before? i saw other issues with tests before not related to actual PR, all of the error are: AHH it maybe related to the reboot of test bed today |
Contributor
|
retest this please |
3 similar comments
Contributor
|
retest this please |
Contributor
|
retest this please |
Contributor
|
retest this please |
stcheng
approved these changes
Aug 5, 2019
Contributor
|
Retest this please |
EdenGri
pushed a commit
to EdenGri/sonic-swss
that referenced
this pull request
Feb 28, 2022
The original fan status can be one of "OK", "Not OK", "N/A". This PR allows a new fan status "Updating". If fan status is not "true" or "false", display the status field value in CLI output.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.