Repository navigation
Freeze reports name the main loop's leg, and a stall with no app frame stops splitting by instruction - #1374
Merged
Merged
Conversation
…-at: at probe time A shipping build published no leg label (threadcheck only), so a freeze report said nothing about what the loop was doing. LoopPhases::enter now stores the leg's code in one relaxed AtomicU8 in every build; LoopPhase::word() is the single table the writer and the importer share. On a probe the observer thread appends freeze-at: seq=<n> leg=<word> to the crash log (when the probe was sent and a leg is known) and the event-log line gains the leg. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…y freezes by module The importer reads freeze-at: seq=<n> leg=<word> (same process, matching probe number, a word from LoopPhase's fixed table only; either order against the *** FREEZE record, since the observer thread and the stuck thread write them concurrently). A freeze with a leg gets the freeze.leg tag, the leg as a third fingerprint element, and, when it has no frame in the app's own image, the pc and lr module basenames (libfoo.so>libbar.so) instead of a firmware offset, so one stall stops splitting by instruction. A record without a leg keeps its old fingerprint. PRIVACY.md names the tag and the eleven words. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ts do not remove each other's file Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Only LoopPhases::enter wrote the leg cell, and the heartbeat marks that call it enter seven of the eleven legs. The other four (scen, pump, land, dframe) are reached only through FRAMEDROP spans, whose watchdog label exists under threadcheck alone, so a freeze inside the playback pump (the Starfish/ACB suspect) was reported as the enclosing `results` leg and fingerprinted with it. diag::spans::span now stores the span's leg in the cell, armed or not, and a Drop guard (LegScope) restores the previous leg on return or unwind. The span-to-leg mapping is unconditional and stays in base. A load and two relaxed stores for the four names, nothing for any other span. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…al lock The span guard restores what it found, which is "none yet" when no leg has been entered, so the spans test could store that between the default-legs test's store and its is_some() read. Both tests now hold testlock::serial(). Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Field
MainThreadFreezereports (Sentry PLX-NATIVE-24/-25: one webOS TV Lite 9.1 set, four stalls in a minute) arrived with no app frame and nothing saying what the main loop was doing, and a freeze with no app frame was fingerprinted on a firmware-library offset, so one stall split into several issues by instruction.AtomicU8holds the loop's current leg:LoopPhases::enterstores the seven heartbeat legs, anddiag::spans::spanstores the four span legs (scen→dev-scenarios,pump→playback-pump,land→land-results,dframe→dispatcher-frame) and restores the enclosing leg on return and on unwind. Relaxed stores only; thethreadchecklabels are unchanged.freeze-at: seq=<n> leg=<word>to the crash log, so an unrecovered freeze still names its leg. The event-log freeze line names it too.freeze-at:is matched by seq within the same process, in any order against the handler's*** FREEZElines (they are written concurrently), and only a word from the fixed eleven-word table is accepted. Tagfreeze.leg.["freeze", site, leg], the leg only when present. With a leg and no in-app frame, the site is the pc and lr module basenames without offsets, so one stall no longer splits by instruction. Records without a leg keep their old fingerprint.PRIVACY.mdnamesfreeze.legand its eleven words;docs/agent-reference.mddescribesfreeze-at:.The consent preview has never shown a freeze sample (fault and panic only); adding one needs a new heading in 12 locales and is left for separately.
Gates
freeze-at:with the current leg; nothing when unsent or no leg), span tests (each loop span publishes its leg and restores the enclosing one, nested unmapped spans, unwind), importer tests (five placements, strict parse, wrong seq or other process ignored), fingerprint tests (same modules + leg group together; a leg-less record keeps its old fingerprint). Red runs recorded before each fix.make test-crate C=plx_base: 272 passed.make test-crate C=plx_telemetry: 367 passed.make test-crate C=plx_screens T=consent: 62 passed.ci/check-deps.shandci/check-module-layers.py: green.make check-nodef: clean.results), fixed in the fourth and fifth commits.🤖 Generated with Claude Code