Repository navigation
Conversation
A stopped server's NewServer box is freed in NewServer::deinit, which runs only after the JS Server wrapper finalizes. When the wrapper is still alive or unswept at process exit, the box and everything its config owns are unreachable to LeakSanitizer: the only pointer lives in the JS heap, which lsan does not scan. These reports were previously masked by accident. Parked worker-thread stacks (lsan roots) held stale pointers into the dev-server options stored inline in ServerConfig, anchoring the whole server box. Boxing the options behind the erased DevServerOptions handle re-pointed those stale words at the separate options allocation, unmasking the server graph in test/bake/deinitialization.test.ts on the x64-asan lane.
|
Updated 5:26 PM PT - Jun 10th, 2026
❌ @robobun, your commit ab26456 has 2 failures in
🧪 To try this PR locally: bunx bun-pr 32084That installs a local version of the PR into your bun-32084 --bun |
|
This PR has been closed because it was flagged as AI slop. Many AI-generated PRs are fine, but this one was identified as having one or more of the following issues:
If you believe this was done in error, please leave a comment explaining why. |
|
This PR may be a duplicate of:
🤖 Generated with Claude Code |
|
Caution Review failedPull request was closed or merged during review WalkthroughAdds a LeakSanitizer suppression for the ChangesBun.serve deinitialization leak suppression
🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
This PR has been marked as AI slop and the description has been updated to avoid confusion or misleading reviewers.
Many AI PRs are fine, but sometimes they submit a PR too early, fail to test if the problem is real, fail to reproduce the problem, or fail to test that the problem is fixed. If you think this PR is not AI slop, please leave a comment.