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

Add file descriptor id to Bad File Descriptor IOExceptions

XMLWordPrintable

      Adding the file descriptor to the text of the exception is a relatively minor enhancement which could greatly assist engineers trying to diagnose such problems.

      Here's example stack from submitter :

      Currently the application fails with no additional information provided:

      java.lang.Error: Cleaner terminated abnormally
              at sun.misc.Cleaner$1.run(Cleaner.java:130)
              at java.security.AccessController.doPrivileged(Native Method)
              at sun.misc.Cleaner.clean(Cleaner.java:127)
              at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:124)
      Caused by: java.lang.Error: java.io.IOException: Bad file descriptor
              at sun.nio.ch.Util$SelectorWrapper$Closer.run(Util.java:217)
              at sun.misc.Cleaner.clean(Cleaner.java:125)
              ... 1 more
      Caused by: java.io.IOException: Bad file descriptor
              at sun.nio.ch.EPollArrayWrapper.interrupt(Native Method)
              at sun.nio.ch.EPollArrayWrapper.interrupt(EPollArrayWrapper.java:256)
              at sun.nio.ch.EPollSelectorImpl.wakeup(EPollSelectorImpl.java:175)
              at sun.nio.ch.SelectorImpl.implCloseSelector(SelectorImpl.java:92)
              at java.nio.channels.spi.AbstractSelector.close(AbstractSelector.java:91)
              at sun.nio.ch.Util$SelectorWrapper$Closer.run(Util.java:215)
              ... 2 more

            Unassigned Unassigned
            asaha Abhijit Saha
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: