-
Bug
-
Resolution: Fixed
-
P4
-
7u67
-
b29
-
x86
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8084970 | emb-9 | Ivan Gerasimov | P4 | Resolved | Fixed | team |
JDK-8063812 | 8u45 | Ivan Gerasimov | P4 | Resolved | Fixed | b01 |
JDK-8056097 | 8u40 | Ivan Gerasimov | P4 | Resolved | Fixed | b04 |
JDK-8070083 | emb-8u47 | Ivan Gerasimov | P4 | Resolved | Fixed | team |
JDK-8072259 | 7u85 | Ivan Gerasimov | P4 | Resolved | Fixed | b01 |
JDK-8056125 | 7u80 | Ivan Gerasimov | P4 | Resolved | Fixed | b03 |
A DESCRIPTION OF THE PROBLEM :
Invoking sun.nio.fs.UnixDirectoryStream.closeImpl in certain situation yields "java.io.IOException: Unknown error 18446744073709551615".
This stems from the error in native function Java_sun_nio_fs_UnixNativeDispatcher_closedir:
RESTARTABLE(closedir(dirp), err);
if (errno == -1) {
throwUnixException(env, errno);
}
should be rewritten as
RESTARTABLE(closedir(dirp), err);
if (err == -1) {
throwUnixException(env, errno);
}
with err instead of errno.
REPRODUCIBILITY :
This bug can be reproduced always.
- backported by
-
JDK-8056097 (fs) bad error handling in java.base/unix/native/libnio/fs/UnixNativeDispatcher.c
-
- Resolved
-
-
JDK-8056125 (fs) bad error handling in java.base/unix/native/libnio/fs/UnixNativeDispatcher.c
-
- Resolved
-
-
JDK-8063812 (fs) bad error handling in java.base/unix/native/libnio/fs/UnixNativeDispatcher.c
-
- Resolved
-
-
JDK-8070083 (fs) bad error handling in java.base/unix/native/libnio/fs/UnixNativeDispatcher.c
-
- Resolved
-
-
JDK-8072259 (fs) bad error handling in java.base/unix/native/libnio/fs/UnixNativeDispatcher.c
-
- Resolved
-
-
JDK-8084970 (fs) bad error handling in java.base/unix/native/libnio/fs/UnixNativeDispatcher.c
-
- Resolved
-