Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Whenever I use find, the following error is always outputted:
Code:
find: /proc/xxxx/task: No such file or directory
find: /proc/xxxx/fd: No such file or directory
where xxxx is a process id. Sometimes it lists more than two, for example
Code:
find: /proc/xxxx/task: No such file or directory
find: /proc/xxxx/fd: No such file or directory
find: /proc/xxxx/task: No such file or directory
find: /proc/xxxx/fd: No such file or directory
find: /proc/xxxx/task: No such file or directory
find: /proc/xxxx/fd: No such file or directory
and sometimes it just shows two. If I try to cd into the directory, I get
Code:
cd /proc/xxxx/task
bash: cd: /proc/xxxx/task: No such file or directory
Does /proc/xxxx itself exist? It may be this is the process for the find itself so of course when you go to ls after the fact it is no longer there.
Yes, it does exist.
Quote:
Exactly what are flags/arguments are you giving to find?
Here's an example:
Code:
[root@dedicated ~]# find / -name "account_info"
/root/account_info
find: /proc/16374/task: No such file or directory
find: /proc/16374/fd: No such file or directory
[root@dedicated ~]#
As you can see, /proc/16374 does exist:
Code:
[root@dedicated ~]# ls /proc/16374/
ls: cannot read symbolic link /proc/16374/cwd: No such file or directory
ls: cannot read symbolic link /proc/16374/root: No such file or directory
ls: cannot read symbolic link /proc/16374/exe: No such file or directory
attr cmdline cwd exe loginuid mem mountstats oom_score schedstat stat status wchan
auxv cpuset environ fd maps mounts oom_adj root smaps statm task
[root@dedicated ~]# ls /proc/16374/fd
ls: /proc/16374/fd: No such file or directory
[root@dedicated ~]#
If I do another find, I get the exact same error, same process id and everything:
Code:
[root@dedicated ~]# find / -name "tsm_conf"
/root/tsm_conf
find: /proc/16374/task: No such file or directory
find: /proc/16374/fd: No such file or directory
[root@dedicated ~]#
I was able to get something similar:
find / -fstype ext3 >/dev/null
find: /proc/2307/task/2307/fd/4: No such file or directory
find: /proc/2307/fd/4: No such file or directory
However I opened a second window when I started the find and did "ps -ef |grep find" which returned:
root 2307 2101 10 14:20 pts/4 00:00:02 find / -fstype ext3
root 2313 2278 0 14:20 pts/5 00:00:00 grep find
Meaning find was complaining about its own PID (2307). This makes some sense as its state would be changing at the moment it tried to read it.
It is for such system specialized filesystems (/proc, /sys) that I exclude them from things like backups because this kind of error is quite common since they really aren't disk partition filesystems but rather memory structures Linux is showing as if they were filesystems.
defunct is the same as a zombie process. Defunct/zombie processes are essentially "dead" so can't be killed. They are usually waiting for a signal from their parent process ID. On SOME occasions you can get rid of them by getting rid of the parent. The PPID is 2075 so you can check to see what has PID 2075 for a clue as to what this a child of. You may be able kill 2075 and see the child go away.
(Killing the parent will either make it go away or change its PPID to 1 which is init. If it goes to 1 the only way it would go away is at your next reboot.)
It isn't unusual to see a few defunct processes and they aren't really a problem in and of themselves. If however you saw dozens of such processes (especially if they all had the same PPID other than 1) it might indicate you have something attempting to spawn children that can't run properly.
The fact that you see "perl" in the process suggests some Perl script is the parent.
ps -ef |grep 2075
Last edited by MensaWater; 04-15-2007 at 07:37 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.