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

Test failure: plugin_test #1435

Closed
heifner opened this issue Jul 21, 2023 · 6 comments · Fixed by #1442
Closed

Test failure: plugin_test #1435

heifner opened this issue Jul 21, 2023 · 6 comments · Fixed by #1442
Assignees
Labels
bug Something isn't working 👍 lgtm OCI Work exclusive to OCI team triage

Comments

@heifner
Copy link
Member

heifner commented Jul 21, 2023

https://github.com/AntelopeIO/leap/actions/runs/5616780429/job/15219829929

terminate called after throwing an instance of 'eosio::chain::block_validate_exception'
  what():  Block exception
@heifner heifner added bug Something isn't working triage and removed triage labels Jul 21, 2023
@greg7mdp
Copy link
Contributor

greg7mdp commented Jul 21, 2023

I think it may be related to this change (I made) in include/appbase/application_instance.hpp:42, which was applied when you caught appbase to tip. It was part of my plugin startup/shutdown issue which had changes both in appbase and leap, but only the appbase PR was merged to main.

I'm looking into the issue.

@heifner
Copy link
Member Author

heifner commented Jul 21, 2023

Another failure: https://github.com/AntelopeIO/leap/actions/runs/5622859188/job/15236444961

warn  2023-07-21T13:33:39.792 plugin_te chain_plugin.cpp:1110         plugin_initialize    ] 3100000 misc_exception: Miscellaneous exception
failed to read response from monitor process
    {}
    plugin_test  compile_monitor.cpp:326 get_connection_to_compile_monitor

appbase: exception thrown during plugin "eosio::chain_plugin" initialization.
Miscellaneous exception
terminate called after throwing an instance of 'eosio::chain::misc_exception'
  what():  Miscellaneous exception

@heifner
Copy link
Member Author

heifner commented Jul 21, 2023

Looks like the terminate is because we are not joining the app_thread in test_read_only_trx.cpp on exception.

diff --git a/tests/test_read_only_trx.cpp b/tests/test_read_only_trx.cpp
index db36eea1e9..e8f2574fd9 100644
--- a/tests/test_read_only_trx.cpp
+++ b/tests/test_read_only_trx.cpp
@@ -111,6 +111,10 @@ void test_trxs_common(std::vector<const char*>& specific_args, bool test_disable
       plugin_promise.set_value( {app->find_plugin<producer_plugin>(), app->find_plugin<chain_plugin>()} );
       app->exec();
    } );
+   fc::scoped_exit<std::function<void()>> on_except = [&](){
+      if (app_thread.joinable())
+         app_thread.join();
+   };
 
    auto[prod_plug, chain_plug] = plugin_fut.get();
 

@greg7mdp
Copy link
Contributor

Nice find. I am having a bad time trying to debug this as it happens intermittently. This definitely seems needed!

@heifner
Copy link
Member Author

heifner commented Jul 21, 2023

@greg7mdp
Copy link
Contributor

greg7mdp commented Jul 21, 2023

Could this change trigger the issue?

heifner added a commit that referenced this issue Jul 21, 2023
heifner added a commit that referenced this issue Jul 22, 2023
heifner added a commit that referenced this issue Jul 24, 2023
heifner added a commit that referenced this issue Jul 24, 2023
heifner added a commit that referenced this issue Jul 24, 2023
heifner added a commit that referenced this issue Jul 24, 2023
Test Fix: Controller calls only valid when building a block
@github-project-automation github-project-automation bot moved this from Todo to Done in Team Backlog Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 👍 lgtm OCI Work exclusive to OCI team triage
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants