ssh terminal on Jaunty doesnt process ctrl-C ctrl-D ctrl-Z and so on

Bug #402973 reported by Riccardo Carlesso
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu
New
Undecided
Unassigned

Bug Description

On Jaunty I do ssh and a ctrl-C doesnt do anything.
The same with ctrl-Z and ctrl-D.

This is very similar to:

https://bugs.launchpad.net/bugs/317948

but to me EVERY common escape character doesnt work.

Another hint.
When I tried to launch a 'watch apachectl configtest' and couldnt ctrlC it, I killed the process from another ssh terminal. My other session is alive but not running.

i connected to a VM after upgrading my ubuntu hardy to JAUNTY.

SHELL=/bin/bash
TERM=xterm-color
SSH_CLIENT=2001:770:18:10:223:32ff:fe98:300d 61766 22
SSH_TTY=/dev/pts/0
USER=root
SSH_AUTH_SOCK=/tmp/ssh-nBBxXl2048/agent.2048
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
MAIL=/var/mail/root
PWD=/etc/apache2/sites-enabled
LANG=en_IE.UTF-8
HISTCONTROL=ignoreboth
HOME=/root
SHLVL=2
LOGNAME=root
SSH_CONNECTION=2001:770:18:10:223:32ff:fe98:300d 61766 2001:770:18:2::c101:db72 22
LESSOPEN=| /usr/bin/lesspipe %s
DISPLAY=localhost:10.0
LESSCLOSE=/usr/bin/lesspipe %s %s
_=/usr/bin/env
OLDPWD=/etc/apache2

oot@deepthought:/etc/apache2/sites-enabled# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu karmic (development branch)
Release: 9.10
Codename: karmic

root@deepthought:/etc/apache2/sites-enabled# uname -a
Linux deepthought 2.6.28-13-server #45-Ubuntu SMP Tue Jun 30 20:51:10 UTC 2009 i686 GNU/Linux

Revision history for this message
tib (tipcsi) wrote :

it's been happening only for a few days, i think it must be one of the upgrades but i can't figure out which...
(grep 'configure ' /var/log/dpkg.log* | gzip > /upgrades.gz # see attachment)

ctrl-c/ctrl-z works with csh, it doesn't work with bash
on the console everything works as expected

clients i tried:
- os x stock ssh
- putty
- some java based ssh client

i also use karmic, the kernels i tried it with were:
- vmlinuz-2.6.30-9-server
- vmlinuz-2.6.27-14-server

bash versions i tried:
- 3.2-5ubuntu2 3.2-5ubuntu2
- 3.2-4ubuntu1 3.2-4ubuntu1

$ stty -a # it looks ok
speed 38400 baud; rows 25; columns 156; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase tostop -echoprt echoctl echoke

Revision history for this message
tib (tipcsi) wrote :

interesting:

when i do an "invoke-rc.d squid3 start" from an ssh bash login shell squid is "out of control": it can't be stopped or anything (but kill -9'ed)

when i start it with "ssh root@... invoke-rc.d squid3 start" it works alright

basically, nothing i start from an ssh'd bash login shell receives any signals but SIGKILL...

Revision history for this message
tib (tipcsi) wrote : Re: [Bug 402973] Re: ssh terminal on Jaunty doesnt process ctrl-C ctrl-D ctrl-Z and so on

hi Marlon,
i disagree about its being a duplicate of the gnome-terminal case
first, i don't use gnome terminal, i use a mac where copy isn't ctrl-c (it's
cmd-c)
besides, i tried several clients (see the notes i added) and the problem can
be reproduced on each
if you look through my notes you'll see that what changed it was switching
to csh from bash
(one funny thing: the problem sometimes go away, but returns after a reboot)
could you keep it a separate case?
many thanks

On Sat, Aug 1, 2009 at 00:56, Marlon Cisternas Milla <email address hidden>wrote:

> *** This bug is a duplicate of bug 317948 ***
> https://bugs.launchpad.net/bugs/317948
>
> ** This bug has been marked a duplicate of bug 317948
> ctrl+c doesn't interrupt running process
>
> --
> ssh terminal on Jaunty doesnt process ctrl-C ctrl-D ctrl-Z and so on
> https://bugs.launchpad.net/bugs/402973
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Ubuntu: New
>
> Bug description:
> On Jaunty I do ssh and a ctrl-C doesnt do anything.
> The same with ctrl-Z and ctrl-D.
>
> This is very similar to:
>
> https://bugs.launchpad.net/bugs/317948
>
> but to me EVERY common escape character doesnt work.
>
> Another hint.
> When I tried to launch a 'watch apachectl configtest' and couldnt ctrlC it,
> I killed the process from another ssh terminal. My other session is alive
> but not running.
>
> i connected to a VM after upgrading my ubuntu hardy to JAUNTY.
>
> SHELL=/bin/bash
> TERM=xterm-color
> SSH_CLIENT=2001:770:18:10:223:32ff:fe98:300d 61766 22
> SSH_TTY=/dev/pts/0
> USER=root
> SSH_AUTH_SOCK=/tmp/ssh-nBBxXl2048/agent.2048
>
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
> MAIL=/var/mail/root
> PWD=/etc/apache2/sites-enabled
> LANG=en_IE.UTF-8
> HISTCONTROL=ignoreboth
> HOME=/root
> SHLVL=2
> LOGNAME=root
> SSH_CONNECTION=2001:770:18:10:223:32ff:fe98:300d 61766
> 2001:770:18:2::c101:db72 22
> LESSOPEN=| /usr/bin/lesspipe %s
> DISPLAY=localhost:10.0
> LESSCLOSE=/usr/bin/lesspipe %s %s
> _=/usr/bin/env
> OLDPWD=/etc/apache2
>
>
> oot@deepthought:/etc/apache2/sites-enabled# lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description: Ubuntu karmic (development branch)
> Release: 9.10
> Codename: karmic
>
> root@deepthought:/etc/apache2/sites-enabled# uname -a
> Linux deepthought 2.6.28-13-server #45-Ubuntu SMP Tue Jun 30 20:51:10 UTC
> 2009 i686 GNU/Linux
>

Revision history for this message
Foo Bar (barfoo) wrote :

I have the same problem on karmic, Ctrl-C is not interrupting, nor do Ctrl-Z work. This machine doesn't have gnome installed. Also, when logging out of my ssh session the forked sshd process becomes a zombie.

Revision history for this message
Filipi Vianna (fvianna) wrote :

I have the same problem on karmic, Ctrl-C, Ctrl-Z, Ctrl-D, none of them are working, and I am connecting trought SSH with Xterm to a karmic box.

Revision history for this message
Gustavo A. Díaz (gdiaz) wrote :

Same for me guys, since karmic i can't break with ctrl+c in SSH.

Cheers.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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