Your message dated Sat, 05 Dec 2020 15:48:26 +1100
with message-id <4140171.76SoV85XBi@simurgh>
and subject line Re: Bug#839815: python-debian: ArFile keeps a FH open for
every package that is accessed
has caused the Debian Bug report #839815,
regarding python-debian: ArFile keeps a FH open for every package that is
accessed
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
839815: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839815
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-debian
Version: 0.1.29
Severity: normal
We wrote a python system to manipulate Debian CDs and resolve dependencies
based on local caches.
We started out having our ouwn "debianPackage" class, but about 4 months ago, I
came across the python-debian code.
After reading the documentation, we downgraded our debianPackage class to be a
wrapper around the python-debian classes.
After applying this, we started getting reports of a significant slowdown; we
planned to look at it "later".
This week, when working on a new system, we started getting failures with 'too
many filehandles'.
When inspecting deeper, ArFile kept a filehandle open for every package that is
added to the (local) debian Pool that is being processed (I assume it gets the
data on request instead of caching it in the objects).
As a result, we re-implemented the relevant parts to avoid this file handle
leak (?).
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.4.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages python-debian depends on:
ii python-chardet 2.3.0-2
ii python-six 1.10.0-3
pn python:any <none>
Versions of packages python-debian recommends:
ii python-apt 1.1.0~beta5
Versions of packages python-debian suggests:
ii gpgv 2.1.15-3
-- no debconf information
This message is subject to the following terms and conditions: MAIL
DISCLAIMER<http://www.barco.com/en/maildisclaimer>
--- End Message ---
--- Begin Message ---
Hi Marc,
I've tried several times to make a loop that iterates over .deb files, opens
them, extracts information, etc, but I can't find a way to reproduce the
problem.
If you (or someone else) can provide a way of reproducing it then I'm very
happy to look at this again -- reopening this bug or filing a new one is fine.
regards
Stuart
--
Stuart Prescott http://www.nanonanonano.net/ [email protected]
Debian Developer http://www.debian.org/ [email protected]
GPG fingerprint 90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7
--- End Message ---
--
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-python-debian-maint