For future reference, I think this script reliably reproduces the bug. I
can confirm that the version currently in tenacious (1:10.6p2-1ubuntu1)
does not trigger the loop, and this version does contain the commit I've
linked above.
#!/bin/bash
set -euo pipefail
d=$(mktemp -d)
eval "$(ssh-agent -s)" >/dev/null
trap 'ssh-agent -k >/dev/null; rm -rf "$d"' EXIT
ssh-keygen -q -t ed25519 -N pass -f "$d/key"
cat <<'EOF' > "$d/run.sh"
#!/bin/bash
set -m
export DISPLAY= SSH_ASKPASS_REQUIRE=
bash -c 'trap "" TTIN TTOU; exec ssh-add "$1"' _ "$1" &
pid=$!
sleep 2
if kill -0 "$pid" 2>/dev/null; then
kill -9 "$pid" 2>/dev/null || true
exit 1
fi
EOF
if script -q -e -c "bash $d/run.sh $d/key" /dev/null >/dev/null 2>&1; then
echo "PASS"
else
echo "FAIL: ssh-add spun until timeout"
exit 1
fi
** Tags removed: server-freezer
** Tags added: server-todo
** Changed in: openssh (Ubuntu)
Status: Triaged => Fix Released
** Changed in: openssh (Ubuntu Resolute)
Status: New => Triaged
** Changed in: openssh (Ubuntu Resolute)
Assignee: (unassigned) => Guilherme Puida Moreira (puida)
** Changed in: openssh (Ubuntu Jammy)
Status: New => Triaged
** Changed in: openssh (Ubuntu Noble)
Status: New => Triaged
** Changed in: openssh-gssapi (Ubuntu Stonking)
Status: New => Triaged
** Changed in: openssh-gssapi (Ubuntu Stonking)
Assignee: (unassigned) => Guilherme Puida Moreira (puida)
** Changed in: openssh (Ubuntu Noble)
Assignee: (unassigned) => Guilherme Puida Moreira (puida)
** Changed in: openssh (Ubuntu Jammy)
Assignee: (unassigned) => Guilherme Puida Moreira (puida)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1646813
Title:
ssh (client) stucks in an endless loop with 100% CPU
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1646813/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs