-
Notifications
You must be signed in to change notification settings - Fork 68
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
nodeos randomly becomes unresponsive, consumes CPU #2230
Comments
Looks like the main thread died or deadlocked. Can you attach to it with a debugger and get backtraces of all the threads? |
I've generated a stack trace of all the threads with the following command:
|
Can you try this patch and let us know if it fixes the issue: diff --git a/libraries/chain/include/eosio/chain/thread_utils.hpp b/libraries/chain/include/eosio/chain/thread_utils.hpp
index d3e9e8a26..5abcb15b3 100644
--- a/libraries/chain/include/eosio/chain/thread_utils.hpp
+++ b/libraries/chain/include/eosio/chain/thread_utils.hpp
@@ -160,8 +160,9 @@ namespace eosio { namespace chain {
template<typename F>
auto post_async_task( boost::asio::io_context& ioc, F&& f ) {
auto task = std::make_shared<std::packaged_task<decltype( f() )()>>( std::forward<F>( f ) );
+ auto fut = task->get_future();
boost::asio::post( ioc, [task]() { (*task)(); } );
- return task->get_future();
+ return fut;
}
} } // eosio::chain |
Thank you @heifner. I have applied the patch and am in the process of testing it. I cannot reproduce the issue on demand, so it may be a few days before I have a result. |
No luck with that patch. |
@centromere I've been trying to reproduce this issue but so far have had no success. When you encounter this problem, are you performing any actions on the node? For example: are you periodically querying the Also, any additional information about the runtime environment -- even CPU and kernel version being used -- could be helpful. |
A periodic request to
I am syncing from genesis, and the unhealthy condition occurs at this block: |
Hello. I am running nodeos 5.0.0, compiled with GCC 11 and LLVM 11. Randomly throughout the day the node will stop responding to certain HTTP requests (but not others), and it also stops responding to most unix signals:
Here are some recent logs from stdout:
nodeos
is being invoked in this manner:Does anyone know what could be going wrong?
The text was updated successfully, but these errors were encountered: