Bug 1814928

Summary: "podman exec -it" will hang with leading keyboard input
Product: Red Hat Enterprise Linux 8 Reporter: Kirby Zhou <kirbyzhou>
Component: podmanAssignee: Jindrich Novy <jnovy>
Status: CLOSED ERRATA QA Contact: atomic-bugs <atomic-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.1CC: ajia, bbaude, dwalsh, hhorak, jligon, jnovy, lsm5, mheon, tsweeney, ypu
Target Milestone: rc   
Target Release: 8.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: conmon-2.0.16 and newer, podman-2.0.0 and newer Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 03:05:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kirby Zhou 2020-03-19 03:33:25 UTC
Description of problem:

"podman exec -it" will hang with leading keyborad input.


Version-Release number of selected component (if applicable):

podman-1.6.4-2.module_el8.1.0+272+3e64ee36.x86_64
runc-1.0.0-64.rc9.module_el8.1.0+272+3e64ee36.x86_64


How reproducible:

100%

Steps to Reproduce:
1. podman run -dt --rm --name alpine docker.io/alpine 
2. (sleep 5; podman exec -it alpine /bin/sh )
3. # quickly hit keyboard to input something before podman begin.


Actual results:

podman exec will hang.

 ~]$ (sleep 5; podman exec -it alpine /bin/sh )
hello # I input before podman running



/ #    # hang here



Expected results:

podman runs normally.

Additional info:

Comment 1 Tom Sweeney 2020-03-19 19:44:25 UTC
I believe this was recently fixed upstream by Matt.  Assigning to him to comment.

Comment 2 Matthew Heon 2020-03-19 20:42:59 UTC
I have reports that we may have regressed upstream. I'll try and verify tomorrow

Comment 3 Honza Horak 2020-04-23 15:41:17 UTC
Looks like this is the upstream issue:
https://github.com/containers/libpod/issues/4397

Comment 10 Alex Jia 2020-07-20 13:31:06 UTC
Verified on podman-2.0.0-0.9.rc7.module+el8.3.0+7084+c16098dd.x86_64
w/ conmon-2.0.16-1.module+el8.3.0+6615+53797f3b.x86_64.

Comment 13 errata-xmlrpc 2020-11-04 03:05:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: container-tools:rhel8 security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:4694