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

Add zero check in tx.Sender func #10737

Merged
merged 3 commits into from
Jun 28, 2024
Merged

Add zero check in tx.Sender func #10737

merged 3 commits into from
Jun 28, 2024

Conversation

somnathb1
Copy link
Contributor

This is an additional check as #9990 could not be reliably reproduced.
The conjecture is that at some point there is a race condition somewhere related to either storing snapshot file for an older block or updating the DB for a more recent block.
Somewhere the code sets sender value directly to zero or overwrites a pointer, leading to sender address being incorrectly assigned to ZERO.

@somnathb1 somnathb1 requested a review from racytech June 13, 2024 18:25
@somnathb1 somnathb1 linked an issue Jun 13, 2024 that may be closed by this pull request
@AskAlexSharov
Copy link
Collaborator

AskAlexSharov commented Jun 14, 2024

@somnathb1 i have idea where it can be set: block.SendersToTxs() func called only in 5 places.
tx.SetSender() also only in 5 places.

@yperbasis yperbasis added this to the 2.60.3-fixes milestone Jun 28, 2024
@somnathb1 somnathb1 requested a review from yperbasis June 28, 2024 09:29
Copy link
Member

@yperbasis yperbasis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plz add this safety measure to AccessListTx as well

@somnathb1 somnathb1 requested a review from yperbasis June 28, 2024 12:58
@somnathb1 somnathb1 merged commit b7942be into release/2.60 Jun 28, 2024
7 checks passed
@somnathb1 somnathb1 deleted the som/trace_fix branch June 28, 2024 13:39
yperbasis pushed a commit that referenced this pull request Jul 5, 2024
This is an additional check as #9990 could not be reliably reproduced.
The conjecture is that at some point there is a race condition somewhere
related to either storing snapshot file for an older block or updating
the DB for a more recent block.
Somewhere the code sets sender value directly to zero or overwrites a
pointer, leading to sender address being incorrectly assigned to ZERO.
yperbasis added a commit that referenced this pull request Jul 5, 2024
Copy PR #10737 into `main`

Co-authored-by: Somnath <snb895@outlook.com>
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.

trace_transaction randomly returns first run for txIndex 0 error
3 participants