Bug 125346 - lsof doesn't show deleted maps correctly under kernel-2.6.5-1.358 and kernel-2.6.6-1.427
lsof doesn't show deleted maps correctly under kernel-2.6.5-1.358 and kernel-...
Status: CLOSED WORKSFORME
Product: Fedora
Classification: Fedora
Component: kernel (Show other bugs)
2
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Dave Jones
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-06-04 18:18 EDT by Jordan Russell
Modified: 2015-01-04 17:06 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-12-08 12:31:14 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Results of lsof on each kernel (2.81 KB, text/plain)
2004-06-04 18:22 EDT, Jordan Russell
no flags Details

  None (edit)
Description Jordan Russell 2004-06-04 18:18:58 EDT
Description of problem:
When you run "lsof" on kernel-2.6.5-1.358 after upgrading an RPM
containing shared libraries that were in use, it doesn't show the
libraries that were replaced as unlinked mapped files ("DEL"); instead
it displays them as regular files ("REG"). This problem does not exist
when lsof is run on a stock 2.6.6 kernel.

Version-Release number of selected component (if applicable):
lsof-4.68-2

How reproducible:
Always

Steps to Reproduce:
1. See who's using libk5crypto.so.3.0.

# lsof | fgrep /usr/lib/libk5crypto.so.3.0

2. Upgrade the krb5-* packages to a new version.

# rpm -Fvh krb5-{libs,devel}-1.3.3-7.i386.rpm

3. Immediately after upgrading the shared libraries, again see who's
using libk5crypto.so.3.0.

# lsof | fgrep /usr/lib/libk5crypto.so.3.0

Actual Results:  
With kernel-2.6.5-1.358, the second lsof prints "REG" in the type
column. This is wrong since the file was unlinked/replaced, and the
daemons using the file were never restarted.

Expected Results:
With a stock 2.6.6 kernel, the second lsof prints "DEL" in the type
column, indicating an unlinked mapped file. This is correct.
Comment 1 Jordan Russell 2004-06-04 18:22:29 EDT
Created attachment 100881 [details]
Results of lsof on each kernel
Comment 2 Jordan Russell 2004-06-11 15:46:14 EDT
Update:

The problem also exists on kernel-2.6.6-1.427 and stock 2.6.7-rc3.

Again, stock 2.6.6 works fine.
Comment 3 Dave Jones 2004-11-27 15:22:00 EST
mass update for old bugs:

Is this still a problem with the 2.6.9 based update kernel ?
Comment 4 Dave Jones 2004-11-27 15:22:09 EST
mass update for old bugs:

Is this still a problem with the 2.6.9 based update kernel ?
Comment 5 Jordan Russell 2004-12-08 12:31:14 EST
I can no longer reproduce the problem with 2.6.9 on FC 3. Appears
either the kernel or the FC upgrade fixed this.

Note You need to log in before you can comment on or make changes to this bug.