-
Notifications
You must be signed in to change notification settings - Fork 273
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
Prevent sonic-db-cli generate core dump #749
Merged
Merged
Conversation
This file contains 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
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
qiluo-msft
approved these changes
Feb 21, 2023
yxieca
pushed a commit
that referenced
this pull request
Feb 21, 2023
#### Why I did it sonic-db-cli is porting from python version. in python version, when any exception happen sonic-db-cli will crash but will not generate core dump file. but in c++ version crash will generate a core dump. Fix sonic-db-cli to avoid a core dump file generated. #### How I did it Catch all exception in sonic-db-cli to avoid core dump generated. #### How to verify it Pass all UT and E2E test cases. #### Which release branch to backport (provide reason below if selected) <!-- - Note we only backport fixes to a release branch, *not* features! - Please also provide a reason for the backporting below. - e.g. - [x] 202006 --> - [ ] 201811 - [ ] 201911 - [ ] 202006 - [ ] 202012 - [ ] 202106 - [ ] 202111 #### Description for the changelog Fix sonic-db-cli to avoid a core dump file generated. #### Link to config_db schema for YANG module changes <!-- Provide a link to config_db schema for the table for which YANG model is defined Link should point to correct section on https://github.com/Azure/SONiC/wiki/Configuration. --> #### A picture of a cute animal (not mandatory but encouraged)
AntonHryshchuk
added a commit
to AntonHryshchuk/sonic-buildimage
that referenced
this pull request
Feb 22, 2023
Update sonic-swss-common submodule pointer to include the following: * 3352881 Prevent sonic-db-cli generate core dump ([sonic-net#749](sonic-net/sonic-swss-common#749)) * 43cadec Add ProfileProvider class to support read profile config from PROFILE_DB. ([sonic-net#683](sonic-net/sonic-swss-common#683)) * 8b09f90 Update path to sairedis tests ([sonic-net#747](sonic-net/sonic-swss-common#747)) * 85f3776 Non recursive automake and Debian packaging changes ([sonic-net#700](sonic-net/sonic-swss-common#700)) Signed-off-by: AntonHryshchuk <[email protected]>
dprital
added a commit
to dprital/sonic-buildimage
that referenced
this pull request
Feb 23, 2023
Update sonic-swss-common submodule pointer to include the following: * 565ad4b Fix common path issue ([sonic-net#751](sonic-net/sonic-swss-common#751)) * 3352881 Prevent sonic-db-cli generate core dump ([sonic-net#749](sonic-net/sonic-swss-common#749)) * 43cadec Add ProfileProvider class to support read profile config from PROFILE_DB. ([sonic-net#683](sonic-net/sonic-swss-common#683)) * 8b09f90 Update path to sairedis tests ([sonic-net#747](sonic-net/sonic-swss-common#747)) * 85f3776 Non recursive automake and Debian packaging changes ([sonic-net#700](sonic-net/sonic-swss-common#700)) Signed-off-by: dprital <[email protected]>
8 tasks
lguohan
pushed a commit
to sonic-net/sonic-buildimage
that referenced
this pull request
Feb 27, 2023
Update sonic-swss-common submodule pointer to include the following: * 565ad4b Fix common path issue ([#751](sonic-net/sonic-swss-common#751)) * 3352881 Prevent sonic-db-cli generate core dump ([#749](sonic-net/sonic-swss-common#749)) * 43cadec Add ProfileProvider class to support read profile config from PROFILE_DB. ([#683](sonic-net/sonic-swss-common#683)) * 8b09f90 Update path to sairedis tests ([#747](sonic-net/sonic-swss-common#747)) * 85f3776 Non recursive automake and Debian packaging changes ([#700](sonic-net/sonic-swss-common#700)) Signed-off-by: dprital <[email protected]>
StormLiangMS
pushed a commit
that referenced
this pull request
Mar 7, 2023
#### Why I did it sonic-db-cli is porting from python version. in python version, when any exception happen sonic-db-cli will crash but will not generate core dump file. but in c++ version crash will generate a core dump. Fix sonic-db-cli to avoid a core dump file generated. #### How I did it Catch all exception in sonic-db-cli to avoid core dump generated. #### How to verify it Pass all UT and E2E test cases. #### Which release branch to backport (provide reason below if selected) <!-- - Note we only backport fixes to a release branch, *not* features! - Please also provide a reason for the backporting below. - e.g. - [x] 202006 --> - [ ] 201811 - [ ] 201911 - [ ] 202006 - [ ] 202012 - [ ] 202106 - [ ] 202111 #### Description for the changelog Fix sonic-db-cli to avoid a core dump file generated. #### Link to config_db schema for YANG module changes <!-- Provide a link to config_db schema for the table for which YANG model is defined Link should point to correct section on https://github.com/Azure/SONiC/wiki/Configuration. --> #### A picture of a cute animal (not mandatory but encouraged)
saiarcot895
added a commit
to saiarcot895/sonic-buildimage
that referenced
this pull request
Mar 7, 2023
Update sonic-swss-common submodule pointer to include the following: * 565ad4b Fix common path issue ([sonic-net#751](sonic-net/sonic-swss-common#751)) * 3352881 Prevent sonic-db-cli generate core dump ([sonic-net#749](sonic-net/sonic-swss-common#749)) * 43cadec Add ProfileProvider class to support read profile config from PROFILE_DB. ([sonic-net#683](sonic-net/sonic-swss-common#683)) * 8b09f90 Update path to sairedis tests ([sonic-net#747](sonic-net/sonic-swss-common#747)) * 85f3776 Non recursive automake and Debian packaging changes ([sonic-net#700](sonic-net/sonic-swss-common#700)) This is a reland of sonic-net#13950, with the debug image build fix. Signed-off-by: Saikrishna Arcot <[email protected]>
8 tasks
AntonHryshchuk
added a commit
to AntonHryshchuk/sonic-buildimage
that referenced
this pull request
Mar 8, 2023
Update sonic-swss-common submodule pointer to include the following: * 06ffb51 Define ACL_TABLE and ACL_RULE table in STATE_DB ([sonic-net#748](sonic-net/sonic-swss-common#748)) * 1b369ab [ci] Fix apt-get install unable locate package issue. ([sonic-net#753](sonic-net/sonic-swss-common#753)) * 619d4ec Improve unit test for go wrapper ([sonic-net#752](sonic-net/sonic-swss-common#752)) * 565ad4b Fix common path issue ([sonic-net#751](sonic-net/sonic-swss-common#751)) * 3352881 Prevent sonic-db-cli generate core dump ([sonic-net#749](sonic-net/sonic-swss-common#749)) * 43cadec Add ProfileProvider class to support read profile config from PROFILE_DB. ([sonic-net#683](sonic-net/sonic-swss-common#683)) * 8b09f90 Update path to sairedis tests ([sonic-net#747](sonic-net/sonic-swss-common#747)) * 85f3776 Non recursive automake and Debian packaging changes ([sonic-net#700](sonic-net/sonic-swss-common#700)) Signed-off-by: AntonHryshchuk <[email protected]>
xumia
pushed a commit
to xumia/sonic-buildimage-1
that referenced
this pull request
Mar 10, 2023
Update sonic-swss-common submodule pointer to include the following: * 565ad4b Fix common path issue ([sonic-net#751](sonic-net/sonic-swss-common#751)) * 3352881 Prevent sonic-db-cli generate core dump ([sonic-net#749](sonic-net/sonic-swss-common#749)) * 43cadec Add ProfileProvider class to support read profile config from PROFILE_DB. ([sonic-net#683](sonic-net/sonic-swss-common#683)) * 8b09f90 Update path to sairedis tests ([sonic-net#747](sonic-net/sonic-swss-common#747)) * 85f3776 Non recursive automake and Debian packaging changes ([sonic-net#700](sonic-net/sonic-swss-common#700)) Signed-off-by: dprital <[email protected]>
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.
Why I did it
sonic-db-cli is porting from python version. in python version, when any exception happen sonic-db-cli will crash but will not generate core dump file. but in c++ version crash will generate a core dump.
Fix sonic-db-cli to avoid a core dump file generated.
How I did it
Catch all exception in sonic-db-cli to avoid core dump generated.
How to verify it
Pass all UT and E2E test cases.
Which release branch to backport (provide reason below if selected)
Description for the changelog
Fix sonic-db-cli to avoid a core dump file generated.
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)