From: Bagas Sanjaya <bagasdotme@gmail.com>
To: Max Amelchenko <maxamel2002@gmail.com>, git@vger.kernel.org
Cc: Hideaki Yoshifuji <hideaki.yoshifuji@miraclelinux.com>,
Junio C Hamano <gitster@pobox.com>
Subject: Re: [bug] git clone command leaves orphaned ssh process
Date: Sun, 10 Sep 2023 15:50:49 +0700 [thread overview]
Message-ID: <ZP2DaQMA_aFvjQiR@debian.me> (raw)
In-Reply-To: <CAN47KsV0E+XC2F+TVKXnnJnkATRp7eM7=-ZJFyZcoTz9SJmcHQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1913 bytes --]
On Sun, Sep 10, 2023 at 09:38:54AM +0300, Max Amelchenko wrote:
> 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.
On git current master on my system, I got sshd (server) processes instead:
```
root 835 0.0 0.0 15500 3584 ? Ss 14:38 0:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
165536 3865 0.0 0.0 8488 1408 ? Ss 14:39 0:00 sshd: /usr/sbin/sshd -D -e [listener] 0 of 10-100 startups
165536 4039 0.0 0.0 11308 1920 ? Ss 14:40 0:00 sshd: /usr/bin/sshd -D [listener] 0 of 10-100 startups
165536 4374 0.0 0.0 15404 1920 ? Ss 14:40 0:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
165536 4399 0.0 0.0 15404 1792 ? Ss 14:40 0:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
165536 4732 0.0 0.0 15404 2048 ? Ss 14:41 0:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
165536 4943 0.0 0.0 18004 848 ? Ss 14:41 0:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
bagas 6841 0.0 0.0 7668 1092 ? Ss 14:43 0:00 /usr/bin/ssh-agent /usr/bin/im-launch /usr/bin/gnome-session
bagas 6908 0.0 0.1 162780 5488 ? Ssl 14:43 0:00 /usr/libexec/gcr-ssh-agent /run/user/1000/gcr
```
What is your ps output then?
Thanks.
--
An old man doll... just what I always wanted! - Clara
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2023-09-10 8:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-10 6:38 [bug] git clone command leaves orphaned ssh process Max Amelchenko
2023-09-10 8:50 ` Bagas Sanjaya [this message]
2023-09-10 9:47 ` Max Amelchenko
2023-09-10 18:47 ` Taylor Blau
2023-09-11 10:11 ` Max Amelchenko
2023-09-12 0:40 ` Aaron Schrab
2023-09-12 4:33 ` Jeff King
2023-09-24 10:25 ` Max Amelchenko
2023-09-25 12:29 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZP2DaQMA_aFvjQiR@debian.me \
--to=bagasdotme@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=hideaki.yoshifuji@miraclelinux.com \
--cc=maxamel2002@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).