[Bug 1059286] Re: avahi-daemon takes 100% CPU right after boot

Till Kamppeter 1059286 at bugs.launchpad.net
Sun Oct 7 22:09:09 UTC 2012


I am attaching an strace log. For this I restart avahi-daemon to assure
that it is not on 100% CPU. CUPS is running. Then I run

sudo strace -ftvvs 65535 -p PID 2>&1 | tee log

with PID being the process ID of avahi-daemon. I have restarted CUPS at
23:58:50, then I have restarted CUPS at 23:59:31 and the restart command
took until 23:59:38. I stopped CUPS at 00:01:24 and it took until
00:01:26. The log ends at 00:03:25.

Note that avahi-daemon did not spin up this time. It seems only to spin
up if it is not coupled with strace. strace seems to slow down avahi-
daemon and this way avahi-daemon does not go wild when CUPS is
registering its print queues. After decoupling strace and starting cups
again not under observation by strace, avahi-daemon spins up.

So we should run avahi-daemon under strace by default, simply piping the
log to /dev/null ...

For me it seems a timing problem.

** Attachment added: "log"
   https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/1059286/+attachment/3384076/+files/log

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to avahi in Ubuntu.
https://bugs.launchpad.net/bugs/1059286

Title:
  avahi-daemon takes 100% CPU right after boot

Status in “avahi” package in Ubuntu:
  New

Bug description:
  When I boot the system and log in avahi-daemon takes 100% CPU and
  Avahi/mDNS/Bonjour does not work at all, avahi-discover does not get
  access to anything and does not open its window, until it reaches a
  timeout and shows an error dialog.

  When I restart avahi-daemon with

  sudo restart avahi-daemon

  avahi-daemon usually gets back to normal not taking significant CPU
  percentage and answering to avahi-discover correctly. If it takes 100%
  CPU again I simply do another restart to get it to normal.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.10
  Package: avahi-daemon 0.6.31-1ubuntu1
  ProcVersionSignature: Ubuntu 3.5.0-16.25-generic 3.5.4
  Uname: Linux 3.5.0-16-generic x86_64
  ApportVersion: 2.5.3-0ubuntu1
  Architecture: amd64
  Date: Mon Oct  1 00:05:30 2012
  InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64 (20120724.2)
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: avahi
  UpgradeStatus: No upgrade log present (probably fresh install)
  mtime.conffile..etc.avahi.avahi.daemon.conf: 2012-09-18T17:25:04.112674

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/1059286/+subscriptions




More information about the foundations-bugs mailing list