Repository navigation
Crash reports: a record left by an earlier build is not filed under the release that uploads it - #1370
Merged
Conversation
…unning release PLX-NATIVE-26 was a SIGSEGV in a 0.9.0 process (its dist is 0.9.0's build id), recovered and uploaded by the next launch, 0.10.0, which stamped [email protected] on it. Every crash that straddles an upgrade was filed under the NEW release, poisoning per-release crash counts and Sentry's regression detection right after each release. The record names the executable it ran as (its img: line) but not its version: the image marker is written by src/main.c before the release is known. So the rule compares build ids, in one shared stamp_release called last by the fault, panic, freeze and exit bodies: - the record's image id equals the running one, the record has no image line, or the running id could not be read: release is the running release, as before; - they differ: release is omitted, dist stays the crashed build's id, and the new tag crash.uploaded_by carries the running app version. The recovery path used to hand every body the record's own id as its "build_id", so a comparison inside the bodies could never have seen a difference. Body construction is now report_body(), which queue_report and the tests both call, and it passes the running id. panic_sentry_body takes the running id too. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…onsent preview shows it Sentry ignores `dist` on an event that has no `release`, so the report bb073d1 files under no release would have named no build at all, and a panic body has no `debug_meta`, so `dist` was its only carrier. stamp_release now also sets the tag `crash.build_id` (the record's image build id) beside `crash.uploaded_by`, on all four kinds of record, and only on the straddled path. The doc comment no longer says `dist` is what ties an event to its symbols (that goes through `debug_meta`'s code_id/debug_id; `dist` names the build), and its evidence for "the release is not known when the image marker is written" is now src/main.c, which writes the marker before enter_application, in place of a citation of docs/module-layers.md that does not say so. The consent preview is built from the real serializers so that a new field shows up before the person consents to it, but both samples were built with the record's own build id, so the straddled shape never appeared. The panic sample is now built as a record recovered by a later build: no `release`, and the two tags as placeholders (`<app version>`, `<crashed ELF build id>`, both already in the consent screen's translated set). The fault sample is the ordinary shape and is unchanged. PRIVACY.md says release is left out of a report left by an earlier build and names the two tags. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Backport to |
GLinnik21
pushed a commit
that referenced
this pull request
Nov 17, 2026
… under the release that uploads it (#1370) (#1450) A crash, panic, freeze or exit() record is uploaded at the next launch, which after an update is a newer build, and every fallback report was stamped with the uploading build's release. Sentry PLX-NATIVE-26 was a 0.9.0 shutdown crash (its dist is 0.9.0's build id) filed as a 0.10.0 crash. - stamp_release, shared by all four bodies: when the record's img: build id differs from the running build's, the report carries no release; dist stays the crashed build's id, and the tags crash.uploaded_by (the sending app version) and crash.build_id (the crashed build, since Sentry ignores dist without a release and a panic body has no debug_meta) say what happened. Same build, no image line or an unreadable running id: stamped as before. - Io::queue_report handed the bodies the record's own id as the running id; body construction is now report_body(), shared by the queue and the tests, and receives current_build_id. - The consent preview's panic sample shows the straddled shape; PRIVACY.md says when release is left out and names the two tags; the set_release doc names the exception. No record carries the crashed build's version (the image marker is written in src/main.c before the release is set), so these events are filed under no release rather than under the right one. (cherry picked from commit 4c00cf1)
GLinnik21
added a commit
that referenced
this pull request
Nov 18, 2026
The release note and the authored half of the audit for v0.10.1, a patch released from release/v0.10: v0.10.0 plus the backports of #1438 (Realtek webOS 5 access() interposer), #1437 (seek snap-back on sets with no displayed-frame counter), #1405 (Continue Watching start position), #1439 (Play during a held prime) and #1370 (crash records filed under the uploading release). Compatibility is unchanged from 0.10.0. The audit records the device evidence each fix rests on and leaves the generated block for the release run.
GLinnik21
pushed a commit
that referenced
this pull request
Nov 18, 2026
The release note and the authored half of the audit for v0.10.1, a patch released from release/v0.10: v0.10.0 plus the backports of #1438 (Realtek webOS 5 access() interposer), #1437 (seek snap-back on sets with no displayed-frame counter), #1405 (Continue Watching start position), #1439 (Play during a held prime) and #1370 (crash records filed under the uploading release). Compatibility is unchanged from 0.10.0. The audit records the device evidence each fix rests on and leaves the generated block for the release run. (cherry picked from commit e2f8760)
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
A crash, panic, freeze or
exit()record is uploaded at the NEXT launch. After an update that launch is a newer build, and every fallback report was stampedrelease = plxnative@<the uploading build>. Sentry PLX-NATIVE-26 is the field case: a 0.9.0 process crashed at shutdown (itsdist, the crashed image's GNU build id, is 0.9.0's), and 0.10.0 uploaded it as a 0.10.0 crash. Every release would collect the previous release's last crashes in its first days, exactly when its numbers are watched.stamp_release(one helper, all four bodies): when the record'simg:build id differs from the running build's, the report carries norelease;diststays the crashed build's id, and two tags say what happened:crash.uploaded_by(the app version that sent it) andcrash.build_id(the crashed build, because Sentry ignoresdiston an event without arelease, and a panic body has nodebug_meta).img:line, or an unreadable running id: stamped as before.Io::queue_reporthanded the bodies the record's own id as the "running" id, which would have made any comparison a no-op; body construction is nowreport_body(), which the queue and the tests share, and it receivescurrent_build_id.release, both tags, placeholders); the fault sample shows the ordinary one.PRIVACY.mdsays whenreleaseis left out and names the two tags (an app version and a binary build id, which these reports already carried). Theset_releasedoc names the exception.No record carries the crashed build's version (the image marker is written in
src/main.cbefore the release is set), so these events are filed under no release rather than under the right one.Gates
a_record_from_another_build_is_not_filed_under_the_running_release(all four kinds; failed before the fix: "a record from build 1122… was filed under the running release"),a_record_from_the_running_build_keeps_the_running_release,a_record_that_cannot_be_compared_is_stamped_as_before,the_panic_preview_shows_the_straddled_shape_and_the_fault_preview_the_ordinary_one.make test-crate C=plx_telemetry: 362 passed, 0 failed, 1 ignored.make test-crate C=plx_screens T=consent: 62 passed.🤖 Generated with Claude Code