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

masternode debug on inactive masternode may result in deadlock of threads #31

Open
ciripel opened this issue Feb 1, 2021 · 0 comments

Comments

@ciripel
Copy link
Collaborator

ciripel commented Feb 1, 2021

Failed to verify masternode status internal error.
Confirmed not modified masternode returned this error after some time.
Not capable masternode: Could not find suitable coins!
looks like nodes get stuck after losing coins
some time after that
image
based on above output
all problematic nodes got into fcked up state after improper activation
you can ignore crossed nodes, these 2 works
others will have to be probably added again and users will have to provide new mnkeys and new outputs
...
alright
I believe that this is related to activation because everything else is activated
and works without issues
so this is most probable scenario right now
...
image

image
looks like issue may be in new getblocktemplate

this is where are stuck nodes looping:
https://github.com/TENTOfficial/TENT/blob/master/src/bitcoind.cpp#L45
here is wallet thread: https://github.com/TENTOfficial/TENT/blob/master/src/wallet/walletdb.cpp#L1083
msg handler thread: https://github.com/TENTOfficial/TENT/blob/master/src/main.cpp#L6239
opencon thread: https://github.com/TENTOfficial/TENT/blob/master/src/main.cpp#L308
addcoin thread same as opencon
snowgem-net thread: https://github.com/TENTOfficial/TENT/blob/master/src/main.cpp#L336
obfusca thread: https://github.com/TENTOfficial/TENT/blob/master/src/wallet/wallet.cpp#L4042
scriptc thread: https://github.com/TENTOfficial/TENT/blob/master/src/checkqueue.h#L102
all 14 or 15 scriptc threads are on same line
so deadlock

If we find more we add more info.

@ciripel ciripel changed the title Daemon enter non-responsive state if too many rpc calls are made on it with a Hot Node, waiting for activation status. masternode debug on inactive masternode may result in deadlock of threads Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants