files might be closed by multiple threads (unix)

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: 11
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: