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

(ch) NativeSignal.signal fails with error 316 on OS X

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u20
    • Fix Version/s: 9
    • Component/s: core-libs
    • Environment:

      OS X 10.9.3
      Java(TM) SE Runtime Environment (build 1.8.0_20-ea-b21)
      Java HotSpot(TM) 64-Bit Server VM (build 25.20-b20, mixed mode)

    • Subcomponent:
    • Resolved In Build:
      b101
    • CPU:
      x86

      Backports

        Description

        After this fix for JDK-7133499 the attached test case no longer works on OS X with Java 1.8.0_20-ea-b21. It fails with the following exception:

        java.io.IOException: Unknown error: 316
        at sun.nio.ch.NativeThread.signal(Native Method)
        at sun.nio.ch.DatagramChannelImpl.implCloseSelectableChannel(DatagramChannelImpl.java:1012)
        at java.nio.channels.spi.AbstractSelectableChannel.implCloseChannel(AbstractSelectableChannel.java:234)
        at java.nio.channels.spi.AbstractInterruptibleChannel.close(AbstractInterruptibleChannel.java:115)
        at UDPListenerTest$ListenerThread.terminate(UDPListenerTest.java:70)
        at UDPListenerTest.shutdown(UDPListenerTest.java:30)
        at UDPListenerTest.main(UDPListenerTest.java:45)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bpb Brian Burkhalter
                  Reporter:
                  leonidr Leonid Romanov (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: