Repository navigation
gh-151292: _remote_debugging: Do not corrupt the binary file when hitting OverflowError
#152892
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d785cbf
the kolektor
maurycy 2e714c5
test
maurycy 26109d0
better test
maurycy 361b0d1
news
maurycy aecf40d
Merge branch 'main' into graceful-binary-overflow
maurycy 1231afe
=Q, move const to the base, not self.running
maurycy 5057295
Merge branch 'main' into graceful-binary-overflow
maurycy 9de4476
gh-151292: Track binary writer finalization state
pablogsal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
better test
- Loading branch information
commit 26109d0e44a0b038cf675fcb7fe0cf0db937a5ba
There are no files selected for viewing
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
total_samplesis au64in the header (HDR_SIZE_SAMPLESis 8), so"=I"here only reads half of it. On big-endian (the s390x buildbots) this reads the high word and the assert will fail. Can we read 64 bytes and unpack with"=Q"? btwTestBinaryFormatValidationbelow already hasHDR_OFF_SAMPLES = 28, maybe we can reuse it.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pablogsal Definitely. Thank you for catching this. Sorry for not updating the PR immediately after merging #153425.
Changed to
=Qand movedHDR_OFF_SAMPLES, and other consts, toBinaryFormatTestBasein 1231afeI ack there's still #152892 (comment) pending