-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pasting large amount of text into vim running inside of podman hangs container #204
Comments
Just to be clear. I don't have to be editing a file in vim. I could just the large amount of text at the shell prompt and things stop processing after a second. |
Can you attach to the same container again, in a different terminal, after the hang? Does that work? How much text are we talking about? A few hundred lines, or tens of thousands? |
In this specific case I am pasting 2500 lines of text. I will try to re-attach to the container from a different terminal after the hang and report back. |
Okay. I attached to the still running container that is hung pasting into vim. I ran |
I can reproduce this on current master with something like 230 lines. |
@Luap99 Thanks. Now at least I know I am not going crazy :) Yes, I have had it happen with less lines but the number of lines doesn't seem consistent but it has always failed for 2500 lines. |
It looks like the |
but I cannot interact with the container without the |
You can still type the commands in there is just no shell prompt. I know it is not very useful without the tty. |
I'm trying to reproduce this locally, without success. Can you provide further details - is this a copy from another OS (over SSH) into a Podman container on a remote system? Anything unusual about the container? |
The terminal does seem to go a little haywire for me after a large copy - I'm seeing some unusual behavior trying to scroll with the arrow keys, for example. Definitely not hanging though. |
Nevermind - I managed to reproduce. Needed a significantly larger file than what I was using. |
@mheon I'm just running |
|
cool. thanks. was just about to respond. |
oh. I didn't do |
Conmon is definitely frozen - I'm stracing it, and it's hung on a |
Very interesting: when I ran |
@haircommander PING! |
I believe there's a decent amount of copying data to and from pipes with tty. it's possible there's something bigger than pipes buffering and having trouble catching up. I think moving this to the conmon repo makes sense and we can pick it up there |
A friendly reminder that this issue had no activity for 30 days. |
Now moved over to conmon. @haircommander, do you have cycles to tackle the issue? More users seem to hit it. |
I am not sure I have the cycles soon, so if y'all have anyone who can look at it, that would get this fixed faster. I will try to take a look in the coming weeks if not. |
we already have code in place to handle partial writes, just make sure the fd is not blocking so it doesn't hang on writes. Closes: containers#204 Signed-off-by: Giuseppe Scrivano <[email protected]>
opened a PR: #223 |
this broke conmon for me: see here containers/podman#9183 |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When pasting a large amount of text into a container environment (usually while editing a file in vim but also to a /bin/bash and /bin/sh shell prompt) the session hangs and there is no way to cancel, quit, exit, etc.
Steps to reproduce the issue:
Describe the results you received:
Terminal hangs. I have to open new session and stop the podman container and sometimes that doesn't stop the process so I have to search for it and kill by the process id.
Describe the results you expected:
All content pasted is now in file being edited in vim.
Additional information you deem important (e.g. issue happens only occasionally):
This happens when running PuTTY 0.74. It doesn't happen if running SSH from Windows 10 command line.
It also doesn't happen if I run the container using
docker run --rm -it busybox /bin/sh
instead of using podman.Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
Fedora CoreOS
PuTTY 0.74
The text was updated successfully, but these errors were encountered: