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

[macos-aarch64] java/net/MulticastSocket/Promiscuous.java failed with "SocketException: Cannot allocate memory"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 11, 17
    • Fix Version/s: 17
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b28
    • CPU:
      aarch64
    • OS:
      os_x

      Backports

        Description

        The following test failed in the JDK17 on macos-aarch64:

        java/net/MulticastSocket/Promiscuous.java

        Here's a snippet from the log file:

        #section:main
        ----------messages:(4/226)----------
        command: main -Djdk.net.usePlainDatagramSocketImpl Promiscuous
        reason: User specified action: run main/othervm -Djdk.net.usePlainDatagramSocketImpl Promiscuous
        Mode: othervm [/othervm specified]
        elapsed time (seconds): 0.097
        ----------configuration:(0/0)----------
        ----------System.out:(1/18)----------
        Using port: 65030
        ----------System.err:(36/2652)----------
        java.io.UncheckedIOException: java.net.SocketException: Cannot allocate memory
        at Promiscuous.lambda$test$0(Promiscuous.java:132)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
        at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
        at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
        at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
        at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
        at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
        at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
        at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
        at Promiscuous.test(Promiscuous.java:123)
        at Promiscuous.main(Promiscuous.java:195)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:831)
        Caused by: java.net.SocketException: Cannot allocate memory
        at java.base/java.net.PlainDatagramSocketImpl.join(Native Method)
        at java.base/java.net.AbstractPlainDatagramSocketImpl.joinGroup(AbstractPlainDatagramSocketImpl.java:240)
        at java.base/java.net.NetMulticastSocket.joinGroup(NetMulticastSocket.java:818)
        at java.base/java.net.DatagramSocket.joinGroup(DatagramSocket.java:1291)
        at java.base/java.net.MulticastSocket.joinGroup(MulticastSocket.java:371)
        at Promiscuous.lambda$test$0(Promiscuous.java:125)
        ... 21 more

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

        STATUS:Failed.`main' threw exception: java.io.UncheckedIOException: java.net.SocketException: Cannot allocate memory
        ----------rerun:(37/7541)*----------

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                msheppar Mark Sheppard
                Reporter:
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: