Interrupting pinentry-tty with ctrl-c leaves the terminal broken

Bug #1758050 reported by Jani Uusitalo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pinentry (Ubuntu)
New
Undecided
Unassigned

Bug Description

When pinentry-tty is used to prompt for the password, interrupting the prompt using ctrl-c leaves the terminal only partially working: only some letter keys are echoed back.

The terminal remains in this broken state for about a minute, after which it resets itself and everything starts working again.

Below, I'm swiping through all alphabet and numeric keys of my keyboard at both 14.54, where only "469+esgxb" gets through, and again at 14.55 (the last line), where they all come through.

14.54 jani@saegusa:testejä$ export LC_ALL=C
14.54 jani@saegusa:testejä$ { sleep 60; echo "60 seconds passed"; } & /usr/bin/gpg -d passwords.gpg
[1] 12375
gpg: AES encrypted data
Enter passphrase

Passphrase:
gpg: signal Interrupt caught ... exiting

14.54 jani@saegusa:testejä$ 469+esgxb^C
14.55 jani@saegusa:testejä$ 60 seconds passed

[1]+ Done { sleep 60; echo "60 seconds passed"; }
14.55 jani@saegusa:testejä$ 1234567890+wertyuiopåasdfghjklöäzxcvbnm,.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: pinentry-tty 1.1.0-1
ProcVersionSignature: Ubuntu 4.15.0-12.13-generic 4.15.7
Uname: Linux 4.15.0-12-generic x86_64
ApportVersion: 2.20.8-0ubuntu10
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Thu Mar 22 14:58:14 2018
Dependencies:
 gcc-8-base 8-20180319-1ubuntu2
 libassuan0 2.5.1-2
 libc6 2.27-0ubuntu2
 libgcc1 1:8-20180319-1ubuntu2
 libgpg-error0 1.27-6
InstallationDate: Installed on 2016-10-13 (524 days ago)
InstallationMedia: Ubuntu-Server 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=fi_FI.UTF-8
 SHELL=/bin/bash
SourcePackage: pinentry
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jani Uusitalo (uusijani) wrote :
Revision history for this message
Jani Uusitalo (uusijani) wrote :

Upstream (based on a merged duplicate): https://dev.gnupg.org/T2011

Revision history for this message
Jani Uusitalo (uusijani) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.