- 
    Bug 
- 
    Resolution: Fixed
- 
     P4 P4
- 
    7
- 
        b28
- 
        x86
- 
        linux
- 
        Not verified
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build | 
|---|---|---|---|---|---|---|
| JDK-8018872 | 7u45 | Charles Lee | P4 | Closed | Fixed | b01 | 
| JDK-2226636 | 7u40 | Edvard Wendelin | P4 | Closed | Fixed | b01 | 
                    FULL PRODUCT VERSION :
ADDITIONAL OS VERSION INFORMATION :
AIX HY-AIX64 1 7 000562E4D700
A DESCRIPTION OF THE PROBLEM :
From the man page said:
F_SETLK :
...... If a conflicting lock is held by another process, this call returns -1 and sets errno to EACCES or EAGAIN.
So EACCESS should be also checked for the sake the system is not return EAGAIN.
The native code is in the file "src/solaris/native/sun/nio/ch/FileDispatcherImpl.c" and fix is very straight-forward.
REPRODUCIBILITY :
This bug can be reproduced always.
            
ADDITIONAL OS VERSION INFORMATION :
AIX HY-AIX64 1 7 000562E4D700
A DESCRIPTION OF THE PROBLEM :
From the man page said:
F_SETLK :
...... If a conflicting lock is held by another process, this call returns -1 and sets errno to EACCES or EAGAIN.
So EACCESS should be also checked for the sake the system is not return EAGAIN.
The native code is in the file "src/solaris/native/sun/nio/ch/FileDispatcherImpl.c" and fix is very straight-forward.
REPRODUCIBILITY :
This bug can be reproduced always.
- backported by
- 
                    JDK-2226636 (fc) Add EACCES check to the return of fcntl native method -           
- Closed
 
-         
- 
                    JDK-8018872 (fc) Add EACCES check to the return of fcntl native method -           
- Closed
 
-