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

don't access proof after dropping gil #470

Merged
merged 2 commits into from
Jan 31, 2025
Merged

don't access proof after dropping gil #470

merged 2 commits into from
Jan 31, 2025

Conversation

emlowe
Copy link
Contributor

@emlowe emlowe commented Jan 31, 2025

In validate_proof the proof variable is accessed after dropping the GIL. This can result in crashes as python may have released that memory at any time after the GIL is dropped.

Make sure to use a temp var to hold the proof size so we can avoid referencing this var

hoffmang9
hoffmang9 previously approved these changes Jan 31, 2025
Copy link
Member

@hoffmang9 hoffmang9 left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Member

@hoffmang9 hoffmang9 left a comment

Choose a reason for hiding this comment

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

lgtm again

Copy link
Contributor

@arvidn arvidn left a comment

Choose a reason for hiding this comment

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

just a nit: the proof_size variable is unnecessary

@emlowe
Copy link
Contributor Author

emlowe commented Jan 31, 2025

close and reopen to pick up needed workflow changes

@emlowe emlowe closed this Jan 31, 2025
@emlowe emlowe reopened this Jan 31, 2025
Copy link

Pull Request Test Coverage Report for Build 13081012641

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 79.051%

Totals Coverage Status
Change from base Build 13081007127: 0.0%
Covered Lines: 3498
Relevant Lines: 4425

💛 - Coveralls

Copy link
Member

@hoffmang9 hoffmang9 left a comment

Choose a reason for hiding this comment

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

lgtm unless you want Arvid's suggestion

@emlowe emlowe merged commit 9055976 into main Jan 31, 2025
105 of 107 checks passed
@emlowe emlowe deleted the EL.bug-fix branch January 31, 2025 21:47
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.

3 participants