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

vmTestbase/nsk/jdi/stress/serial/mixed002/ fails with OOME, timeout, and broken pipe

XMLWordPrintable

    • aarch64
    • linux

      Test is failing after a combination of OOME, timeout, and broken IO Pipe. The OOME seems unique to this failure. I don't see it in passing test runs.

      flags: -Duse.JTREG_TEST_THREAD_FACTORY=Virtual -XX:+UseZGC -XX:-VerifyContinuations -XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler

      ...
      [9:41:42.972] debugee.stderr> [9:41:42.972] Debuggee: received the command: forceGC
      [9:41:43.317] debugee.stderr> [9:41:43.316] Debuggee nsk.share.jdi.HeapwalkingDebuggee : sending the command: ready
      [9:41:43.317] debugee.stderr> java.lang.OutOfMemoryError: Java heap space
      Timeout signalled after 480 seconds
      java.net.SocketException: Connection reset
      at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:317)
      at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:345)
      at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:790)
      at java.base/java.net.Socket$SocketInputStream.implRead(Socket.java:991)
      at java.base/java.net.Socket$SocketInputStream.read(Socket.java:978)
      at java.base/java.net.Socket$SocketInputStream.read(Socket.java:972)
      at java.base/java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2773)
      at java.base/java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:3102)
      at java.base/java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:3112)
      at java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1604)
      at java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:495)
      at java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:453)
      at nsk.share.jpda.SocketConnection.doReadObject(SocketConnection.java:583)
      at nsk.share.jpda.SocketConnection.readObject(SocketConnection.java:518)
      at nsk.share.jpda.SocketIOPipe.readln(SocketIOPipe.java:191)
      at nsk.share.jdi.TestDebuggerType2.isDebuggeeReady(TestDebuggerType2.java:238)
      at nsk.share.jdi.HeapwalkingDebugger.checkDebugeeAnswer_instanceCounts(HeapwalkingDebugger.java:174)
      at nsk.jdi.ReferenceType.instances.instances003.instances003.testClass(instances003.java:192)
      at nsk.jdi.ReferenceType.instances.instances003.instances003.doTest(instances003.java:198)
      at nsk.share.jdi.SerialExecutionDebugger.executeTests(SerialExecutionDebugger.java:297)
      at nsk.share.jdi.SerialExecutionDebugger.doTest(SerialExecutionDebugger.java:236)
      at nsk.share.jdi.TestDebuggerType2.runIt(TestDebuggerType2.java:214)
      at nsk.share.jdi.SerialExecutionDebugger.main(SerialExecutionDebugger.java:65)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.VirtualThread.run(VirtualThread.java:466)
      [9:51:27.193] # ERROR: Unexpected exception during test execution(debugger: nsk.jdi.ReferenceType.instances.instances003.instances003@7b89a5f3): nsk.share.Failure: Caught Exception while reading an object from PipeIO Listener Thread connection:
      [9:51:27.193] # ERROR: java.net.SocketException: Connection reset
      nsk.share.Failure: Caught Exception while reading an object from PipeIO Listener Thread connection:
      java.net.SocketException: Connection reset
      at nsk.share.jpda.SocketConnection.readObject(SocketConnection.java:525)
      at nsk.share.jpda.SocketIOPipe.readln(SocketIOPipe.java:191)
      at nsk.share.jdi.TestDebuggerType2.isDebuggeeReady(TestDebuggerType2.java:238)
      at nsk.share.jdi.HeapwalkingDebugger.checkDebugeeAnswer_instanceCounts(HeapwalkingDebugger.java:174)
      at nsk.jdi.ReferenceType.instances.instances003.instances003.testClass(instances003.java:192)
      at nsk.jdi.ReferenceType.instances.instances003.instances003.doTest(instances003.java:198)
      at nsk.share.jdi.SerialExecutionDebugger.executeTests(SerialExecutionDebugger.java:297)
      at nsk.share.jdi.SerialExecutionDebugger.doTest(SerialExecutionDebugger.java:236)
      at nsk.share.jdi.TestDebuggerType2.runIt(TestDebuggerType2.java:214)
      at nsk.share.jdi.SerialExecutionDebugger.main(SerialExecutionDebugger.java:65)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.VirtualThread.run(VirtualThread.java:466)
      java.net.SocketException: Broken pipe
      at java.base/sun.nio.ch.SocketDispatcher.write0(Native Method)
      at java.base/sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:62)
      at java.base/sun.nio.ch.NioSocketImpl.tryWrite(NioSocketImpl.java:393)
      at java.base/sun.nio.ch.NioSocketImpl.implWrite(NioSocketImpl.java:409)
      at java.base/sun.nio.ch.NioSocketImpl.write(NioSocketImpl.java:439)
      at java.base/sun.nio.ch.NioSocketImpl$2.write(NioSocketImpl.java:813)
      at java.base/java.net.Socket$SocketOutputStream.implWrite(Socket.java:1106)
      at java.base/java.net.Socket$SocketOutputStream.write(Socket.java:1093)
      at java.base/java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1801)
      at java.base/java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1710)
      at java.base/java.io.ObjectOutputStream.writeNonProxyDesc(ObjectOutputStream.java:1214)
      at java.base/java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1168)
      at java.base/java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1345)
      at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1115)
      at java.base/java.io.ObjectOutputStream.writeFatalException(ObjectOutputStream.java:1517)
      at java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:339)
      at nsk.share.jpda.SocketConnection.doWriteObject(SocketConnection.java:570)
      at nsk.share.jpda.SocketConnection.writeObject(SocketConnection.java:538)
      at nsk.share.jpda.SocketIOPipe.println(SocketIOPipe.java:178)
      at nsk.share.jdi.SerialExecutionDebugger.executeTests(SerialExecutionDebugger.java:316)
      at nsk.share.jdi.SerialExecutionDebugger.doTest(SerialExecutionDebugger.java:236)
      at nsk.share.jdi.TestDebuggerType2.runIt(TestDebuggerType2.java:214)
      at nsk.share.jdi.SerialExecutionDebugger.main(SerialExecutionDebugger.java:65)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.VirtualThread.run(VirtualThread.java:466)
      [9:51:27.204] # ERROR: Unexpected exception: nsk.share.Failure: Caught IOException while writing an object to PipeIO Listener Thread connection:
      [9:51:27.204] # ERROR: java.net.SocketException: Broken pipe
      The following stacktrace is for failure analysis.
      nsk.share.TestFailure: Unexpected exception: nsk.share.Failure: Caught IOException while writing an object to PipeIO Listener Thread connection: java.net.SocketException: Broken pipe
      at nsk.share.Log.logExceptionForFailureAnalysis(Log.java:309)
      at nsk.share.Log.complain(Log.java:280)
      at nsk.share.jdi.TestDebuggerType2.runIt(TestDebuggerType2.java:221)
      at nsk.share.jdi.SerialExecutionDebugger.main(SerialExecutionDebugger.java:65)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.VirtualThread.run(VirtualThread.java:466)
      nsk.share.Failure: Caught IOException while writing an object to PipeIO Listener Thread connection:
      java.net.SocketException: Broken pipe
      at nsk.share.jpda.SocketConnection.writeObject(SocketConnection.java:541)
      at nsk.share.jpda.SocketIOPipe.println(SocketIOPipe.java:178)
      at nsk.share.jdi.SerialExecutionDebugger.executeTests(SerialExecutionDebugger.java:316)
      at nsk.share.jdi.SerialExecutionDebugger.doTest(SerialExecutionDebugger.java:236)
      at nsk.share.jdi.TestDebuggerType2.runIt(TestDebuggerType2.java:214)
      at nsk.share.jdi.SerialExecutionDebugger.main(SerialExecutionDebugger.java:65)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.VirtualThread.run(VirtualThread.java:466)
      java.net.SocketException: Broken pipe
      at java.base/sun.nio.ch.SocketDispatcher.write0(Native Method)
      at java.base/sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:62)
      at java.base/sun.nio.ch.NioSocketImpl.tryWrite(NioSocketImpl.java:393)
      at java.base/sun.nio.ch.NioSocketImpl.implWrite(NioSocketImpl.java:409)
      at java.base/sun.nio.ch.NioSocketImpl.write(NioSocketImpl.java:439)
      at java.base/sun.nio.ch.NioSocketImpl$2.write(NioSocketImpl.java:813)
      at java.base/java.net.Socket$SocketOutputStream.implWrite(Socket.java:1106)
      at java.base/java.net.Socket$SocketOutputStream.write(Socket.java:1093)
      at java.base/java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1801)
      at java.base/java.io.ObjectOutputStream$BlockDataOutputStream.flush(ObjectOutputStream.java:1746)
      at java.base/java.io.ObjectOutputStream.flush(ObjectOutputStream.java:686)
      at nsk.share.jpda.SocketConnection.doWriteObject(SocketConnection.java:571)
      at nsk.share.jpda.SocketConnection.writeObject(SocketConnection.java:538)
      at nsk.share.jpda.SocketIOPipe.println(SocketIOPipe.java:178)
      at nsk.share.jdi.TestDebuggerType2.quitDebuggee(TestDebuggerType2.java:195)
      at nsk.share.jdi.TestDebuggerType2.runIt(TestDebuggerType2.java:225)
      at nsk.share.jdi.SerialExecutionDebugger.main(SerialExecutionDebugger.java:65)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.VirtualThread.run(VirtualThread.java:466)
      ----------System.err:(17/1215)----------
      nsk.share.Failure: Caught IOException while writing an object to PipeIO Listener Thread connection:
      java.net.SocketException: Broken pipe
      at nsk.share.jpda.SocketConnection.writeObject(SocketConnection.java:541)
      at nsk.share.jpda.SocketIOPipe.println(SocketIOPipe.java:178)
      at nsk.share.jdi.TestDebuggerType2.quitDebuggee(TestDebuggerType2.java:195)
      at nsk.share.jdi.TestDebuggerType2.runIt(TestDebuggerType2.java:225)
      at nsk.share.jdi.SerialExecutionDebugger.main(SerialExecutionDebugger.java:65)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.VirtualThread.run(VirtualThread.java:466)

            cjplummer Chris Plummer
            cjplummer Chris Plummer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: