Title: logging_subprocess deadlocks on Windows when child stdout/stderr exceeds pipe buffer · Issue #519 · josegonzalez/python-github-backup · GitHub
Open Graph Title: logging_subprocess deadlocks on Windows when child stdout/stderr exceeds pipe buffer · Issue #519 · josegonzalez/python-github-backup
X Title: logging_subprocess deadlocks on Windows when child stdout/stderr exceeds pipe buffer · Issue #519 · josegonzalez/python-github-backup
Description: Problem logging_subprocess in github_backup/github_backup.py opens child processes with stdout=PIPE, stderr=PIPE but never drains those pipes on Windows, causing git clone / git fetch of any repo producing more than a few KB of output to...
Open Graph Description: Problem logging_subprocess in github_backup/github_backup.py opens child processes with stdout=PIPE, stderr=PIPE but never drains those pipes on Windows, causing git clone / git fetch of any repo p...
X Description: Problem logging_subprocess in github_backup/github_backup.py opens child processes with stdout=PIPE, stderr=PIPE but never drains those pipes on Windows, causing git clone / git fetch of any repo p...
Opengraph URL: https://github.com/josegonzalez/python-github-backup/issues/519
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"logging_subprocess deadlocks on Windows when child stdout/stderr exceeds pipe buffer","articleBody":"## Problem\r\n\r\n`logging_subprocess` in `github_backup/github_backup.py` opens child processes with `stdout=PIPE, stderr=PIPE` but never drains those pipes on Windows, causing `git clone` / `git fetch` of any repo producing more than a few KB of output to hang indefinitely.\r\n\r\n## Steps\r\n\r\n1. On Windows, run `github-backup \u003cuser> --all -o backup/` against any account with a repo whose clone produces substantial stderr progress output.\r\n2. Observe process hangs at the first large `git clone` or `git fetch`.\r\n\r\n## Expected\r\n\r\nProcess completes; child output is either drained silently or logged.\r\n\r\n## Actual\r\n\r\nThe parent's `while child.poll() is None: check_io()` loop spins forever because `check_io()` returns immediately on `win32` (`github_backup/github_backup.py:102-103`) while the child's PIPE buffers fill and block the git subprocess.\r\n\r\n## Environment\r\n\r\n- github-backup 0.63.0 (`github_backup/__init__.py:1`)\r\n- Windows, Python 3.10+ (per `pyproject.toml`)\r\n\r\nCite: `github_backup/github_backup.py:91-114`. Fix idea: drain stdout/stderr with threads on Windows, or pass `stdout=None, stderr=None` when `sys.platform == \"win32\"` so the child inherits the parent's handles instead of buffering into a never-read PIPE.\r\n\r\nThanks for maintaining josegonzalez/python-github-backup!","author":{"url":"https://github.com/chirag127","@type":"Person","name":"chirag127"},"datePublished":"2026-07-04T06:11:48Z","url":"https://github.com/josegonzalez/python-github-backup/issues/519"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:505ac925-244c-fd51-66d8-e7a195fc4f8e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 986C:3F5AC:3002A9:41A2C6:6B05D864 |
| html-safe-nonce | d549e40f09bd2092622eb615f8ed8172cae2f91d46915c9b6ae0002e46afcf3a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODZDOjNGNUFDOjMwMDJBOTo0MUEyQzY6NkIwNUQ4NjQiLCJ2aXNpdG9yX2lkIjoiNjE3NzQyNTc0OTY2MzE0NDAzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 91cec2a0b4c0d5dbb82f0b5d26467333af28169645fed5143ec8b4fae7fe0c43 |
| hovercard-subject-tag | issue:4807895492 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/josegonzalez/python-github-backup/519/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a050be5ad6b2015db75edabbcb282245c6d328f28455900694565f7d4bb13f20/josegonzalez/python-github-backup/issues/519 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a050be5ad6b2015db75edabbcb282245c6d328f28455900694565f7d4bb13f20/josegonzalez/python-github-backup/issues/519 |
| og:image:alt | Problem logging_subprocess in github_backup/github_backup.py opens child processes with stdout=PIPE, stderr=PIPE but never drains those pipes on Windows, causing git clone / git fetch of any repo p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chirag127 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7cc8361bc0396e5c33704280422dd7a38c5b91f6190589faea57461f56967249 |
| turbo-cache-control | no-preview |
| go-import | github.com/josegonzalez/python-github-backup git https://github.com/josegonzalez/python-github-backup.git |
| octolytics-dimension-user_id | 65675 |
| octolytics-dimension-user_login | josegonzalez |
| octolytics-dimension-repository_id | 14876085 |
| octolytics-dimension-repository_nwo | josegonzalez/python-github-backup |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14876085 |
| octolytics-dimension-repository_network_root_nwo | josegonzalez/python-github-backup |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ab4da203740f827015a12d36851c8de196e908bf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width