[Bug 819231] [NEW] I get errors in the mail when a file open fails

Simon Oosthoek s.oosthoek at xs4all.nl
Mon Aug 1 11:04:02 UTC 2011


Public bug reported:

I get loads of error lines like this:
readline() on closed filehandle FILES at /usr/sbin/popularity-contest line 104.

Turns out that in this perl script, the open command (line 102) is used
untested (not if (open FILES.....), but just open FILES ....)

the offending lines are just before 104:
100   my $pkg=$1;
101   $popcon{$pkg}=[0,0,$pkg,"<NOFILES>"];
102   open FILES, "$dpkg_db/$pkg.list";
103   my $bestatime = undef;
104   while (<FILES>)
105   {

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: popularity-contest 1.51ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-10.46-generic 2.6.38.7
Uname: Linux 2.6.38-10-generic x86_64
Architecture: amd64
Date: Mon Aug  1 12:43:15 2011
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 LC_MESSAGES=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: popularity-contest
UpgradeStatus: Upgraded to natty on 2011-07-15 (17 days ago)

** Affects: popularity-contest (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug natty

-- 
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/819231

Title:
  I get errors in the mail when a file open fails

Status in “popularity-contest” package in Ubuntu:
  New

Bug description:
  I get loads of error lines like this:
  readline() on closed filehandle FILES at /usr/sbin/popularity-contest line 104.

  Turns out that in this perl script, the open command (line 102) is
  used untested (not if (open FILES.....), but just open FILES ....)

  the offending lines are just before 104:
  100   my $pkg=$1;
  101   $popcon{$pkg}=[0,0,$pkg,"<NOFILES>"];
  102   open FILES, "$dpkg_db/$pkg.list";
  103   my $bestatime = undef;
  104   while (<FILES>)
  105   {

  ProblemType: Bug
  DistroRelease: Ubuntu 11.04
  Package: popularity-contest 1.51ubuntu1
  ProcVersionSignature: Ubuntu 2.6.38-10.46-generic 2.6.38.7
  Uname: Linux 2.6.38-10-generic x86_64
  Architecture: amd64
  Date: Mon Aug  1 12:43:15 2011
  PackageArchitecture: all
  ProcEnviron:
   LANGUAGE=en_GB:en
   PATH=(custom, no user)
   LANG=en_GB.UTF-8
   LC_MESSAGES=en_GB.UTF-8
   SHELL=/bin/bash
  SourcePackage: popularity-contest
  UpgradeStatus: Upgraded to natty on 2011-07-15 (17 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/popularity-contest/+bug/819231/+subscriptions




More information about the foundations-bugs mailing list