Skip to content

Remove try/catch for correct coredump file#790

Merged
stcheng merged 2 commits intosonic-net:masterfrom
jipanyang:try_catch
Jun 5, 2019
Merged

Remove try/catch for correct coredump file#790
stcheng merged 2 commits intosonic-net:masterfrom
jipanyang:try_catch

Conversation

@jipanyang
Copy link
Contributor

Signed-off-by: Jipan Yang jipan.yang@alibaba-inc.com

What I did

This is a try to work around the coredump create issue: #734

Why I did it

How I verified it
core dump with right stack trace created.

Details if related
Actually It might be caused by incorrect destruct of multiple orch ( inter-dependency, order and etc.), which triggered more segmentation during try/catch stack unwinding, then only the latest segfault got recorded.

If people have idea about how to fix the possible orch destruct issue, that would be better.

Signed-off-by: Jipan Yang <jipan.yang@alibaba-inc.com>
@prsunny
Copy link
Collaborator

prsunny commented Feb 19, 2019

@qiluo-msft has fixed an issue with stack trace during orchagent crash. Request @qiluo-msft to review this.

@qiluo-msft
Copy link
Contributor

Could you elaborate or give an example of below observation?

Actually It might be caused by incorrect destruct of multiple orch ( inter-dependency, order and etc.), which triggered more segmentation during try/catch stack unwinding, then only the latest segfault got recorded.

I believe it is a bug and we should fix it.

@lguohan lguohan requested a review from qiluo-msft April 21, 2019 22:11
@qiluo-msft
Copy link
Contributor

Can we define a function like SWSS_LOG_STACK and use it here?


auto orchDaemon = make_shared<OrchDaemon>(&appl_db, &config_db, &state_db);

try
Copy link
Contributor

Choose a reason for hiding this comment

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

could you also remove the try bracket and the extra indentation as well?

Signed-off-by: Jipan Yang <jipan.yang@alibaba-inc.com>
@stcheng stcheng merged commit 8f52eb3 into sonic-net:master Jun 5, 2019
yxieca pushed a commit that referenced this pull request Sep 23, 2019
Signed-off-by: Jipan Yang <jipan.yang@alibaba-inc.com>
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this pull request Mar 1, 2023
Reduce log level of redis channel 'wait' to debug
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
Signed-off-by: Jipan Yang <jipan.yang@alibaba-inc.com>
jianyuewu pushed a commit to jianyuewu/sonic-swss that referenced this pull request Dec 24, 2025
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.

5 participants