[Bug 1241378] [NEW] File descriptor leaked on pvscan invocation

latimerio 1241378 at bugs.launchpad.net
Fri Oct 18 07:12:33 UTC 2013


Public bug reported:

I am running Ubuntu 12.04.3 LTS on my server an I have a ksh script which gathers system information.  
It is invoked by cron.daily.  
Recently I added the following lines:

      pvscan | grep "^ *PV " \
             | perl -ne 's/[\n\r]*$// ; s/[\[\]]//g ;
                         @Line=split() ;
                         printf( "%2s %-10s %2s %-8s %4s %6.2f %3s %s %6.2f %4s\n", @Line ) ;
                              '

Since then I get the error message below from cron.daily:  
  File descriptor 3 (/) leaked on pvscan invocation. Parent PID xxxx: /usr/bin/ksh

I do not get the message if I run the script manually from a shell or
from a regular cron.

I tried to set LVM_SUPPRESS_FD_WARNINGS=1 as described in debian bugs
432986, 466138 and 534220 but nothing changed.

It seems that nobody really addressed this rather old LVM issue.

** Affects: lvm2 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: leak lvm pvscan

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to lvm2 in Ubuntu.
https://bugs.launchpad.net/bugs/1241378

Title:
  File descriptor leaked on pvscan invocation

Status in “lvm2” package in Ubuntu:
  New

Bug description:
  I am running Ubuntu 12.04.3 LTS on my server an I have a ksh script which gathers system information.  
  It is invoked by cron.daily.  
  Recently I added the following lines:

        pvscan | grep "^ *PV " \
               | perl -ne 's/[\n\r]*$// ; s/[\[\]]//g ;
                           @Line=split() ;
                           printf( "%2s %-10s %2s %-8s %4s %6.2f %3s %s %6.2f %4s\n", @Line ) ;
                                '

  Since then I get the error message below from cron.daily:  
    File descriptor 3 (/) leaked on pvscan invocation. Parent PID xxxx: /usr/bin/ksh

  I do not get the message if I run the script manually from a shell or
  from a regular cron.

  I tried to set LVM_SUPPRESS_FD_WARNINGS=1 as described in debian bugs
  432986, 466138 and 534220 but nothing changed.

  It seems that nobody really addressed this rather old LVM issue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/1241378/+subscriptions



More information about the foundations-bugs mailing list