-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
find breaks due to "EDC5113I Bad file descriptor" #4
Comments
fwiw, confirmed :) |
added a __ctrace("") call in the 'error' code. This generates a CEEDUMP containing:
so at least we know where the error is coming from |
rebuilding with -Wc,gonum to get line numbers in the traceback:
|
running with the -D search option:
|
zeroing in, fts_build is calling |
Doing a 'stat' on file descriptor 4 shows it is invalid (so the error is earlier) |
Investigating, but two things that look to be true...
|
Changing configure to not look for dd_fd, I am still seeing the same problem that fcntl is trying to use a file descriptor that fstat doesn't like. |
What appears to be the issue is that opendirat() calls fdopendir with the newfd. The code is a bit confusing because it's a mix of functions provided by LE and functions provided by gnulib included functions. Also, flags are being passed down to openat, then passed into open (which is the z/OS open, not the provided open from find), which itself is presumably coming from zoslib. The flags being passed down aren't valid on z/OS but seem to be being ignored ok (e.g. O_DIRECTORY, O_CLOEXEC) After all this, I'm thinking it might be easier to put back the search for dd_fd |
It would be interesting to see how this works on a z/OS 2.5 system that apparently has fdopendir() |
Is this still an issue? |
This should be resolved, please close if ok |
The output is:
The text was updated successfully, but these errors were encountered: