Skip to content

Conversation

RonnyPfannschmidt
Copy link
Contributor

@RonnyPfannschmidt RonnyPfannschmidt commented Aug 1, 2025

closes #510

- Add PYTHONTRACEMALLOC=1 on Windows runners to debug gc errors with popen objects in test_case_cwd_evil[git]
- Add proper proc.wait() call in finally block to ensure process is reaped
- Add timeout and fallback to proc.kill() to prevent hanging
- This should resolve gc errors with popen objects in test_case_cwd_evil[git] on Windows

The previous code only called proc.wait() in the exception handler, leaving
processes unreleased in the normal flow, which could cause gc warnings about
unclosed subprocess popen objects.
@RonnyPfannschmidt RonnyPfannschmidt merged commit a63858b into pypa:main Aug 2, 2025
21 checks passed
@RonnyPfannschmidt RonnyPfannschmidt deleted the unraisable branch August 4, 2025 09:02
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.

investigate processes we leave open

1 participant