This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Issues with find in /proc


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Corinna Vinschen on 12/1/2009 9:13 AM:
> This one appears to be a bug in find.  It looks like it's using its own
> version of the fts(3) functions.  AFAICS, what happens is that find uses
> fstatat(fd = "/proc/$PID/fd", name="6") in the first place.  This
> returns with ENOENT since the descriptor 6 disappeared in the meantime.
> That should be fine for find, but for some reason the next what happens
> is that it calls lstat("6").  The problem here is that the current
> working directory is /proc, which does not contain a file called "6" and
> that in turn results in the assertion.
> 
> Eric, could you have a look into that, please?

I need to spend more time on findutils in general, since there is a newer
version that solves several segfaults.  But yes, I've added this to my
list of things to remember to double-check.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksV1T4ACgkQ84KuGfSFAYAZTgCfS6J/cTsXqDc1Pn5ktHFUy3xu
VZ4An1mEsNOugLLcCrQXz+L9hCQarl34
=M5Xd
-----END PGP SIGNATURE-----

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]