[Bug 742017] Re: "readline() on closed filehandle FILES" warnings caused by multiarch

Andrey Bondarenko abondarenko at users.sourceforge.net
Wed Jul 20 01:38:15 UTC 2011


Bug linkage is ok. Debbug 555790 and debbug 622322 are both related to
multiarch. As far as I know, until version 1.53 popularity-contest
accessed to dkpg data directly to get list of files belonging to a
package. After introduction of multiarch in dpkg several bugs arrised.
Now popularity-contest always uses dpkg to get package info, so all the
bugs related to direct dpkg database access becomes irrelevant and
effectively fixed.

I'll try contact debian maintainers to clarify situation.

-- 
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:
  Triaged
Status in “popularity-contest” package in Debian:
  New

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