[Bug 1300987] Re: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23
This bug was fixed in the package auto-apt - 0.3.23ubuntu0.14.04.1 --- auto-apt (0.3.23ubuntu0.14.04.1) trusty; urgency=medium * No change rebuild from Debian auto-apt 0.3.24, which fixes only these bugs: - Patches supplied by Bruno Nova, with thanks. - Plug a memory leak caused by not freeing lines read from stdin. (LP: #1300987) - Use dpkg --print-architecture instead of deprecated dpkg --print-installation-architecture (the latter causes a warning). (LP: #1300991) - Accept no leading spaces at the start of a line in sources.list. (LP: #1300991) -- Robie Basak robie.ba...@ubuntu.com Tue, 03 Jun 2014 13:32:35 + ** Changed in: auto-apt (Ubuntu Trusty) Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1300987 Title: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/auto-apt/+bug/1300987/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1300987] Re: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23
I've installed the updated auto-apt package, version 0.3.23ubuntu0.14.04.1 from trusty-proposed, in a Ubuntu 14.04 virtual machine (I'm still using 13.10). This version seems to work correctly. The auto-apt commands mentioned in the description work fine and without filling the RAM. I've also tested using auto-apt to help me install 'nano' from source ('auto-apt run ./configure'). It installed all required dependencies. After that, 'make' compiled the program without problems. ** Tags removed: verification-needed ** Tags added: verification-done -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1300987 Title: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/auto-apt/+bug/1300987/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1300987] Re: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23
Hello iw2snl, or anyone else affected, Accepted auto-apt into trusty-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/auto- apt/0.3.23ubuntu0.14.04.1 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance! ** Changed in: auto-apt (Ubuntu Trusty) Status: Triaged = Fix Committed ** Tags added: verification-needed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1300987 Title: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/auto-apt/+bug/1300987/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1300987] Re: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23
Uploaded to trusty-proposed. Unsubscribing sponsors. Now awaiting SRU team approval. Thank you for your work! ** Changed in: auto-apt (Ubuntu Trusty) Status: New = Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1300987 Title: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/auto-apt/+bug/1300987/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1300987] Re: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23
** Tags added: trusty -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1300987 Title: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/auto-apt/+bug/1300987/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1300987] Re: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23
** Tags added: saucy -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1300987 Title: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/auto-apt/+bug/1300987/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1300987] Re: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23
** Description changed: + [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=^[[:space:]]*deb[[:space:]]'. + 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://md.archive.ubuntu.com/ubuntu/ saucy/universe amd64 Packages - 100 /var/lib/dpkg/status + 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. - 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. + 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. ** Description changed: [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. + 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. + 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=^[[:space:]]*deb[[:space:]]'. - 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. + Open /usr/bin/auto-apt and remove the first [[:space]] from line 145, so that it + starts like 'sed -ne 's=^[[:space:]]*deb[[:space:]]'. + Without the fix/workaround, the next command wouldn't even work! + * Run the command 'sudo
[Bug 1300987] Re: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23
** Changed in: auto-apt (Ubuntu) Status: Confirmed = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1300987 Title: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/auto-apt/+bug/1300987/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1300987] Re: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23
Ubuntu Sponsors, could you backport version 0.3.24 of auto-apt to trusty-proposed? That version of the package fixes both this bug and LP: #1300991. auto-apt is not functional in the current version 0.3.23. Important note: 0.3.24 was uploaded to Debian and will, eventually, be synced into Utopic. It is not yet available there. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1300987 Title: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/auto-apt/+bug/1300987/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1300987] Re: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23
** Also affects: auto-apt (Ubuntu Trusty) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1300987 Title: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/auto-apt/+bug/1300987/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1300987] Re: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23
I've linked a branch that fixes this bug, bug #1300991 and the warning I mentioned in that bug. There was indeed a memory leak. ** Branch linked: lp:~brunonova/ubuntu/trusty/auto- apt/lp1300987_lp1300991 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1300987 Title: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/auto-apt/+bug/1300987/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1300987] Re: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: auto-apt (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1300987 Title: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/auto-apt/+bug/1300987/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1300987] Re: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23
I confirm this bug. Both update and updatedb commands have frozen my computer (due to full RAM), and the second command was actually killed by the out-of-memory killer (/usr/lib/auto-apt/auto-apt-pkgdcb is indeed the guilty program). The workaround mentioned by the bug reporter also works for me. Actually, after applying this workaround and the workaround mentioned in Bug #1300991, auto-apt works correctly. For those who want to apply the workaround, one way to get the 0.3.22 version of the auto-apt-pkgdcb file is to download the 32 or 64 bit DEB of auto-apt of Raring from here: http://packages.ubuntu.com/raring/auto-apt Then open the DEB in the archive manager, extract the auto-apt-pkgdcb file from its usr/lib/auto-apt directory and replace the system /usr/lib/auto-apt/auto-apt-pkgdcb file with this one. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1300987 Title: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/auto-apt/+bug/1300987/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1300987] Re: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23
I've looked at the changes done to file auto-apt-pkgcdb.c in this commit: http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/auto-apt/trusty/revision/6#auto-apt-pkgcdb.c There is clearly a memory leak in the while loop that starts in line 220. The get_line() function allocates and returns a pointer to a character array (a new allocation for each invocation). Inside the loop, in line 225, that function is called (buf = get_line(stdin);), and the pointer stored is in buf. However, the related free(buf) function is only called outside of the loop. So, only the last allocation is freed. The free(buf) call must be moved to inside the while loop! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1300987 Title: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/auto-apt/+bug/1300987/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1300987] Re: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM (only 0.3.23)
** Summary changed: - /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 changed: - /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 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1300987 Title: /usr/lib/auto-apt/auto-apt-pkgdcb consumes over 100% RAM on 0.3.23 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/auto-apt/+bug/1300987/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs