Putty process causes high CPU load when connection times out.

Bug #157182 reported by lingmann
6
Affects Status Importance Assigned to Milestone
PuTTY
Fix Released
Undecided
Unassigned
Ubuntu
Incomplete
Medium
Unassigned

Bug Description

Binary package hint: putty

When "connection timed out" dialog box appears, putty process consumes all idle CPU. To reproduce:

1. Estable putty ssh connection to remote host
2. Disconnect local network connection
3. Wait for putty "connection timed out" dialog box to appear
4. Run 'top' to examine process load

Tested under Ubuntu 7.10 Gutsy Gibbon.

lingmann (jeremy-slappy)
description: updated
Revision history for this message
Ted Anderson (ota-surfvi) wrote :

I can confirm that this bug is still present in Xubuntu Hardy Heron 8.04.

Here is the list of versions of depended packages:
||/ Name Version Description
+++-==============-==============-============================================
ii libc6 2.7-10ubuntu3 GNU C Library: Shared libraries
ii libglib1.2ldbl 1.2.10-19build The GLib library of C routines
ii libgtk1.2 1.2.10-18.1bui The GIMP Toolkit set of widgets for X
ii libx11-6 2:1.1.3-1ubunt X11 client-side library
ii libxext6 2:1.0.3-2build X11 miscellaneous extension library
ii libxi6 2:1.1.3-1 X11 Input extension library
ii putty 0.60-2build1 Telnet/SSH client for X
ii putty-tools 0.60-2build1 command-line tools for SSH, SCP, and SFTP

Revision history for this message
nandhp (nandhp) wrote :

This bug has already been reported upstream:
http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/unix-connreset-spin.html
(Launchpad wouldn't recognize the link for some reason)

It is a problem with GTK 1.2, which PuTTY currently uses. The next version of PuTTY will use GTK 2, and this does fix the problem.

Changed in putty:
status: New → Fix Committed
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Could you try to reproduce the same with Ubuntu 8.10 or 9.04? Thanks in advance.

Changed in gtk+1.2:
status: New → Incomplete
Revision history for this message
Pedro Villavicencio (pedro) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to New. Thanks again!.

Changed in gtk+1.2 (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Ted Anderson (ota-surfvi) wrote :

I have no trouble reproducing this on Hardy (8.04). I do not have 8.10 installed. The reproduce the problem, I use putty to connect over SSH to another host. On that host, I kill the sshd parent process and that causes a "Server unexpectedly closed network connection" dialog box to pop-up. The CPU usage on my machine immediately jumps to 30% user 70% system. The above entries explain in a general way the cause of the problem.

I borrowed an 8.10 system and the problem still occurs there.

As a work around I've been using a copy from the Putty Development tree. If you compare the ldd output, you can see the different gtk dependencies that the above poster pointed out.

% ldd /home/ota/down/putty.dev-snap.0.60-2008-06-24|grep gtk
 libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb7bc7000)
% ldd /usr/bin/putty| grep gtk
 libgtk-1.2.so.0 => /usr/lib/libgtk-1.2.so.0 (0xb7dae000)

Ted

Revision history for this message
nandhp (nandhp) wrote :

This bug is still present in 8.10. As discussed in the upstream bug report (http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/unix-connreset-spin.html), this bug is due to the fact that PuTTY 0.60 still uses GTK 1.2, which has a bug that is causing this problem. I am reopening the bug in gtk+-1.2 for this reason. The next version of PuTTY (which has not yet been released) will use GTK2, and it does not have this issue.

Unfortunately, it is unlikely the bug in GTK1.2 will be fixed, since it is so old. Furthermore, since packaging a development snapshot of PuTTY is presumably out of the question, this bug will probably have to remain until the next version of PuTTY comes out.

Changed in gtk+1.2:
status: Invalid → New
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? May you please try the same with Karmic and comment back? Thanks in advance.

Changed in gtk+1.2 (Ubuntu):
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Ross Younger (crazyscot) wrote :

I notice that Karmic contains a new version (0.60+2009-08-22-2 - a development snapshot), which is linked against gtk2. This bug might well be dead; I don't seem able to reproduce it.

Revision history for this message
rusivi2 (rusivi2-deactivatedaccount) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue that you reported should be reproducible with the live environment of the Desktop CD development release - Maverick Meerkat. It would help us greatly if you could test with it so we can work on getting it fixed in the next release of Ubuntu. You can find more about the development release at http://www.ubuntu.com/testing/. Thanks again and we appreciate your help.

Revision history for this message
Ted Anderson (ota-surfvi) wrote :

I can confirm that this problem is fixed in Ubuntu 10.04.

ii putty 0.60+2009-11-2 Telnet/SSH client for X

% ldd /usr/bin/putty| grep gtk
 libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x00882000)

Thanks,
Ted

nandhp (nandhp)
Changed in putty:
status: Fix Committed → Fix Released
affects: gtk+1.2 (Ubuntu) → ubuntu
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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