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

java/nio/channels/DatagramChannel/MulticastSendReceiveTest with SocketException cannot allocate memory

XMLWordPrintable

      ----------messages:(6/228)----------
      command: main MulticastSendReceiveTests
      reason: User specified action: run main MulticastSendReceiveTests
      started: Wed Jan 04 13:24:28 ICT 2023
      Mode: othervm
      finished: Wed Jan 04 13:24:34 ICT 2023
      elapsed time (seconds): 5.194
      ----------configuration:(0/0)----------
      ----------System.out:(25/820)----------

      Test DatagramChannel to UNSPEC socket
      join 225.4.5.6 @ en0
      Send message from 10.0.0.80 -> group 225.4.5.6 (id=0x110b455a)
      Waiting to receive message
      Received message from /10.0.0.80 (id=0x110b455a)
      Message expected
      block 10.0.0.80
      Exclude-mode filtering not supported!
      join 225.4.5.6 @ en0 only-source 1.2.3.4
      Include-mode filtering not supported!

      Test DatagramChannel to INET socket
      join 225.4.5.6 @ en0
      Send message from 10.0.0.80 -> group 225.4.5.6 (id=0x846c83fd)
      Waiting to receive message
      Received message from /10.0.0.80 (id=0x846c83fd)
      Message expected
      block 10.0.0.80
      Exclude-mode filtering not supported!
      join 225.4.5.6 @ en0 only-source 1.2.3.4
      Send message from 10.0.0.80 -> group 225.4.5.6 (id=0x70d555b)
      Waiting to receive message
      No message received (correct)
      join 225.4.5.6 @ en0 only-source 10.0.0.80
      ----------System.err:(16/984)----------
      java.net.SocketException: Cannot allocate memory
      at java.base/sun.nio.ch.Net.joinOrDrop4(Native Method)
      at java.base/sun.nio.ch.Net.join4(Net.java:699)
      at java.base/sun.nio.ch.DatagramChannelImpl.innerJoin(DatagramChannelImpl.java:1606)
      at java.base/sun.nio.ch.DatagramChannelImpl.join(DatagramChannelImpl.java:1634)
      at MulticastSendReceiveTests.test(MulticastSendReceiveTests.java:230)
      at MulticastSendReceiveTests.main(MulticastSendReceiveTests.java:267)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
      at java.base/java.lang.Thread.run(Thread.java:1623)

      JavaTest Message: Test threw exception: java.net.SocketException: Cannot allocate memory
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.net.SocketException: Cannot allocate memory

            msheppar Mark Sheppard
            msheppar Mark Sheppard
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: