[telepathy-gabble] Process takes 100% CPU, polling closed sockets.

Bug #868617 reported by Mike Mestnik
78
This bug affects 16 people
Affects Status Importance Assigned to Milestone
telepathy-gabble
Unknown
Medium
telepathy-gabble (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

arcadia:~# lsof -np 9041 | grep -e 9u -e 10u
lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/cheako/.gvfs
      Output information may be incomplete.
telepathy 9041 cheako 9u IPv4 6090575 0t0 TCP 192.168.172.26:41507->192.168.172.100:9050 (CLOSE_WAIT)
telepathy 9041 cheako 10u IPv4 6090576 0t0 TCP 192.168.172.26:41508->192.168.172.100:9050 (CLOSE_WAIT)
arcadia:~# strace -p 9041 2>&1 | head
Process 9041 attached - interrupt to quit
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=3, events=POLLIN}, {fd=9, events=POLLIN}, {fd=10, events=POLLIN}], 5, -1) = 2 ([{fd=9, revents=POLLIN}, {fd=10, revents=POLLIN}])
recv(9, "", 4, 0) = 0
recv(10, "", 4, 0) = 0
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=3, events=POLLIN}, {fd=9, events=POLLIN}, {fd=10, events=POLLIN}], 5, -1) = 2 ([{fd=9, revents=POLLIN}, {fd=10, revents=POLLIN}])
recv(9, "", 4, 0) = 0
recv(10, "", 4, 0) = 0
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=3, events=POLLIN}, {fd=9, events=POLLIN}, {fd=10, events=POLLIN}], 5, -1) = 2 ([{fd=9, revents=POLLIN}, {fd=10, revents=POLLIN}])
recv(9, "", 4, 0) = 0
recv(10, "", 4, 0) = 0

Firstly it should give up and drop back to select style operation. Secondly, and perhaps more apparent, it should remove the CLOSE_WAIT sockets and reconnect.

It's worth noting that 192.168.172.100:9050 is a socks5 server.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: telepathy-gabble 0.13.5-0ubuntu2
ProcVersionSignature: Ubuntu 3.0-2.3-generic-pae 3.0.0-rc4
Uname: Linux 3.0-2-generic-pae i686
ApportVersion: 1.23-0ubuntu2
Architecture: i386
Date: Wed Oct 5 13:34:14 2011
ProcEnviron:
 LANGUAGE=en
 PATH=(custom, no user)
 LANG=C
 SHELL=/bin/bash
SourcePackage: telepathy-gabble
UpgradeStatus: Upgraded to oneiric on 2011-06-23 (104 days ago)

Revision history for this message
In , Xavier Claessens (zdra) wrote :

I have no idea what's going on, the tube works perfectly even if gabble is taking 100% CPU. After closing the tube, gabble still takes 100% CPU.

See attached logs.

Revision history for this message
In , Xavier Claessens (zdra) wrote :

Note: I attached gabble into gdb and interupted it, but it's always in mainloop's poll function. So probably an idle callback that keep running?

Revision history for this message
In , Xavier Claessens (zdra) wrote :

Created attachment 40869
gabble logs

Looks like this happens only when channel request fails

Revision history for this message
In , Guilherme Blanco (guilhermeblanco) wrote :

I confirm the same situation.

$ lsb_release -rd
Description: Ubuntu 10.10
Release: 10.10

$ apt-cache policy telepathy-gabble
telepathy-gabble:
  Installed: 0.10.0-1
  Candidate: 0.10.0-1
  Version table:
 *** 0.10.0-1 0
        500 http://br.archive.ubuntu.com/ubuntu/ maverick/main i386 Packages
        100 /var/lib/dpkg/status

Everytime I attempt to connect on Gtalk, I get a connection error and this process - telepathy_gabble - consumes > 100% of my CPU.
Problem is only solved when all networks connect or when empathy is closed.

If you need more information, just ask.

Revision history for this message
Mike Mestnik (cheako) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in telepathy-gabble (Ubuntu):
status: New → Confirmed
Revision history for this message
Jhosman Lizarazo (jhosman) wrote :

I have this same problem, Ubuntu 12.04 Installed

Revision history for this message
Agoston Horvath (horvath-agoston) wrote :

I also get immense traffic, some 500kB - 1MB/second! All of them tiny UDP packets.

Not fun! Renders the package unusable.

Revision history for this message
Kieran De Waal (kieran-dewaal) wrote :

Is there any update? Is anyone even looking at it?

Revision history for this message
Mike Mestnik (cheako) wrote :

I'm seriously thinking about stopping using Ubuntu, they don't have the man power Debian has and I feel most of my bugs are just ignored.

Some are trivial, but overall it's not an insignificant list... for just one user:
https://bugs.launchpad.net/~cheako

Revision history for this message
In , Gitlab-migration (gitlab-migration) wrote :

-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-gabble/issues/116.

Changed in telepathy-gabble:
importance: Unknown → Medium
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.