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

Fail with "overflow" when deleting deferred tx from genesis #691

Closed
zxcat opened this issue May 17, 2019 · 0 comments
Closed

Fail with "overflow" when deleting deferred tx from genesis #691

zxcat opened this issue May 17, 2019 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@zxcat
Copy link

zxcat commented May 17, 2019

STR

  1. Start node with genesis containing deferred transactions. Looks like transactions should not be expired.
  2. Wait for the start of blocks generation

Expected result

Deferred transactions applying and/or deleting from db

Actual results

nodeos crashes

Details

  1. The first issue is here:
    https://github.com/GolosChain/cyberway/blob/510d0df264ac365e257c8d8354a556726ad44549/libraries/chain/include/eosio/chain/resource_limits_private.hpp#L63
    looks like negative value ("freeing" ram) do not handled properly (there is remove_scheduled_transaction on stack)
  • Added neg || to the assert.
  1. Now it fails with EXC_BAD_ACCESS (code=1, address=0x48), callstack is:
    callstack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants