avahi daemon uses a lot of CPU when network is not availiable

Bug #257687 reported by Denis Rut'kov
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Avahi
New
Undecided
Unassigned
avahi (Ubuntu)
Incomplete
Undecided
Unassigned
Nominated for Karmic by Li Li

Bug Description

The avahi daemon can use up to 60% of CPU (I have a Pentium-M 1.73 Ghz) when the network is physically disconnected.

Revision history for this message
Trent Lloyd (lathiat) wrote :

Hi Denis,

Unfortunately this bug report isn't too helpful to us as there are no more details.

Is this a common problem you see? Does it happen every time? Once off?

Thanks,
Trent

Revision history for this message
Denis Rut'kov (dendron2000) wrote :

Hi. Yes, I understand this isn't too helpful, but I have no idea what else I can tell about this bug. It happens every time when system boots up with wi-fi switched off and ethernet cable is physically disconnected. It's 100% reproducible.

Here is my /etc/network/interfaces file

auto lo
iface lo inet loopback

auto airnet
iface airnet inet ppp
pre-up ip link set eth0 up
provider airnet

iface eth0 inet static
address 192.168.128.161
netmask 255.255.0.0

auto eth0

As you can see I have a pptp connection named airnet set up at start up. Maybe the problem is somehow concerned with that.

Revision history for this message
Robert Ancell (robert-ancell) wrote :

Is this still occurring in Ubuntu 8.10 or 9.04?

Changed in avahi (Ubuntu):
status: New → Incomplete
Revision history for this message
Romel R. Sandoval-Palomo (romel-lavabit) wrote :

This still occurring in Ubuntu 8.10 (powerpc). I don't know on other platforms.

Revision history for this message
Li Li (lli5) wrote :

Could reproduce this in Karmic (x86 and Dove).

Revision history for this message
Nicola Ferralis (feranick) wrote :

Still there in 10.10.

Revision history for this message
J G Miller (jgmiller) wrote :

Are the Ubuntu Avahi packagers even aware of this serious bug which causes 100% cpu usage?

"daemon infinite loop triggered by an empty UDP packet"

https://bugzilla.redhat.com/show_bug.cgi?id=667187

Revision history for this message
Robert Ancell (robert-ancell) wrote :

J G Miller: That patch is in Natty

Revision history for this message
hamish (hamish-b) wrote :

I suspect they are actually unrelated to the (?)DNS timeout(?) of this bug, but for the 100% cpu use on null UDP packet bug see also #655835 and #546231.

(if Denis has no network, there's small chance someone has sent him a null packet, and I think(?) this bug report predates the avahi patch which caused that null packet DoS situation. at least two different things going on here)

Hamish

hamish (hamish-b)
Changed in avahi (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Phillip Susi (psusi) wrote :

If this is still happening, can you capture an strace log on the process?

Changed in avahi (Ubuntu):
status: Confirmed → Incomplete
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.