You are not logged in.

#1 2015-07-24 06:50:52

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,398

SSH: CTRL-C in the terminal, no "^C", no newline... randomly.

Just installed a minimal system on an vmware ESXi host, there is no much installed, apart from the base packages, there is just an ssh server and network-ups-tools.
All is working fine, except for an irritating thing that happens then i hit ctrl-c in the shell.
As i'm used to, when i hit ctrl-c on a command line with no program running,  it prints "^C" and goes to the next line:

Gozer ~ # ls -la /tmp^C
Gozer ~ # 

...but sometimes, for no apparent reason, this won't work, and randomly, it starts to acts this way:

[root@arch_ups ~]# ls -la /tmp

hi just hit ctrl-c, but nothing happened.
indeed, if i continue to type ignoring the fact that i am on the same line:

[root@arch_ups ~]# ls -la /tmpls /var
cache  db  empty  games  lib  local  lock  log  mail  opt  run  spool  state  tmp

So, Ctrl-C has worked, but it just wont display the newline.
...bash executed "ls /var"

The most irritating thing is that i'm unable to find a way to trigger the problem.
I *think* i reproduced the problem with bash and zsh from konsole and xterm.

Any idea what's going on?

-EDIT-
It does not happens in the local console, but happens over ssh.
i was able to reproduce it by hitting ctrl-c multiple times:

[root@arch_ups ~]# ^C
[root@arch_ups ~]# ^C
[root@arch_ups ~]# ^C
[root@arch_ups ~]# ^C
[root@arch_ups ~]# ^C
[root@arch_ups ~]# ^C
[root@arch_ups ~]# ^C
[root@arch_ups ~]# ^C
[root@arch_ups ~]# ^C
[root@arch_ups ~]# ^C
[root@arch_ups ~]# ^C

...after some seconds, it stops to print "^C"

Last edited by kokoko3k (2015-07-24 12:34:44)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#2 2015-07-24 12:38:41

Malkymder
Member
Registered: 2015-05-13
Posts: 258

Re: SSH: CTRL-C in the terminal, no "^C", no newline... randomly.

post ouptput of this command please

stty -a | grep intr

Should output something like this, with more test after the semi-colon

intr = ^C; 

this might fix it if it does not

stty sane

edit:fixed typo

Last edited by Malkymder (2015-07-24 12:39:18)

Offline

#3 2015-07-24 13:23:10

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,398

Re: SSH: CTRL-C in the terminal, no "^C", no newline... randomly.

Thanks, but no luck:

[root@arch_ups ~]# stty -a | grep intr
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#4 2015-07-24 13:27:32

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,599

Re: SSH: CTRL-C in the terminal, no "^C", no newline... randomly.

You're not the only one seeing this.
https://bugs.archlinux.org/task/45629

Offline

#5 2015-07-24 15:40:27

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,398

Re: SSH: CTRL-C in the terminal, no "^C", no newline... randomly.

So maybe is an issue limited to virtualizated environments, thanks for pointing it out.


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#6 2015-07-25 08:23:35

leniviy
Member
Registered: 2009-05-23
Posts: 177

Re: SSH: CTRL-C in the terminal, no "^C", no newline... randomly.

kokoko3k wrote:

So maybe is an issue limited to virtualizated environments, thanks for pointing it out.

How many virtual cpus do you have? Can you try with more than one?


Arch 64, xfce4

Offline

Board footer

Powered by FluxBB