Skip to content

Crash and playback-error reports say what failed and why, with symbols for the bundled libraries - #632

Merged
GLinnik21 merged 27 commits into
mainfrom
fleet/sentry-reporting-land
Oct 12, 2026
Merged

GLinnik21 merged 27 commits into
mainfrom
fleet/sentry-reporting-land

Conversation

@GLinnik21

@GLinnik21 GLinnik21 commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

What this changes

Native crash reports and handled playback-error reports now say what failed and why, so a Sentry issue can be read without a TV in hand. The work is the sentry-reporting chain (27 commits, squashed on merge), rebased onto current main.

Crash reports (the fallback fault event built from the append-only crash log)

  • Carries os, webos and hardware contexts like a native event, the crash's own time (time: line written by src/crashtrace.c and the Rust panic hook, held to a window around now), and contexts.crash.native_path saying why the log, not the daemon, supplied the report.
  • Names the library that holds pc/lr, by basename only, with image_addr, and a GNU build id when the file the maps line pointed at is still the same file (device and inode checked, executable mappings only). A module with no build id is listed with a nil debug id so a firmware libc crash is at least attributed. lr becomes a caller frame only when the log vouches it points into code.
  • crashtrace binds time() at install, not inside the handler.
  • The hardware context says why it is empty (probe: ok / no_keys / unreadable / unprobed) and recovers the SoC from the machine name when device_info.json gives none.
  • Native crash events carry nine more closed window steps for a background cycle (surface released, native unload, ACB plane unload, native destroyed/quarantined, exported window create/destroy, background/foreground done). They are recorded only while a lifecycle cycle is open, so a trailer or seek reload does not push the cycle's earlier crumbs out of the 16-slot ring.

