[Bug 742017] Re: "readline() on closed filehandle FILES" warnings caused by multiarch
dino99
742017 at bugs.launchpad.net
Sat May 18 17:14:34 UTC 2013
** Changed in: popularity-contest (Ubuntu Natty)
Status: Triaged => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to popularity-contest in Ubuntu.
https://bugs.launchpad.net/bugs/742017
Title:
"readline() on closed filehandle FILES" warnings caused by multiarch
Status in “popularity-contest” package in Ubuntu:
Fix Released
Status in “popularity-contest” source package in Natty:
Invalid
Status in “popularity-contest” package in Debian:
Fix Released
Bug description:
Binary package hint: popularity-contest
/etc/cron.weekly/popularity-contest in natty now shows:
readline() on closed filehandle FILES at /usr/sbin/popularity-contest line 104.
readline() on closed filehandle FILES at /usr/sbin/popularity-contest line 104.
readline() on closed filehandle FILES at /usr/sbin/popularity-contest line 104.
...
looking at the sources:
open PACKAGES, "dpkg-query --show --showformat='\${status} \${package}\\n'|";
while (<PACKAGES>)
{
/^.*installed *(.+)$/ or next;
my $pkg=$1;
$popcon{$pkg}=[0,0,$pkg,"<NOFILES>"];
open FILES, "$dpkg_db/$pkg.list";
my $bestatime = undef;
while (<FILES>) { <==================== 104
a simple printf shows why:
$ ls -l /var/lib/dpkg/info/zlib1g.list
ls: cannot access /var/lib/dpkg/info/zlib1g.list: No such file or directory
$ ls -l /var/lib/dpkg/info/zlib1g*.list
-rw-r--r-- 1 root root 227 2011-03-22 08:10 /var/lib/dpkg/info/zlib1g:amd64.list
-rw-r--r-- 1 root root 1267 2011-03-22 08:10 /var/lib/dpkg/info/zlib1g-dev.list
so it seems it's caused by the new multi-arch thingy.
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: popularity-contest 1.51ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-7.37-generic 2.6.38
Uname: Linux 2.6.38-7-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Thu Mar 24 20:57:57 2011
ProcEnviron:
LANG=en_US.UTF-8
LANGUAGE=en_US:en
PATH=(custom, user)
SHELL=/usr/bin/tcsh
SourcePackage: popularity-contest
UpgradeStatus: Upgraded to natty on 2009-07-28 (604 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/popularity-contest/+bug/742017/+subscriptions
More information about the foundations-bugs
mailing list