git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[bug] git clone command leaves orphaned ssh process

From
MAMax Amelchenko <maxamel2002@gmail.com>
Date
Sep 10, 2023, 06:38 UTC
Message-ID
<CAN47KsV0E+XC2F+TVKXnnJnkATRp7eM7=-ZJFyZcoTz9SJmcHQ@mail.gmail.com>
What did you do before the bug happened? (Steps to reproduce your issue)

Run the command: ps aux Observe no ssh processes running on system.

Run git clone against a non-existent hostname: git clone -v --depth=1 -b 3.23.66 ssh://*****@*****lab-prod.server.sim.cloud/terraform/modules/aws-eks /tmp/dest Observe the command fails with:

Could not resolve hostname *****lab-prod.server.sim.cloud: Name or service not known

Run: ps aux

Observe a defunct ssh process is left behind.

What did you expect to happen? (Expected behavior) I expected the command to quit without leaving any processes behind.

What happened instead? (Actual behavior) The command quit and left a defunct ssh process on the system.

What's different between what you expected and what actually happened? I don't want zombie processes left after any git command (either failed or not).

Anything else you want to add: These processes are zombie orphaned, meaning we're stuck with them until system reboot (which is bad).

Please review the rest of the bug report below.
You can delete any lines you don't wish to share.
[System Info]
git version:
git version 2.40.1
cpu: aarch64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
compiler info: gnuc: 7.3
libc info: glibc: 2.26
$SHELL (typically, interactive shell): <unset>
[Enabled Hooks]
not run from a git repository - no hooks to show
Next: Bagas Sanjaya
Message 1 of 9 in “[bug] git clone command leaves orphaned ssh process”
  1. Max AmelchenkoSep 10, 2023
  2. Bagas SanjayaSep 10, 2023
  3. Max AmelchenkoSep 10, 2023
  4. Taylor BlauSep 10, 2023
  5. Max AmelchenkoSep 11, 2023
  6. Aaron SchrabSep 12, 2023
  7. Jeff KingSep 12, 2023
  8. Max AmelchenkoSep 24, 2023
  9. Jeff KingSep 25, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.