Repository navigation
feat(apple): inspect IPS crash reports #6511
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
+4,520
−2
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
7e7eefe
feat(apple): inspect IPS crash reports
mvanhorn c3554c6
fix(apple): keep IPS register literals exact
mvanhorn 80ad2a0
fix(apple): budget IPS parsing and keep typed presence
mvanhorn a81b693
fix(apple): bound integer text expansion and reconcile coverage
gensokyo-dev 130e457
chore: integrate main and shared IPS artifact ownership
gensokyo-dev c608dea
refactor(apple): retain image metadata at its owning row
gensokyo-dev 54ebac6
refactor(apple): validate row capacity through reconciled coverage
gensokyo-dev 135cab1
test(apple): verify resource recovery at the public error boundary
gensokyo-dev 5898e4f
docs(apple): record complete IPS task and corpus measurements
gensokyo-dev 02bacf7
chore: integrate current main for IPS final verification
gensokyo-dev 2b92578
docs(apple): record integrated checks and stdio corpus evidence
gensokyo-dev 7e931e2
chore: integrate PE imports and current native lifecycle fixes
gensokyo-dev 45a5706
docs(apple): record PE integration and baseline cleanup controls
gensokyo-dev ab590a6
fix(native): bound IPS string decoding and preserve invalid identities
gensokyo-dev 6fa8083
refactor(native): use exact optional IPS source evidence
gensokyo-dev 93e5c43
docs(native): verify IPS escape capacity and complete-task costs
gensokyo-dev 6d77f26
chore(native): integrate current main for IPS verification
gensokyo-dev c838cae
test(native): verify IPS through production stdio MCP
gensokyo-dev f6c270d
style(tests): format IPS advertised schema bindings
gensokyo-dev 174c749
fix(native): preserve unresolved IPS references and recorded frame se…
gensokyo-dev a5cdb34
docs(native): record IPS reference review evidence
gensokyo-dev 0a3dbf2
fix(apple-ips): enforce JSON and report consistency
gensokyo-dev 38b5a3c
Merge commit '98ec00f4068bab894639d0d1d83ac0bfc428bcbf' into maintena…
gensokyo-dev 98e1a61
docs(apple-ips): record final consistency verification
gensokyo-dev 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
refactor(apple): retain image metadata at its owning row
- Loading branch information
commit c608dea863b6f71aa77cf9b86ae63f189d50547f
Some comments aren't visible on the classic Files Changed page.
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| # Apple IPS static inspection verification — 2026-10-24 | ||
|
|
||
| ## Scope | ||
|
|
||
| PR #6511 adds portable `inspect_apple_ips` / `inspect-apple-ips` over one | ||
| caller-selected local file. The metadata must identify string `bug_type` | ||
| `"309"`; stackshots and other report kinds remain unsupported. No target is | ||
| executed, no deep engine starts, and no atos/dSYM lookup is performed. These | ||
| checks do not qualify live macOS state, symbolication or Mach-O UUID joins. | ||
|
|
||
| The source contract preserves integer literals beyond IEEE-754 precision, | ||
| observed type mismatches and partial coverage. The frame address is derived | ||
| from its image's base plus its recorded offset, as described in | ||
| [Apple's crash JSON documentation](https://developer.apple.com/documentation/xcode/interpreting-the-json-format-of-a-crash-report). | ||
| That documentation does not provide a 64-bit bound for every numeric field; | ||
| the parser therefore bounds representation cost without truncating values. | ||
|
|
||
| ## Review corrections and ownership | ||
|
|
||
| The contributor's `80ad2a02e9c6cbe248d58d78a7a79753bcc09f79` already projects | ||
| documented JSON members and checks thread/frame/image/register allowances | ||
| before materializing each row. Unknown members are syntax-checked without | ||
| retaining their values. Producer controls include a budget error before an | ||
| invalid next item, wrong-type collections, physical frame depth with inline | ||
| rows, and the DEAD10CC decimal near miss. Source inspection alone does not | ||
| establish the runtime checks below. | ||
|
|
||
| Further negative controls expose three remaining boundaries: | ||
|
|
||
| - Two contradictory thread/image coverage reports were accepted by the | ||
| service. Coverage now agrees with the retained arrays before Evidence is | ||
| issued. Already cancelled requests also preserve the exact caller reason. | ||
| - A 20,001-digit image base expanded into 512 derived frame addresses despite | ||
| a small input file. The field reader now owns an 8 MiB default / 64 MiB | ||
| maximum UTF-16 allowance for recorded decimal/hex fields. Conservative | ||
| reservations precede conversion and arithmetic. Source BigInts are reused; | ||
| derived sums are not retained in a cache. Repeated appearances count | ||
| separately, including a service control using the same object twice. | ||
| - A 20,013-character image architecture appeared 513 times in a 512-frame | ||
| report. Frames now retain their recorded `image_index`; architecture, UUID | ||
| and `uuid_unknown` belong to the image once. The old per-frame copies and | ||
| superseded field-access helpers are removed. | ||
|
|
||
| Each defect has a failing control before its correction. Raising the integer | ||
| allowance to 64 MiB preserves the 512-frame decimal facts exactly. The | ||
| allowance is per call, requires no restart, and is separate from file-size, | ||
| row, wire and client-buffer limits. Refusal is a typed capacity error without | ||
| partial success. A refused task is not treated as a completed-task speedup. | ||
|
|
||
| ## Public corpus provenance | ||
|
|
||
| Two pinned upstream reports are valid two-object JSON and are used without | ||
| editing their bytes. Their original generation history has not been verified; | ||
| these are public repository corpus files, not a claim of fresh OS capture. | ||
|
|
||
| | Report | Repository revision | Bytes | SHA-256 | | ||
| | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------ | -----: | ------------------------------------------------------------------ | | ||
| | [LLDB multithread-test.ips](https://github.com/llvm/llvm-project/blob/16dde0db3ce0b9c5eae14178780cc6db1eec7ac8/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/interactive_crashlog/multithread-test.ips) | `16dde0db3ce0b9c5eae14178780cc6db1eec7ac8` | 16,093 | `567cadb22af19be798390ab2021ed929fb782c69b2d3b18ff5bb3f39a3741d8c` | | ||
| | [pycrashreport Monterey report](https://github.com/doronz88/pycrashreport/blob/634dff127fa6d4d3df948a64a3e254fe208a99dc/tests/user_mode_crash_report_monterey_non_symbolicated.ips) | `634dff127fa6d4d3df948a64a3e254fe208a99dc` | 7,047 | `7de3d3c3515e2ac1bb6ed4c00b70cb12c1ff6ad4317617d258d58346e00264b7` | | ||
|
|
||
| Three other LLDB inputs (`a.out.ips`, `a.out.inline.ips`, `no_threadState.ips`) | ||
| contain invalid JSON at their pinned revision. They were not repaired or | ||
| counted as successful report qualifications. Files remain temporary local | ||
| verification inputs and are not committed to this repository. |
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
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
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
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.