Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6338434

(fc) File locks not unitary on Unix

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.0
    • core-libs
    • None
    • generic
    • solaris

      If you lock a byte range, call it L1, and then lock another partly-overlapping
      byte range, L2, and, finally, unlock L2, the kernel will release the lock on
      the subrange of L1 that was overlapped by L2, thereby allowing other programs
      to access that subrange in violation of L1.

      Reproducible on Solaris and Linux with the attached program; should not be
      reproducible on Windows.

      Implementing non-overlapping file locks would solve this problem.

            Unassigned Unassigned
            mr Mark Reinhold
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: