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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 8
    • 6u26
    • core-libs
    • b08
    • generic
    • generic
    • 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

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

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: