Skip to content

A query that finds nothing ends the region, rather than being stepped over - #108

Merged
glslang merged 1 commit into
mainfrom
agent/stall-is-the-region-ending
Aug 14, 2026
Merged

A query that finds nothing ends the region, rather than being stepped over#108
glslang merged 1 commit into
mainfrom
agent/stall-is-the-region-ending

Conversation

@glslang

@glslang glslang commented Aug 14, 2026

Copy link
Copy Markdown
Owner

Closes #104. Verified on the same live 26100 target.

What the measurement said

#104 asked whether recovered_bytes: 0 meant nothing was behind those stalls or
nothing was being counted. It was the former — but the interesting part is why,
which the previous PR's diagnostic was added to find out. Every verbatim sample
carried the same answer:

made no progress at 0xffffce89caf79000: the engine answered 0x0+0x0
                    ...caf7a000                              0x0+0x0
                    ...caf7b000  ... through ...caf80000      0x0+0x0

Neither of the two shapes I expected. 0x0+0x0 is not a region at zero — it is the
engine reporting that it found nothing valid in the span it was asked about, which is
a statement about every byte through to the end of that span. And the eight samples
are eight consecutive pages: one dead region stepping itself into the give-up bound,
eight KD round trips to be told eight times what the first answer already said.

So the page step was asking a question that had been answered. That is exactly the
sibling case #94's quiet half already handles — an engine naming a base past the end —
in the engine's other encoding, and it gets the same response, just as quietly. A
region running out of readable content is not a fault, and #94 was raised because
saying so 3,285 times drowned out the diagnostics that meant something. The bytes are
still filed as unreadable and complete still clears.

The page step stays for the other shape. A query that reports a region and cannot
size it has said nothing about what lies behind it, which is the case the coverage half
of #94 was written for. test_a_stalled_query_costs_a_page_not_the_region still pins
it, and still recovers two pages.

Measured, same target

before after
stalled_pages / skipped_bytes 1,121 / 4,558,800 0 / 0
"valid-region query made no progress" 1,121 0
"giving up after consecutive pages" 59 0
diagnostics / categories 2,249 / 12 1,014 / 9
chunks walked 446,906 446,749
walk wall-clock 19.9s 18.3s

~1,100 round trips removed over a KD link, and no coverage lost — the chunk count is
flat inside the noise of two walks of a live target.

Taken with #107, one walk of this target has gone from 3,569 diagnostics in 14
categories to 1,014 in 9, with refused_chunks 106,516 → 0 and stalled_pages
1,619 → 0. What remains is genuine: commit holes, a handful of unreadable tree nodes,
and the 19 VS extents whose chunk chain could not be placed.

Verification

cargo test (125 pass), cargo clippy --all-targets clean, live tier green. The new
test was checked against the old behaviour: 5 queries where it now takes 2.

… over

#104, settled by the measurement it asked for. The stall
diagnostic now carries the engine's own answer, and on live 26100 every sample
carried the same one: `0x0+0x0`. Not a region reported behind the cursor, not a
zero-length region reported ahead of it — the third possibility, which is the
engine saying it found nothing valid in the span it was asked about.

That is a statement about every byte through to the end of the span, so the
page step asks a question that has already been answered. The eight verbatim
samples were eight *consecutive* pages — one dead region stepping itself into
the give-up bound, eight KD round trips to be told eight times what the first
answer said. Across one walk that was ~1,100 stalled pages, and
`recovered_bytes` was zero on four separate runs.

So `0x0+0x0` ends the region, exactly as the sibling answer that names a base
past the end already does, and just as quietly: a region running out of
readable content is not a fault, and #94 was raised because saying so 3,285
times drowned out everything that meant something. The bytes are still filed
as unreadable and `complete` still clears.

The page step stays for the other shape. A query that reports a region and
cannot size it has said nothing about what lies behind it, and that is the case
#94's coverage half was written for — `test_a_stalled_query_costs_a_page_not_the_region`
still pins it, and still recovers two pages.
@coderabbitai

coderabbitai Bot commented Aug 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@glslang, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 54 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 27154756-5ab6-42a0-b2d2-1af99dc81672

📥 Commits

Reviewing files that changed from the base of the PR and between 39f296d and bfc9e41.

📒 Files selected for processing (1)
  • src/pool/snapshot.rs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@glslang
glslang merged commit c67acaf into main Aug 14, 2026
9 checks passed
@glslang
glslang deleted the agent/stall-is-the-region-ending branch August 14, 2026 17:23
glslang added a commit to glslang/windbg-mcp that referenced this pull request Aug 14, 2026
glslang/dbgscope#108 and #109 are in main at 40f79cd: a valid-region query that
finds nothing now ends the region instead of being stepped over a page at a
time, and the unplaced-chunk diagnostic says which of its two causes it met.

Live figures for that pin, from the tier: stalled_pages 1,121 -> 0,
skipped_bytes 4,558,800 -> 0, refused_chunks 0, diagnostics 2,249 -> 1,014 in
9 categories, chunk count flat.
glslang added a commit to glslang/windbg-mcp that referenced this pull request Aug 14, 2026
glslang/dbgscope#108 and #109 are in main at 40f79cd: a valid-region query that
finds nothing now ends the region instead of being stepped over a page at a
time, and the unplaced-chunk diagnostic says which of its two causes it met.

Live figures for that pin, from the tier: stalled_pages 1,121 -> 0,
skipped_bytes 4,558,800 -> 0, refused_chunks 0, diagnostics 2,249 -> 1,014 in
9 categories, chunk count flat.
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.

pool: the page-stepping half of #94 recovered nothing on a live walk (recovered_bytes = 0)

1 participant