/usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
auto-apt (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* 'sudo auto-apt update' fills the RAM, causing the system to freeze for a few minutes
when the SWAP starts being used.
- Due to this, auto-apt is unusable in Trusty (and Saucy).
- This bug can only be reproduced after fixing bug #1300991 by applying the workaround
provided in the end of that bug report by the reported.
* The new version 0.3.24 fixes this bug, LP: #1300991 and a dpkg warning about an
obsolete argument.
[Test Case]
* First, apply the fix/workaround provided in the end of the bug report #1300991:
Open /usr/bin/auto-apt and remove the first "[[:space]]" from line 145, so that it
starts like 'sed -ne 's=^[[:
Without the fix/workaround, the next command wouldn't even work!
* Run the command 'sudo auto-apt update'.
- With version 0.3.23, RAM is quickly filled and the system freezes for a few minutes
(until the oom killer terminates the process).
- With the new version 0.3.24, RAM is not filled and the system doesn't freeze.
[Regression Potential]
* auto-apt is already non-functional in Trusty (and Saucy), therefore there is no
regression potential.
[Other Info]
* The original bug report for Saucy follows:
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://
100 /var/lib/
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/
Workaround: use /usr/lib/
(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]
Fixing that will make it possible to reproduce the bug, otherwise update commands won't even work.
Related branches
- Iain Lane: Approve
-
Diff: 45 lines (+4/-5)2 files modifiedauto-apt-pkgcdb.c (+2/-3)
auto-apt.sh (+2/-2)
summary: |
- /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM + /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM (only 0.3.23) |
summary: |
- /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM (only 0.3.23) + /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23 |
tags: | added: trusty |
tags: | added: saucy |
description: | updated |
description: | updated |
Changed in auto-apt (Ubuntu): | |
status: | Confirmed → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.