Skip to content

fix(pwntools): include retained process group in cleanup resources - #2436

Closed
BeqaKs wants to merge 1 commit into
morluto:mainfrom
BeqaKs:fix/pwntools-cleanup-resources
Closed

BeqaKs wants to merge 1 commit into
morluto:mainfrom
BeqaKs:fix/pwntools-cleanup-resources

Conversation

@BeqaKs

@BeqaKs BeqaKs commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • npm run test:local -- src/process/OwnedCommand.resources.test.ts
  • npm run check:fast
  • CI: tests/process-global/pwntoolsStageRetirement.test.ts, tests/boundary/process/ownedCommand.test.ts (require Darwin ownership inspector compile locally)

When decoder retirement cannot stop an owned process, report pid and
process-group labels alongside the run id and runtime directory, matching
OwnedCommand cleanup_incomplete resources (fixes morluto#2274).

Co-authored-by: Cursor <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@morluto

morluto commented Oct 13, 2026

Copy link
Copy Markdown
Owner

@greptileai review

@greptile-apps

greptile-apps Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5 Tier: plus

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Adds ownedCommandResources() and includes recorded process and group IDs in pwntools cleanup errors.

  • Pwntools cleanup errors now name the retained leader and process group.

Reviews (1) · Last reviewed commit: "fix(pwntools): include retained process ..." · Reviewed by Greptile

@BeqaKs

BeqaKs commented Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

Closing as superseded: #2274 was fixed by #2281 (4303dcdcf), which already includes pid: / process-group: in pwntools cleanup resources on main.

@BeqaKs BeqaKs closed this Oct 13, 2026
@morluto morluto added bug Something isn't working area: runtime Process capture and runtime observation labels Oct 14, 2026
@morluto

morluto commented Oct 15, 2026

Copy link
Copy Markdown
Owner

@BeqaKs, thanks for tracing the cleanup gap to the retained process group rather than only the direct child. The shared owned-command resource projection now carries that group into the pwntools cleanup path (main).

@morluto morluto added the provider: pwntools Analysis provider / engine: pwntools label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: runtime Process capture and runtime observation bug Something isn't working provider: pwntools Analysis provider / engine: pwntools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] pwntools cleanup_incomplete omits the retained process group from its resources

2 participants