FS#42793 - [lsof] lsof lists all pipes

Attached to Project: Arch Linux
Opened by hamelg (hamelg) - Friday, 14 November 2014, 22:08 GMT
Last edited by Anatol Pomozov (anatolik) - Wednesday, 19 November 2014, 14:52 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Tom Gundersen (tomegun)
Anatol Pomozov (anatolik)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
since v4.88, when a specific file is selected, lsof lists all open FIFO.

Additional info:
* package version(s) : lsof 4.88-1


Steps to reproduce:

lsof /tmp

Actual Results: lsof lists ALL FIFOs !!??
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
thunderbi 356 hamelg 0r FIFO 0,8 0t0 224424 pipe
thunderbi 356 hamelg 8r FIFO 0,8 0t0 1292802 pipe
thunderbi 356 hamelg 9w FIFO 0,8 0t0 1292802 pipe
thunderbi 356 hamelg 17r FIFO 0,8 0t0 1292808 pipe
thunderbi 356 hamelg 18w FIFO 0,8 0t0 1292808 pipe
thunderbi 356 hamelg 19r FIFO 0,8 0t0 1293378 pipe
thunderbi 356 hamelg 20w FIFO 0,8 0t0 1293378 pipe
thunderbi 356 hamelg 21r FIFO 0,8 0t0 1292809 pipe
thunderbi 356 hamelg 22w FIFO 0,8 0t0 1292809 pipe
thunderbi 356 hamelg 24r FIFO 0,8 0t0 1293380 pipe
thunderbi 356 hamelg 25w FIFO 0,8 0t0 1293380 pipe
thunderbi 356 hamelg 59r FIFO 0,8 0t0 1293175 pipe
thunderbi 356 hamelg 60w FIFO 0,8 0t0 1293175 pipe
thunderbi 356 hamelg 68r FIFO 0,8 0t0 1293167 pipe
thunderbi 356 hamelg 70w FIFO 0,8 0t0 1293167 pipe
thunderbi 356 hamelg 85r FIFO 0,8 0t0 1293443 pipe
thunderbi 356 hamelg 86w FIFO 0,8 0t0 1293443 pipe
thunderbi 356 hamelg 101w FIFO 0,8 0t0 1293113 pipe
imap 434 hamelg 2w FIFO 0,8 0t0 17526 pipe
imap 434 hamelg 3w FIFO 0,8 0t0 17418 pipe
imap 434 hamelg 5w FIFO 0,8 0t0 17548 pipe
imap 434 hamelg 6w FIFO 0,8 0t0 17539 pipe
imap 434 hamelg 9r FIFO 0,8 0t0 1293429 pipe
imap 434 hamelg 10w FIFO 0,8 0t0 1293429 pipe
....

Expected Results : lsof lists only open files in /tmp
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
kwin 11863 hamelg DEL REG 0,30 224584 /tmp/glTAmr2u
java 12012 hamelg mem REG 0,30 32768 224904 /tmp/hsperfdata_hamelg/12012
pulseaudi 12024 hamelg DEL REG 0,30 226394 /tmp/orcexec.oVKaLu

The Added +|-E options for Linux have broken lsof.

A fix is available here :
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/patches/4.88/linux.dnode.c.patch
This task depends upon

Closed by  Anatol Pomozov (anatolik)
Wednesday, 19 November 2014, 14:52 GMT
Reason for closing:  Fixed
Additional comments about closing:  4.88-2
Comment by Anatol Pomozov (anatolik) - Saturday, 15 November 2014, 06:05 GMT
Is this fix blessed by upstream? I can't find any information where this patch comes from.
Comment by hamelg (hamelg) - Saturday, 15 November 2014, 07:30 GMT
Yes !
see the file 00README in the tar file ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_4.88.tar.gz

Bug Reports
===========
...
Before you send me a bug report, please do these things:
...
+ While connected to lsof.itap.purdue.edu, check for patches:

ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/patches

+ If patches exist, install them in the latest revision
you just downloaded. Then build the latest revision and
see if it fixes your bug.
...
Comment by Anatol Pomozov (anatolik) - Wednesday, 19 November 2014, 14:52 GMT
This way to distribute patch releases is extremely confusing and error prone. I wish these guys learned about version control systems.

Anyway, the patch applied and released as 4.88-2. Please check it.

Loading...