Comment 0 for bug 1300987

Revision history for this message
iw2snl (iw2snl) wrote : /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM

1)Description: Ubuntu 13.10
Release: 13.10

Note: Actually Kubuntu 13.10

2)auto-apt:
  Installed: 0.3.23
  Candidate: 0.3.23
  Version table:
 *** 0.3.23 0
        500 http://md.archive.ubuntu.com/ubuntu/ saucy/universe amd64 Packages
        100 /var/lib/dpkg/status

3) $ sudo auto-apt update
Should update the database

4) Running the update command (hadn't verified updatedb) causes the system to freeze (seemingly).

I monitored the process tree with htop, during this command, and noticed, that /usr/lib/auto-apt/auto-apt-pkgdcb takes 100% CPU (doesn't seem to affect how responsive is the system) and like 60% of RAM. And it's constantly growing. Till it takes 100% of RAM, and then 100% SWAP. Then the process is automatically killed. But if you run the command from a graphical interface, you won't know it, because it seems like completely frozen.

Workaround: use /usr/lib/auto-apt/auto-apt-pkgdcb from auto-apt 0.3.22.
(works for me)

Notes regarding ways to reproduce in Ubuntu 13.10:
There is another bug, the sed line parsing sources.list has to trailing spaces (^[:[space]:][:[space]:]*deb), which cause update and updatedb to fail (no repository contents files are downloaded, so 0 entries are created).
Fixing that will make it possible to reproduce the bug, otherwise update commands won't even work.