Skip to content

docs: withdraw the claim that debugpy's log made the multi-thread freeze frequent - #1397

Merged
debugmcpdev merged 2 commits into
mainfrom
fix/1264-freeze-claim
Nov 30, 2026
Merged

debugmcpdev merged 2 commits into
mainfrom
fix/1264-freeze-claim

Conversation

@debugmcpdev

@debugmcpdev debugmcpdev commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

What changes

A correction to text that went in with #1392. No behaviour changes.

The changelog entry of that change, and two comments beside the code, said or implied that debugpy's in-program log made the multi-thread freeze of the debugpy race issue far more likely: "6 freezes in 600 rounds with the log on, none in 600 with it off". The comparison does not show that.

  • A freeze needs both threads at their breakpoints together, so what counts is how often the second thread got there.
  • With the log on, it completed 15 loop iterations across the eight sessions, and 6 of them ended in a freeze.
  • With the log off, it completed 4, and none did.

Six of fifteen against none of four cannot be told apart (Fisher's exact test, p about 0.18).

What the runs do show is narrower: per round the log-on runs froze more often (6 in 600 against 0 in 600), because the second thread got to run about four times as often with the log on. That is a fact about the measurement's tight loop, not about the race. The two runs also differed in more than the log (the harness version, an hour between them).

What stands is the cost of a logpoint hit (26.1 µs with the log, 11.7 µs without), which is what #1392 was for. The changelog entry, the two comments and two doc references now say only that. Whether the log changes how often the freeze happens is left open in the issue for that race, whose text is corrected too.

The squash message of #1392 carries the claim and cannot be changed; a comment on that pull request and on its issue says so.

Review

  • Gemini: the withdrawal is sound and nothing is overstated the other way; it found a fifth place that still cited the freeze issue (a comment in the Python policy), fixed in the second commit.
  • Claude Opus recounted the figures from the raw traces: 6 freezes, 15 and 4 iterations, 600 rounds a side. It found that my first wording compared iterations on one side with wait exits on the other; this description and the squash message use iterations on both.

Verified

Python adapter and policy unit tests and the loopback guard pass. Type check, lint, docs check and changelog check pass. Five lines change: one changelog entry, two comments, two doc references.

Who wrote what

The claim was the manager session's (Claude), and so is this correction. An advisor review caught it before the evening's summary went out.

🤖 Generated with Claude Code

https://claude.ai/code/session_015BDrn82vMcRzWFDD9aUbZs

cynarlab and others added 2 commits November 29, 2026 19:09
…quent

The changelog entry of the debugpy log change, and a comment beside
it, said the in-program log made the multi-thread freeze far more
likely: 6 freezes in 600 rounds with the log on, none in 600 with it
off. The comparison does not show that. A freeze needs both threads at
their breakpoints together, and with the log off the second thread ran
only 1 and 3 times in those 600 rounds; with it on, it left its wait
33 times for the 6 freezes. Zero freezes in a handful of chances says
nothing either way.

What stands is the cost of a logpoint hit (26.1 to 11.7 microseconds),
which is what that change was for. The entry, the comment and two doc
references now say only that. Whether the log changes how often the
freeze happens is open in #1384.

The claim was the manager session's; so is this correction. The
squash message of #1392 carries it too and cannot be changed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015BDrn82vMcRzWFDD9aUbZs
A comment in the Python policy's fallback spawn still cited the freeze
issue as a reason for dropping --log-dir. Found by the Gemini review
of the previous commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015BDrn82vMcRzWFDD9aUbZs
@codecov

codecov Bot commented Nov 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@debugmcpdev
debugmcpdev marked this pull request as ready for review November 30, 2026 00:41
@debugmcpdev
debugmcpdev merged commit b1f8027 into main Nov 30, 2026
20 checks passed
@debugmcpdev
debugmcpdev deleted the fix/1264-freeze-claim branch November 30, 2026 00:41
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.

2 participants