Playback-error reports

  • Describe the attempt that failed, not the session before it: attempted_delivery, attempt_started, http_status, attempt_origin (fresh / user_retry / quality_change / auto_handoff / recovery / resume / preview) and attempt_ordinal (1..9, 9+). tv_pipeline reports carry the firmware's error number.
  • A failed detail-page trailer preview reports as a preview (own fingerprint ["playback-error","preview",code], own failure latch, no usage events under the last film's attempt id); a film request retires the previous trailer's preview mark. Every other fingerprint is byte-for-byte unchanged.
  • Two player fixes found while tracing PLX-NATIVE-15: a recovery reload or a fresh start refused because an abandoned Load is still inside sf_load now publishes load_timeout (and a fresh start shows an Error with Try Again instead of a black screen), and the refusal latch is cleared where every start funnels. Both have hostsim regressions watched red first.

Symbols

  • The bundled shared objects (FFmpeg libraries, libass) are linked with --build-id=sha1; make symbols-libs extracts pkg/symbols/<soname>.debug (fails closed on a missing id, a mismatched id or no symbols); ci/check-debug-files.py gates the Sentry upload step on sentry-cli debug-files check showing symbols; the release workflow uploads them.

Privacy scope

New report fields are NOT a consent scope expansion and POLICY_VERSION stays 4: every new value is a closed enum, a bounded integer, a bool, a library basename or a bounded timestamp, with no free text, path, URI or message. PRIVACY.md and the consent preview (en/es/be) describe each new field in the same commits.

Verification

Gates on the committed tree (git status --short empty before and after), HEAD 52722c55 (rebased onto main 5687040c):

  • make check: ==== check: 86 steps — all ok (114s wall …) ====, cargo branch ok (267 s); test result: ok. 1395 passed; 0 failed; 12 ignored for the hostsim app suite and ok. 1286 passed; 0 failed for the default one, plus the per-crate lines.
  • cargo +nightly check --lib --no-default-features: Finished.
  • hostsim: plx_media -- load_in_flight_tests native_failure_regressions: test result: ok. 14 passed; 0 failed; plxnative-modules -- lifecycle_regression_tests: test result: ok. 28 passed; 0 failed (includes the new background-cycle tests).
  • ARM make (no deploy): built, no errors.

Merge-time fix: main's list-cap registry (ci/check-list-caps.py) needed the three new bounds classed (ci/list-caps.ini, last commit).

Exercised on the television in two leases against the DEV Sentry project (not production; the results are in the lanes' notes, not repeated here). NOT verified: symbolication of a bundled-library frame in Sentry (needs a CI-built, uploaded release), release-profile (fat-LTO) behaviour of the crash path, and a real background cycle's breadcrumbs end to end. The native crashed-thread unwind (no frames on the crashed thread) is not part of this PR.

Build benchmark

This PR touches Makefile and .github/workflows/build-package.yml. make build-bench-quick (no-op + leaf edit; 1 run, host loaded: load 18 and 11.9 on 10 cores, so noisy), base cd3f0646 vs this branch (before the final rebase onto main 5687040c), same machine, same sitting:

Scenario base cd3f064 this branch
No-op host test build 0.2 s (0/180 units) 0.1 s (0/180 units)
Edit leaf (plx_base cbuf.rs), non-incremental 30.7 s (27/180 units) 23.5 s (27/180 units)

The change adds a symbols-libs target and workflow steps only; no Cargo, crate-layout or rustc-flag change, so no build-time difference is expected and none beyond noise is shown. The full make build-bench (all leaves, incremental, unit suite, ARM staticlib) was not run.

Issues

#289 (native crash reports with no frames on the crashed thread) is addressed only in part: this adds its option 3 (pc/lr, module identity and build id on the fallback event) and the background-teardown breadcrumbs it asks for, and symbol files for the bundled libraries. The crashed-thread unwind itself is not fixed here, so this PR does not close it. No open issue is fully addressed.

🤖 Generated with Claude Code

GLinnik21 and others added 27 commits October 12, 2026 18:06
…rter and that boot publishes consent first

Investigation of why a native crash event on 0.8.0 arrived with no window
breadcrumbs. Two host regression guards, both green against the current code:

- native.rs: the envelope sentry-native 0.16.6's crash daemon writes (ring files
  merged by timestamp strcmp, capped at max_breadcrumbs, laid on the event as a
  plain array) goes through event_from_envelope + sanitise_event; every window
  stage, its data and its timestamp survive, foreign-family crumbs do not.
  Covers a boot-time crash (wm_query..first_swap_complete, empty data, int32
  SDL version bytes, a whole-second timestamp) and a post-wrap lifecycle crash.
- window.rs: telemetry::activate_initial publishes the consent decision, so the
  first window::record after it reaches the backend gate, while a record before
  it is dropped (policy, not queued).

Host-clean for the importer (h3) and the app's boot order (h1); the ring-file
path (h2), ACTIVE arming order on ARM and the first-run opt-in-after-boot case
remain for the device.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ties and why native did not deliver

A crash reported from the append-only log (sdk plxnative-fallback) used to be a bare event: two
addresses, registers and the app's own image, none of the contexts a native report gets from the
SDK's scope, and nothing saying which library a pc inside libwayland-client.so.0 belonged to.

- sentry_body now attaches os (built from uname the way sentry__get_os_context splits the release),
  webos and hardware (the existing attach_hardware_context), so the two shapes read alike.
- The tracer's `at:` lines (the mapping holding pc or lr) are parsed into ModuleMapping. A line is
  kept only when its path is absolute, uses [A-Za-z0-9._+-], has no `..`/space/(deleted), and its
  mapping holds this fault's pc or lr. Each kept module becomes a debug_meta image: BASENAME only,
  image_addr = mapping start - file offset, code_id from the GNU build-id note (sentry::gnu_build_id,
  bounded 64 KiB read of a regular file; skipped when unreadable), debug_id = sentry::debug_id. The
  full path is used only to open the file and never serialized.
- contexts.crash.native_path says why the log, not the daemon, supplied the report. Only what
  reconcile can observe is offered: no_envelope (nothing pending) and envelope_unmatched (envelopes
  pending, none of this build and signal). no_daemon, daemon_timeout, envelope_rejected and
  consent_off_at_crash are not: none leaves a record the importer reads (rejected envelopes are
  deleted before reconcile runs).
- The event title ("SIGSEGV at 0x...") is unchanged, so grouping is stable.
- The consent preview shows the new fields (contexts reuse the native preview's placeholders; the
  library entry is a translated "system library file name" placeholder in en/es/be) and PRIVACY.md
  describes them.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The Starfish error callback (`type=18 num=601 Resource Allocation Error`) delivered its number
to `sf_on_event_inner`, which dropped it: a handled `tv_pipeline` report said only that the
pipeline failed. The number is now latched beside `dg_cb_err` (first error wins, clamped to the
i32 range, reset where `dg_cb_err` resets) and rides in the handled playback event as the
`playback.pipeline_error` tag and `contexts.playback.pipeline_error` integer (0 = none).

The callback's string is still never kept: it is free text and can hold a URI or a path.

A synchronous Load refusal (`sf_load` returning 0) has no firmware number to latch -- Starfish's
Load answers with a bare success flag and the other refusals inside `sf_load` are the seam's own
lifecycle gates -- so that path leaves the field at 0 and a test pins that nothing is invented.

The consent preview lists the field (with its i32 range, in every localized domain label) and
PRIVACY.md names it in the same change.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…efore it

After a mid-play quality switch to Original whose open failed, the handled playback report said
`delivery` = the OLD route and `started` = true for the whole session (Sentry PLX-NATIVE-V
media_source), so the event read as a failure of a route that had played fine. Three fields now
describe the failed attempt beside the session fields, which stay for continuity:

- `attempted_delivery` (tag `playback.attempted_delivery`, context key): the route being opened when
  it failed. It reuses the name refusals already send; a refusal still names the route it asked the
  server for. Otherwise it is the route a noted delivery change (`DeliveryRequested`) asked for until
  a picture from it is up, else the session's installed route.
- `attempt_started` (tag `playback.attempt_started`, context key): whether THAT open presented a
  picture. The per-frame observer marks an engine open when the derived state enters Resolving or
  Connecting and the presented step sets it; both live in the in-memory error trace, so they obey
  its generation check, its consent gate and withdrawal's clear.
- `http_status` (tag `playback.http_status`, context key, integer): the exact status beside the
  existing class, 100-599, else 0; a stray number in the latch is never reported as a status.

Fingerprint `["playback-error", code]` and ff.rs classification are unchanged. The consent preview
lists the three fields (attempted delivery now lists the whole delivery domain, so its label no
longer says "refused-plan reports only"; en/es/be) and PRIVACY.md describes them.

The attempt origin, ordinal and open stage need plumbing through the app and route layers and are a
separate change.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…Sentry

A crash frame inside libavformat-plx.so.63 or libass-plx.so.0 reached Sentry as a bare
address: CI uploaded only pkg/plxnative.debug and pkg/plxnative, and the bundled libraries
ship stripped (readelf on today's installed libavformat: no .symtab, no .debug_*). They also
carried no GNU build id, and a .debug made with `objcopy --only-keep-debug` has a NOBITS
.text, so the text-hash id sentry-native falls back to could not be reproduced from it.

- ci/build-ffmpeg.sh (cross only) and ci/build-libass.py link with -Wl,--build-id=sha1, the
  identity the app binary already carries; FFmpeg keeps the unstripped link output in
  vendor/ffmpeg-prefix/lib/unstripped/ before stripping (libass's is already left in
  vendor/libass-prefix/lib/).
- `make symbols-libs` -> pkg/symbols/<soname>.debug per bundled library via
  ci/extract-so-symbols.sh, which fails closed: shipped library without a build id, .debug
  with a different id, or no .symtab function symbols. Tried on a locally linked fixture and
  on the unstripped libavformat in the build cache (refused: no build id).
- ci/check-debug-files.py runs `sentry-cli debug-files check` on every file and requires
  `debug` or `symtab` features, since the command exits 0 for a symbol-less object. The
  release workflow runs it on pkg/plxnative.debug and pkg/symbols/*.debug before the
  token-guarded upload, uploads the libraries (without --include-sources) in the same step,
  asserts one symbol file per shipped library, and keeps pkg/symbols/*.debug as a separate
  build artifact (not part of the release's dist/).
- sentry-crash is deliberately not uploaded (separate process, no event frame lands in it)
  and no build.commit tag is added (the native sanitizer would drop it; release + dist
  already name the binary).
- Tests: ci/test_check_debug_files.py (stub CLI), ci/test_ci_workflows.py::BundledLibrarySymbols.

Not run here: the ARM cross-build, sentry-cli, and the before/after `make build-bench` table
this Makefile/workflow change owes the PR.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The fallback fault event reads each mapped library's GNU build id from the file
installed now. That is the file that crashed for firmware libraries (a reboot
clears /tmp, and the crash log with it), but not for the libraries bundled with
the app (libav*-plx.so.*, libass-plx.so.0): a crash in libavformat on version N,
then an app update before the next launch, paired N+1's build id with N's
addresses, and Sentry would symbolicate to confident, wrong functions.

The maps line already carries the mapping's device and inode. Keep them, open the
file once with O_NONBLOCK (so a FIFO cannot hold the boot path), fstat that same
handle, read only a regular file whose st_dev/st_ino match, and leave the module
out otherwise. st_dev is split with the glibc layout to compare with the kernel's
major:minor. Fix the comment that claimed the log being cleared at restart was the
only way the file could have changed.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The tracer's `at:` lines include every mapping that holds pc or lr, whatever its
permissions. A module image is described as `image_addr = start - offset`, which is
the load base only for the text segment (vaddr equals file offset on the GNU linkers'
ARM output); for a data segment it is wrong, and the text and data mappings of one
library could produce two images with the same code_id and conflicting bases.

Accept only mappings that are readable and executable (r-xp, r-xs).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
A doc-claim audit of the sentry-reporting branch found sentences the change made false:

- playback.rs and classes.rs said every value is a closed enum. Two are bounded integers
  (http_status 100-599 else 0, pipeline_error as the firmware's i32) and attempt_started is
  a bool; still no free-text slot.
- Fault's doc said its one String is a build id and no path can inhabit it, and the
  THE GUARANTEE test doc said no text from the log reaches the body. Fault also holds
  ModuleMappings whose path is kept only to open the file; only the basename is sent.
- PRIVACY.md described the simpler report as if every fallback were the same. Only the
  signal (fault) fallback carries the contexts and library images; the Rust-panic fallback
  carries the source location, a hash of the message, the app version, build id and Crash
  report ID. The libraries named include those bundled with the app, not only the
  television's, so the 'system library' wording (PRIVACY.md and the consent placeholder in
  en/es/be, key renamed to settings.consent.placeholder.library) now says 'library'. And
  no_envelope is also what a malformed, deleted envelope looks like, in PRIVACY.md and
  on NativePath.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…session it was

A report already named the route that failed (attempted_delivery) but not the cause of the
open. Two closed fields now ride beside it, as a tag and in the playback context:

- attempt_origin: fresh / user_retry / quality_change / auto_handoff / recovery / resume.
  Adding a cause is one place (AttemptOrigin: variant, code, ALL); the consent legend and the
  tests read ALL. The cause is decided where the open is, never inferred from the failure:
  request_play_inner takes it (a Play is fresh; the failure screen's Retry and Switch to Auto
  are user_retry, a quality pick there is quality_change), the three DeliveryRequested notes
  take it (link fallback and an automatic Original are auto_handoff, a manual Original is
  quality_change, the rollback and the unopened-Original HLS are recovery), and the foreground
  restore notes resume.
- attempt_ordinal: 1..9, then 9+. A Retry stops the failed playback, which clears the error
  trace, so the count lives in a small ledger that outlives the trace; a Play restarts it.

A manual fixed-rung quality switch (request_transcode_refresh) noted no DeliveryRequested, so
the open that followed was not a new attempt: a failure of it kept attempt_started = true from
the previous route's picture. It now notes the route it asks for (new reason quality_pick).

Fingerprint ["playback-error", code] is unchanged and asserted. The consent legend lists both
fields and the new reason (en/es/be) and PRIVACY.md describes them. open_stage is not added:
the signals that exist cannot tell reserve or probe from the rest without touching ff.rs.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…om playback failures

Sentry PLX-NATIVE-15: a trailer behind a detail page never passes report::requested, so a failure
of it sealed a trace with no Requested step and reported kind unspecified, delivery unknown, the
attempt origin and count of whatever film played last, and attempt_started = no, and landed in the
playback issues.

AttemptOrigin gains `preview` (variant, code, slot in ALL; the consent legend, sample and tests
read ALL). error_context recognises a session resolved as a preview (route::preview_request) and
tells it through ONE function, report::as_preview: origin preview, ordinal 1, the attempted route
the server's refusal names or else direct play (the only route a preview opens;
preview::accepts_direct_play refuses the rest), and started / attempt_started from the preview
machine's own record of a picture (preview::picture_shown), because the trace never sees a
preview's Presented step and the funnel's started latch belongs to the last film. delivery stays
what was installed, so a refused landing still reads unknown.

The Sentry fingerprint is ["playback-error", "preview", code] for that origin only; every other
origin keeps ["playback-error", code] byte for byte, asserted for every failure kind. Dropping
preview reports entirely is the one constant report::REPORT_PREVIEW_FAILURES.

PRIVACY.md and the en consent description list the new origin.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…a background cycle

Nine closed window breadcrumbs join the 16-slot ring a native crash event already carries:
wayland_released (only when a borrowed surface was held), native_unload, acb_plane_unload,
native_destroyed / native_quarantined (release_native_object, including the C seam's refusal of
D1), exported_window_create / exported_window_destroy (VP_EXPORTED only) and background_done /
foreground_done (the DID edges only), so a crash around WILL/DID background shows which step had
already returned. The longest cycle is 15 steps and fits the ring whole. They are recorded with
the existing consent-gated window::record; window.rs gains a test-support capture behind that
consent check. tv::window::release now answers whether a surface was held.

Also pins the GL-while-backgrounded audit on the host: no texture is specified or deleted through
gfx::tex_ledger (which gains a test-support mutations() counter) between WILL background and DID
foreground while the player page is mounted. It is green; the meter was shown to move when a
delete is planted in prepare_window. VAO/VBO/FBO work and glCopyTexSubImage2D bypass the ledger
and stay unaudited by it.

PRIVACY.md names the new step families. No new data key, no consent scope change.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
resolved_as_preview was replaced only when a plan landed. A film pressed after a
trailer whose resolve never landed (a refused worker spawn) left the flag standing,
so preview_request stayed true and the film's failure was reported with origin
preview, the preview fingerprint and the preview's flags. request_play_inner now
clears the mark for a non-preview request; the Play is already held until the
preview machine released the engine, so no write gate still waits on it.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… usage events

tick used one SAW_FAIL latch for films and previews, and a preview never passes
requested, the only place it was reset: after one failed trailer every later
trailer failure of the browse session reported nothing until a film played, and
the same arm sent playback.failed and closed the quality summary under the LAST
film's attempt id, marking an ended film failed. A trailer reaching Playing could
likewise send playback.started under that id.

A session resolved as a preview now goes to tick_preview: its own failure latch
(reset by preview_requested at each preview request), the trace still sealed so
withdrawal's eraser covers it, and no usage event, quality summary or film latch
touched. REPORT_PREVIEW_FAILURES now gates the whole preview report path, which
is what its doc already claimed; tick_with lets a test flip it without a second
production switch.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…to every engine

release_native_object and with_window_id recorded native_unload, acb_plane_unload,
native_destroyed/quarantined and exported_window_create/destroy for EVERY engine
that came and went: each trailer start and stop (four steps on webOS 5), each seek
or quality reload's teardown, each abandoned Load. The 16-slot breadcrumb ring is
shared, so after browsing a few trailers a later cycle's will/did_foreground, wm_*
and first_frame were pushed out of it.

The engine's window steps now go through window::record_in_cycle, which records
only while a background or foreground cycle is open: it opens at the four
lifecycle edges and closes at background_done, foreground_done or the first
resumed frame, and a CycleScope held by the foreground machine (drive_foreground,
poll_foreground_flight) keeps a restore whose Load waits for a flight inside the
cycle. A trailer start/stop or a reload adds no window crumb.

The hand-written array against a constant is replaced by tests that run the real
sequences (background with and without playback, the webOS 5 exported window,
foreground, trailer churn before, between and after) through the real recording
path and assert the whole cycle is what the ring holds, including that
foreground_done precedes first_frame; the engine test drives the real
release_native_object and with_window_id.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…w-step fixes

PRIVACY.md: the window-step list now names wayland_released and the video plane
release, says the exported-window create is recorded once the call returns and
does not mean a window was obtained, says the teardown and video-window steps are
recorded only while the app is sent to the background or brought back (not for a
trailer, seek or quality restart), and the panic fallback lists its environment
label. DeliveryReason::QualityPick is documented as also covering an Auto pick
that rebuilds the adaptive HLS ladder. The attempt-origin test doc names the one
exception to 'neither splits a group' (the preview fingerprint). The module-image
doc names the one way a build id can pair with another file: a development
make deploy overwrites the bundled libraries in place (same inode).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The fallback body (and the panic body) had no `timestamp`, so Sentry stamped the event with its
receipt time: about a minute after the crash on a good day, and in the field however long it was
until the next launch read the log.

The record now holds the time. The C tracer writes `time: <unix seconds>` on its own line under the
`*** SIGNAL` line (`plx_fmt_time` in crashfmt.h, graded byte for byte; `time()` is async-signal-safe
and a failed call writes no line), and the Rust panic hook writes the same line under its
`*** RUST PANIC` line in the same write. The first line's shape is untouched, so crash-report.sh
and every other first-line parser read what they always did. `crashreport::parse` reads the digits
back, first stamp wins (so a panic's folded abort cannot move the panic's time), and the body
builders send it through `crash_timestamp`, which holds it to a window around now: not in the
future (60 s of skew), not older than 25 days (Sentry drops older events, which would turn today's
late-but-delivered crash into a lost one) and never against a clock that was not set. Outside the
window, or absent, the field is omitted: not zero, not now. The consent preview shows the field as
the existing `<crash time>` placeholder, and PRIVACY.md names the time.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ints into code

The fallback body always emitted lr as the caller frame. On the device's SIGABRT (raised from a
firmware libpthread routine) lr held a STACK address (lr == sp), so Sentry rendered a bogus caller
frame that symbolicates to nothing.

lr now becomes a frame only if it lies inside an executable mapping the log recorded (an `at:` line,
which `parse_module` keeps only for r-x mappings) or inside the app's own image from the startup
marker. With no mapping to vouch for it the frame is omitted; the raw register stays in
`registers`, where it is evidence rather than a claimed caller.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
`module_images` dropped any module whose build id could not be read, so a crash inside firmware
glibc (libpthread-2.24.so and libc-2.24.so carry only NT_GNU_ABI_TAG and a .gnu_debuglink) named no
module: the pc frame had an address and nothing to say which library it was in. The native
(sentry-native) event for the same kind of crash lists such libraries with a zero debug_id and no
code_id.

A module that passes every existing check (plain absolute allowlisted path, still the file whose
device and inode the maps line recorded, an executable mapping, at most pc and lr) but has no build
id is now listed too: basename as `code_file`, `image_addr`, `image_size`, the nil-UUID `debug_id`
and no `code_id`. A zero id matches no uploaded object, so it attributes the frame without ever
symbolicating against a wrong file. It must still be an ELF; unreadable, replaced, non-ELF and
off-allowlist modules stay dropped, and a module with a build id is exactly as before. `ModuleImage.code_id`
becomes an Option for this.

PRIVACY.md's paragraph on library names now says a library with no build identifier is still named,
basename only. No consent-preview or locale string changes: its wording stays true.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
`SIGABRT at 0x4c1b` reads like a fault address but, for a signal raised by raise()/kill(), si_addr
is the sender's pid. The title is deliberately unchanged (Sentry normalises the hex when it groups,
and a different string would regroup every existing issue); `sentry_body`'s doc now says so.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ap lines

The tracer writes a `time:` line under every signal record, `at:` lines for the
pc and the lr plus a `bin:` line, and the panic hook writes the same `time:` line
under a panic; SECURITY.md, docs/distribution.md, the crash-triage skill and the
`plx_fmt_signal` comment still described the older shape. The panic hook's doc
now says the importer sends the location and the bounded crash time, never the
message. The no-debug-image-without-a-build-id notes are scoped to the app's own
image and name the firmware-library exception (a nil debug_id, no code_id). The
duplicate `a_module_without_a_readable_build_id_is_left_out` test, whose
assertions the unreadable-or-not-an-ELF test already makes, is removed.

No behaviour change.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The handler's `time:` line makes the crash path's first call to `time()`, and the
link has no `-z now`, so the symbol would be bound lazily by the dynamic linker
in the middle of a crash, as the handler's other libc calls already are. One
`(void)time(NULL)` in `plx_crash_install`, before the handler is installed,
resolves it at startup. The handler and the record shape are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…t cause

An Auto Original whose native Load passes the 20 s budget publishes load_failed and
load_timed_out. The HLS recovery then reloads, and the reload's teardown parks the
still-running Load as an AbandonedLoad and clears the session flags with the rest of the
session. start_bufferfeed refuses to start a second native object while that Load is
outstanding, and settle_reload published Error with no cause left to read, so the report said
`unspecified` (PLX-NATIVE-15) instead of `load_timeout`.

settle_reload now republishes the timeout when the failed start coincides with an abandoned
Load (an abandoned Load exists only after the budget fired). No new failure kind and no new
event field. The sequencing of the HLS fallback is unchanged.

The hostsim regression holds sf_load past the budget, runs the recovery's own reload and
settle, and asserts Error with kind LoadTimeout; it failed with Unspecified before the change.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…gain

While a timed-out Load is still inside sf_load, every native start is refused. A reload had a
Engine to fail, but a FRESH start (Retry, Back+Play, finish_landed_play) has none: nothing
published Error, so the player stayed Idle and drew a black screen with no read-out, no report
and no Try Again.

The refusal stays (a second native object must not start while one is outstanding). It now also
sets PlaybackSession::native_start_refused, the same shape as jail_load_blocked, which
player::state derives Error from and error_now reads as the load_timeout cause. The flag clears
on the next start attempt and with the playback verdict, so it does not outlive the refusal.

The hostsim regression parks a timed-out Load, calls start_bufferfeed (finish_landed_play's
entry) and asserts state Error, kind LoadTimeout and a Try Again action; it failed with Idle
before the change.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…the machine name

On one TV (PLX-NATIVE-15) both nyx files yielded nothing, so model, soc and the webOS release
reached Sentry as empty strings, indistinguishable from a probe that never ran. The boot probe
now records what each file did and the hardware context carries it as `probe`, a closed pair
`<os_info>/<device_info>` whose words are `ok` (a key answered), `no_keys` (read, but none of
the expected keys answered) or `unreadable`, or `unprobed` before the probe publishes. No free
text.

When device_info.json names no SoC, `soc` is filled from the leading board-family token of
/etc/prefs/properties/machineName (the file the jail pre-flight already reads): lowercase ASCII
letters and digits, at most eight, starting with a letter, else nothing. A file's own value is
never overridden, and the status still describes the file, so a recovered soc reads `no_keys`.

`probe` rides the handled events and the fallback fault report (both built through
attach_hardware_context); the native crash scope would need the C shim, which is untouched, so
it is only allowed in the SDK allowlist. PRIVACY.md and the consent preview placeholder name it;
the placeholder is a literal list of wire values like the sibling `rtkmem` one, so no locale
string changes. POLICY_VERSION is not bumped.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…Error

ps.native_start_refused was cleared only by the next start_bufferfeed_tracked,
clear_play_verdict, request_play_inner and apply_plan. Reloads start through
start_bufferfeed_for directly, so a foreground restore whose fresh start was
refused for a parked Load and whose rollback then reloaded onto HLS left the
latch set: when the flight ended state() answered Error over playing video and
report::tick sent a bogus load_timeout. Clear it where every start funnels, on
success. Regression test watched red first.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…orts really carry them

The native crash preview showed hardware.probe, but a real SDK crash event never carries it
(only handled events and the fallback fault report do, via attach_hardware_context); take it
out of the native preview and show it explicitly in the fallback preview. The probe vocabulary
is four words, ok, no_keys, unreadable and unprobed, so the PRIVACY.md sentence and the
placeholder say all four. The soc row now says the machine-name fallback.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… registry

soc_from_machine_name, MAX_CRASH_AGE_SECS and plain_module_path are string-size or time-window
bounds, not collections a user browses; main's ci/check-list-caps.py needs each one classed.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@GLinnik21
GLinnik21 force-pushed the fleet/sentry-reporting-land branch from bd205c5 to 52722c5 Compare October 12, 2026 15:12
@GLinnik21
GLinnik21 merged commit 628ed12 into main Oct 12, 2026
22 checks passed
@GLinnik21
GLinnik21 deleted the fleet/sentry-reporting-land branch October 12, 2026 15:31
GLinnik21 added a commit that referenced this pull request Oct 22, 2026
* Release notes and audit for v0.9.0

Action-required evaluation (README trigger list, read from the PRs, grep not run on a built tree): no hits that need a reader action. Launch links (#853) add an inbound surface (any app that can launch apps), stated in What's new; the 3.4 image cache writes to /media/developer/temp (#667); crash/error reports gain fixed-value fields with POLICY_VERSION unchanged (#632), stated under Changed; Watchlist and PMS notifications use hosts the app already reaches.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Release notes v0.9.0: coverage and accuracy pass

Note: correct the Collections surfaces (no TYPE menu; collection shelf
headings live on Home and a library's Recommended page), the Watchlist
hold-menu rows, the launch-link sign-in behaviour and platform-release
numbering, the notification-feed sentence and the per-profile settings
list (no stale "nine"). Add #832, #808, #750/#762, #709 (#628), #641,
#647, #793, #871, #877 (#679), #876 and the key-press frame work;
credit RichiL10 and Shakil Choudhury. #862 moves from Known issues to
the webOS 3.x lines as fixed by #578; the 3.9.3 source-build report
(#700) is kept in Compatibility. Compatibility links reports, not
reporters' profiles.

Audit: #862 provenance (attributed usage-report reading, no counts),
contributor list wording.

Action-required section: not owed. The README grep over
v0.8.0..origin/main (rust-modules/src src ci) hits only CI tooling,
test-only loopback listeners and fixture tokens, and the dev-only
/tmp/plxnative-trackmemory trigger; the audit's PR-by-PR reading in
"Deliberately not done" stands.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Release audit v0.9.0: name the toolchain by its pin file, not its version

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

1 participant