[Bug 1051935] Re: Fails with SystemError when too many files are open
Jason Conti
1051935 at bugs.launchpad.net
Fri Oct 5 03:30:31 UTC 2012
Thanks Barry, I added both of those to python-apt at:
lp:~jconti/python-apt/closeable-cache
with fixes for both gdebi and oneconf:
lp:~jconti/gdebi/closeable-cache
lp:~jconti/oneconf/closeable-cache
Stuck with del self._records to clean up the file descriptors since I
took a look at the apt code for PackageRecords and it follows the usual
C++ idiom of closing files on destruct.
While debugging the gdebi code I found another way to reproduce this
specific bug, just continue Refreshing (ctrl+r) until the eventual
SystemError, though I'm not sure how one would run into it in normal
circumstances.
Doesn't help with the memory issues listed in bug #894314 but maybe
oneconf can do some explicit garbage collection to keep memory
reasonable.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-apt in Ubuntu.
https://bugs.launchpad.net/bugs/1051935
Title:
Fails with SystemError when too many files are open
Status in “python-apt” package in Ubuntu:
New
Bug description:
This error occurs each time I try to install a .deb file with Gdebi in
Ubuntu 12.10, after the deb installation finishes.
ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: gdebi 0.8.5build1
ProcVersionSignature: Ubuntu 3.5.0-14.19-generic 3.5.3
Uname: Linux 3.5.0-14-generic x86_64
ApportVersion: 2.5.1-0ubuntu7
Architecture: amd64
CrashCounter: 1
Date: Mon Sep 17 15:33:34 2012
ExecutablePath: /usr/share/gdebi/gdebi-gtk
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64 (20120914)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/gdebi-gtk --non-interactive /home/andrei/Downloads/gnomishdark-theme_201208014-1~webupd8_all.deb
ProcEnviron:
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
TERM=unknown
PythonArgs: ['/usr/bin/gdebi-gtk', '--non-interactive', '/home/andrei/Downloads/gnomishdark-theme_201208014-1~webupd8_all.deb']
SourcePackage: gdebi
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/1051935/+subscriptions
More information about the foundations-bugs
mailing list