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

FileInputStream/FileOutputStream/RandomAccessFile allow file descriptor be closed when still in use

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 6u26
    • Fix Version/s: 8
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b08
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        SHORT SUMMARY: preClose0 fails with Bad file descriptor error when more than
        one stream holds reference to a native FileDescriptor on solaris/linux

        INDICATORS:

        Testcase link in BugDB report

        COUNTER INDICATORS:
        TRIGGERS:

        Manual closing of output streams which contain reference to the same file
        descriptor. Solaris/Linux only.

        KNOWN WORKAROUND:

        PRESENT SINCE:

        1.4.2 +
        HOW TO VERIFY:

        Simple testcase.

        NOTES FOR SE:

        See Sun CR 6322678 for most recent changes in this area.

        REGRESSION: No.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  coffeys Sean Coffey
                  Reporter:
                  shadowbug Shadow Bug
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: