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 hangs at switchorch due to erase operation on map #347

Closed
jipanyang opened this issue Oct 13, 2017 · 2 comments
Closed

orchagent hangs at switchorch due to erase operation on map #347

jipanyang opened this issue Oct 13, 2017 · 2 comments
Labels

Comments

@jipanyang
Copy link
Contributor

(gdb) bt
#0 0x00007febafeae697 in std::_Rb_tree_increment(std::_Rb_tree_node_base*) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1 0x0000000000485218 in operator++ (this=) at /usr/include/c++/4.9/bits/stl_tree.h:203
#2 erase (__position=..., this=0x2340f50) at /usr/include/c++/4.9/bits/stl_tree.h:867
#3 erase (__position=..., this=0x2340f50) at /usr/include/c++/4.9/bits/stl_map.h:732
#4 SwitchOrch::doTask (this=, consumer=...) at switchorch.cpp:95
#5 0x0000000000418860 in Orch::execute (this=this@entry=0x2340db0, tableName="SWITCH_TABLE") at orch.cpp:141
#6 0x0000000000410991 in OrchDaemon::start (this=this@entry=0x2340660) at orchdaemon.cpp:156
#7 0x0000000000408cb5 in main (argc=, argv=) at main.cpp:300

(gdb) p consumer.m_toSync
$8 = std::map with 0 elements
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x00007febafeae697 in std::_Rb_tree_increment(std::_Rb_tree_node_base*) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) bt
#0 0x00007febafeae697 in std::_Rb_tree_increment(std::_Rb_tree_node_base*) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1 0x0000000000485218 in operator++ (this=) at /usr/include/c++/4.9/bits/stl_tree.h:203
#2 erase (__position=..., this=0x2340f50) at /usr/include/c++/4.9/bits/stl_tree.h:867
#3 erase (__position=..., this=0x2340f50) at /usr/include/c++/4.9/bits/stl_map.h:732
#4 SwitchOrch::doTask (this=, consumer=...) at switchorch.cpp:95
#5 0x0000000000418860 in Orch::execute (this=this@entry=0x2340db0, tableName="SWITCH_TABLE") at orch.cpp:141
#6 0x0000000000410991 in OrchDaemon::start (this=this@entry=0x2340660) at orchdaemon.cpp:156
#7 0x0000000000408cb5 in main (argc=, argv=) at main.cpp:300
(gdb)

@stcheng
Copy link
Contributor

stcheng commented Oct 13, 2017

thanks for reporting this bug

@jipanyang
Copy link
Contributor Author

Already fixed with #348, closing it.

EdenGri pushed a commit to EdenGri/sonic-swss that referenced this issue Feb 28, 2022
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this issue Mar 1, 2023
[syncd] initiate warm shutdown when requested
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants