Sometimes when my terminal freezes up and it will not let me type. I can not identify any causes, nor how to diagnose. Any suggestions?
Thanks!
GNOME Terminal 2.30.2 on Ubuntu 10.04
Sometimes when my terminal freezes up and it will not let me type. I can not identify any causes, nor how to diagnose. Any suggestions?
Thanks!
GNOME Terminal 2.30.2 on Ubuntu 10.04
Did you press Ctrl+S by any chance? It's the terminal pause key that stops all output until you press Ctrl-Q to resume.
It's also the same control character used for software flow control, when one device wants to tell the other device to slow down for a bit.
– Marius Gedminas Apr 25 '20 at 17:34A good general way to diagnose mysterious hangs:
ps axo pid,wchan:32,cmd
to find the other process idwchan
column, which should tell you whether it's stuck in the kernelsudo strace -p PID
inserting the pid of that process; paste that into a bug report or questionIf there's anything aside from just a dash in the wchan column, then the process is in the kernel doing something. Some typical values:
futex_wait_queue_me
- waiting on a futex for another thread in the same process poll_schedule_timeout
- waiting for network or interprocess communication, or just sleeping for a whilepipe_wait
- reading/writing a pipeThere are thousands of possibilities so I can't list them all. See What is the "Waiting Channel" of a process? for more.
wchan
means the process is waiting in the kernel. If it stays there for a long time and for no good reason like listening for network io, then it's stuck. ;)
– poolie
Dec 11 '15 at 06:08
do-epoll-wait
and do-wait
in the wchan
column related to .vscode-server
which should be fine listening to remote wsl
connection.
– Timo
Jun 20 '21 at 07:45
top
in a terminal, you should be able to locate the problem easily. – RolandiXor Nov 30 '10 at 02:37