Skip to content

Conversation

@heifner
Copy link
Contributor

@heifner heifner commented Dec 5, 2025

It is possible due to an interrupt that the controller has stopped applying blocks. Give it a kick to make sure it continues.

I was not able to reproduce the problem, but looking at the logs I think this will fix the issue. Hopeful, to get feedback from reporter if this fixes the issue.

Resolves #1878

…plying blocks. Give it a kick to make sure it continues.
@greg7mdp
Copy link
Contributor

greg7mdp commented Dec 5, 2025

hum, looking at the code I'm wondering if producer_plugin::process_blocks() has some possible unbounded recursion (probably not likely at all though).

@heifner
Copy link
Contributor Author

heifner commented Dec 5, 2025

hum, looking at the code I'm wondering if producer_plugin::process_blocks() has some possible unbounded recursion (probably not likely at all though).

The post starts a new thread stack. If it did dispatch then it could potentially be unbounded recursion.

@greg7mdp
Copy link
Contributor

greg7mdp commented Dec 5, 2025

The post starts a new thread stack. If it did dispatch then it could potentially be unbounded recursion.

Yes, but the post calls process_incoming_blocks(process_incoming_blocks); which calls itself recursively, so just executing the posted task could cause a stack overflow right?

@heifner
Copy link
Contributor Author

heifner commented Dec 5, 2025

The post starts a new thread stack. If it did dispatch then it could potentially be unbounded recursion.

Yes, but the post calls process_incoming_blocks(process_incoming_blocks); which calls itself recursively, so just executing the posted task could cause a stack overflow right?

No.

process_incoming_blocks -> calls on_incoming_block, then calls post( process_incoming_blocks ), and then current stack ends

The post'ed task is picked up to execute:

process_incoming_blocks -> calls on_incoming_block, then calls post( process_incoming_blocks ), and then current stack ends

etc.

@greg7mdp
Copy link
Contributor

greg7mdp commented Dec 5, 2025

How did I miss that. Thanks for pointing it out!

cc32d9 added a commit to eos-amsterdam-rnd/antelope_spring_ce that referenced this pull request Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

P2P sync issue

2 participants