error running lsof

I'm running OS X 10.4.6 on a 17" iMac core duo machine. Whenever I run lsof in the terminal I get this error:
lsof: can't get vnode information (No such file or directory)

Anyone know what might be causing this?

17" iMac core duo, Mac OS X (10.4.6)

Posted on Apr 30, 2006 10:51 AM

Reply
13 replies

Apr 30, 2006 12:01 PM in response to Epyon9283

I suggest that you verify the permission of the files on the system.
one of them probably isn't set correctly, and is too restrictive.
Try using Disk Utility, select the filesystem. and then choose
"Verify Disk Permissions"


you could run the following 2 command and after
looking over a lot of information you should be able
to identify which one it's complaining about. My guess
is /dev/null (should be 666).
sudo ktrace lsof
sudo kdump -f ktrace.out | more

Andy

Apr 30, 2006 12:26 PM in response to Nils C. Anderson

Tried repairing permissions. Didn't have any effect. permissions on /dev/null look fine.

Having never used ktrace or kdump I'm really not sure what I'm looking for here. I saw where the error occurs but I can't see which file it is trying to find.

3945 lsof RET #336 1152/0x480
3945 lsof CALL #336(0x3,0xbd,0x2,0xb,0xbfffe710,0x480)
3945 lsof RET #336 1152/0x480
3945 lsof CALL #336(0x3,0xbd,0x2,0xc,0xbfffe710,0x480)
3945 lsof RET #336 1152/0x480
3945 lsof CALL #336(0x3,0xbd,0x2,0xd,0xbfffe710,0x480)
3945 lsof RET #336 1152/0x480
3945 lsof CALL #336(0x3,0xbd,0x2,0xe,0xbfffe710,0x480)
3945 lsof RET #336 1152/0x480
3945 lsof CALL #336(0x3,0xbd,0x2,0xf,0xbfffe710,0x480)
3945 lsof RET #336 1152/0x480
3945 lsof CALL #336(0x3,0xbd,0x2,0x10,0xbfffe710,0x480)
3945 lsof RET #336 1152/0x480
3945 lsof CALL #336(0x3,0xbd,0x2,0x11,0xbfffe710,0x480)
3945 lsof RET #336 1152/0x480
3945 lsof CALL #336(0x3,0xbd,0x2,0x12,0xbfffe710,0x480)
3945 lsof RET #336 1152/0x480
3945 lsof CALL #336(0x3,0xbd,0x2,0x13,0xbfffe710,0x480)
3945 lsof RET #336 -1 errno 2 No such file or directory
3945 lsof CALL write(0x2,0xbfffe060,0x3e)
3945 lsof GIO fd 2 wrote 62 bytes
"lsof: can't get vnode information (No such file or directory)

There are a ton of those RET and CALL lines above the error.

Jun 12, 2006 12:23 PM in response to Gary Kerbaugh

I installed that update and lsof worked for a couple minutes as a regular user, not root. Now it doesn't work at all. Disk permissions have been verified with no errors several times. It would be helpful if syscall 336 would show the arguments in ktrace. It appears to be a problem with one file as it runs for a fair amount of time before terminating with the error message.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

error running lsof

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.