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

used call_rpcs_sync function maybe cause crash or infinite loop #1103

Open
xihong08 opened this issue Aug 6, 2022 · 3 comments
Open

used call_rpcs_sync function maybe cause crash or infinite loop #1103

xihong08 opened this issue Aug 6, 2022 · 3 comments
Assignees
Labels
good-first-issue type/bug This issue reports a bug.

Comments

@xihong08
Copy link

xihong08 commented Aug 6, 2022

Bug Report
We used pegasus 2.0 and pegasus_shell disk_capacity command to query cluster disk's Usage
sometimes disk_capacity -d cause crash, sometimes cause infinite loop, it Occurs occasionally.
I tracked the pegasus_shell dead and cpu 100% when i frequent use disk_capacity -d
the stack roughly as follows:

#0 in std::_Rb_tree_increment(std::_Rb_tree_node_base const*) 
#1 in std::_Rb_tree_const_iterator  gcc10/include/10.2.0/bits/stl_tree.h:376
#2 in std::_Rb_tree    stl_tree.h:2531
#3 in std::_Rb_tree    stl_tree.h:2542
#4 in std::map           stl_map.h:1069
#5 in call_rpcs_sync   replication_ddl_client.h:306

rpcs.erase(rpc.first) cause this proplem
The above bug most likely multithreading cause by Insecure operation at variable rpcs

@xihong08 xihong08 added the type/bug This issue reports a bug. label Aug 6, 2022
@acelyc111
Copy link
Member

Thanks for your report, we'll fix it later.

ZhongChaoqiang pushed a commit to ZhongChaoqiang/incubator-pegasus that referenced this issue Nov 28, 2022
@VirendraYadav1234
Copy link

I want to work on this issue please assign me this issue

@acelyc111
Copy link
Member

I want to work on this issue please assign me this issue

@VirendraYadav1234 Thanks, assigned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good-first-issue type/bug This issue reports a bug.
Projects
None yet
Development

No branches or pull requests

3 participants