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

Launchpad Bug Tracker 742017 at bugs.launchpad.net
Fri Jun 10 14:45:38 UTC 2011


** Branch linked: lp:~abone/ubuntu/natty/popularity-
contest/fix-742017-oneiric

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/742017

Title:
  "readline() on closed filehandle FILES" warnings caused by multiarch

Status in “popularity-contest” package in Ubuntu:
  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 Ubuntu-sponsors mailing list