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

files might be closed by multiple threads (unix)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 11
    • core-libs
    • None

      io_util_md.c fileClose can close the wrong file.

      If two threads enter this function, both might try to close the same file descriptor. This is dangerous, as the OS may have already reused the file descriptor after the first close for a third thread. We see this in our JRuby tests (the double close, not the bad case with the third thread).

      Won't fix, see Thomas' comments.

            goetz Goetz Lindenmaier
            goetz Goetz Lindenmaier
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: