You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a quick attempt to fix the bug align the unexpected behavior in block 19794433 tx 0xb487d37c4f13407af55797add295c127f19ea6c823b8ba4e53fe1a3457d902c9 where JUMPs get performed and their destination added to the JUMPDEST table despite of an Out-of-Gas condition.
I am going to add a regression test as part of this PR.
Just to clarify, is this "bug" affecting develop too or is it purely related to the structlogs interaction in the JD branch?
I'd tend to believe it's the latter (in which case we may want to target your opened PR instead of develop, but I haven't tested it)
The consequence is, that the jump is performed before the OOG is detected. The endpoint does not perform the jump.
This difference results in the extra JD offset in the simulation.
0000022d: DUP3
0000022e: DUP1
0000022f: ISZERO
00000230: PUSH2 0x237
00000233: JUMPI <---- OOG
00000234: DUP3
00000235: DUP3
00000236: RETURN
00000237: JUMPDEST <---- shouldn't be in the reached set.
Hmm, the current develop doesn't run into any issues with the failed JUMP though (I just tested it, as OOG exceptions are properly caught), this ordering logic seems specific to the way structlogs report the ops.
As long as the switch is harmless with simulations, it's fine to merge against develop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a quick attempt to
fix the bugalign the unexpected behavior in block19794433tx0xb487d37c4f13407af55797add295c127f19ea6c823b8ba4e53fe1a3457d902c9whereJUMPs get performed and their destination added to theJUMPDESTtable despite of an Out-of-Gas condition.I am going to add a regression test as part of this PR.
Offending instruction from RPC structlog: