Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.0-M6
-
None
-
None
Description
From time to time test execution is hung up - wait forever ...
Now I can't reproduce it, test rerun fix it.
The stack is:
2022-04-06 13:59:05 Full thread dump OpenJDK 64-Bit Server VM (25.322-b00 mixed mode): "Attach Listener" #16 daemon prio=9 os_prio=31 tid=0x00007fe48036a000 nid=0x380b waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "surefire-forkedjvm-command-thread" #12 daemon prio=5 os_prio=31 tid=0x00007fe504a5c000 nid=0xa803 runnable [0x000070000db43000] java.lang.Thread.State: RUNNABLE at java.io.FileInputStream.readBytes(Native Method) at java.io.FileInputStream.read(FileInputStream.java:255) at java.io.BufferedInputStream.read1(BufferedInputStream.java:284) at java.io.BufferedInputStream.read(BufferedInputStream.java:345) - locked <0x00000005c000ccb0> (a java.io.BufferedInputStream) at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) at java.io.BufferedInputStream.read1(BufferedInputStream.java:286) at java.io.BufferedInputStream.read(BufferedInputStream.java:345) - locked <0x00000005c000ccd8> (a java.io.BufferedInputStream) at org.apache.maven.surefire.api.util.internal.Channels$3.readImpl(Channels.java:217) at org.apache.maven.surefire.api.util.internal.AbstractNoninterruptibleReadableChannel.read(AbstractNoninterruptibleReadableChannel.java:54) at org.apache.maven.surefire.api.stream.AbstractStreamDecoder.read(AbstractStreamDecoder.java:487) at org.apache.maven.surefire.api.stream.AbstractStreamDecoder.read(AbstractStreamDecoder.java:473) at org.apache.maven.surefire.api.stream.AbstractStreamDecoder.readMessageType(AbstractStreamDecoder.java:118) at org.apache.maven.surefire.booter.stream.CommandDecoder.decode(CommandDecoder.java:87) at org.apache.maven.surefire.booter.spi.CommandChannelDecoder.decode(CommandChannelDecoder.java:67) at org.apache.maven.surefire.booter.CommandReader$CommandRunnable.run(CommandReader.java:345) at java.lang.Thread.run(Thread.java:750) "surefire-forkedjvm-stream-flusher" #10 daemon prio=5 os_prio=31 tid=0x00007fe500969000 nid=0xa903 waiting for monitor entry [0x000070000da40000] java.lang.Thread.State: BLOCKED (on object monitor) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:117) - waiting to lock <0x00000005c000d498> (a java.io.BufferedOutputStream) at org.apache.maven.surefire.api.util.internal.Channels$4.writeImpl(Channels.java:253) at org.apache.maven.surefire.api.util.internal.AbstractNoninterruptibleWritableChannel.write(AbstractNoninterruptibleWritableChannel.java:72) at org.apache.maven.surefire.api.util.internal.AbstractNoninterruptibleWritableChannel.write(AbstractNoninterruptibleWritableChannel.java:45) at org.apache.maven.surefire.booter.spi.AbstractMasterProcessChannelProcessorFactory$1.run(AbstractMasterProcessChannelProcessorFactory.java:65) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:750) "Service Thread" #9 daemon prio=9 os_prio=31 tid=0x00007fe50003a800 nid=0x5603 runnable [0x0000000000000000] java.lang.Thread.State: RUNNABLE "C1 CompilerThread3" #8 daemon prio=9 os_prio=31 tid=0x00007fe50001f800 nid=0x3f03 waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "C2 CompilerThread2" #7 daemon prio=9 os_prio=31 tid=0x00007fe50000e800 nid=0x4103 waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "C2 CompilerThread1" #6 daemon prio=9 os_prio=31 tid=0x00007fe4f607e800 nid=0x3d03 waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "C2 CompilerThread0" #5 daemon prio=9 os_prio=31 tid=0x00007fe50000d800 nid=0x3b03 waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "Signal Dispatcher" #4 daemon prio=9 os_prio=31 tid=0x00007fe4f607c800 nid=0x4303 runnable [0x0000000000000000] java.lang.Thread.State: RUNNABLE "Finalizer" #3 daemon prio=8 os_prio=31 tid=0x00007fe4f500c000 nid=0x3503 in Object.wait() [0x000070000d122000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x00000005c00149e8> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:144) - locked <0x00000005c00149e8> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:165) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:216) "Reference Handler" #2 daemon prio=10 os_prio=31 tid=0x00007fe504808800 nid=0x4c03 in Object.wait() [0x000070000d01f000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x00000005c002cce8> (a java.lang.ref.Reference$Lock) at java.lang.Object.wait(Object.java:502) at java.lang.ref.Reference.tryHandlePending(Reference.java:191) - locked <0x00000005c002cce8> (a java.lang.ref.Reference$Lock) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:153) "main" #1 prio=5 os_prio=31 tid=0x00007fe4f6009000 nid=0x2803 runnable [0x000070000c3fa000] java.lang.Thread.State: RUNNABLE at java.io.FileOutputStream.writeBytes(Native Method) at java.io.FileOutputStream.write(FileOutputStream.java:326) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:122) - locked <0x00000005c000d4d0> (a java.io.BufferedOutputStream) at java.io.PrintStream.write(PrintStream.java:480) - locked <0x00000005c000d4b0> (a java.io.PrintStream) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140) - locked <0x00000005c000d498> (a java.io.BufferedOutputStream) at org.apache.maven.surefire.api.util.internal.Channels$4.flushImpl(Channels.java:266) at org.apache.maven.surefire.api.util.internal.AbstractNoninterruptibleWritableChannel.write(AbstractNoninterruptibleWritableChannel.java:76) at org.apache.maven.surefire.api.util.internal.AbstractNoninterruptibleWritableChannel.write(AbstractNoninterruptibleWritableChannel.java:45) at org.apache.maven.surefire.api.stream.AbstractStreamEncoder.write(AbstractStreamEncoder.java:78) at org.apache.maven.surefire.booter.spi.EventChannelEncoder.write(EventChannelEncoder.java:307) at org.apache.maven.surefire.booter.spi.EventChannelEncoder.encode(EventChannelEncoder.java:290) at org.apache.maven.surefire.booter.spi.EventChannelEncoder.testStarting(EventChannelEncoder.java:141) at org.apache.maven.surefire.api.booter.ForkingRunListener.testStarting(ForkingRunListener.java:71) at org.apache.maven.surefire.common.junit4.JUnit4RunListener.testStarted(JUnit4RunListener.java:123) at org.junit.runner.notification.SynchronizedRunListener.testStarted(SynchronizedRunListener.java:80) - locked <0x00000005c0034eb0> (a org.apache.maven.surefire.common.junit4.Notifier) at org.junit.runner.notification.RunNotifier$5.notifyListener(RunNotifier.java:156) at org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:72) at org.junit.runner.notification.RunNotifier.fireTestStarted(RunNotifier.java:153) at org.apache.maven.surefire.common.junit4.Notifier.fireTestStarted(Notifier.java:100) at org.junit.internal.runners.model.EachTestNotifier.fireTestStarted(EachTestNotifier.java:42) at junitparams.internal.ParameterisedTestMethodRunner.runMethodInvoker(ParameterisedTestMethodRunner.java:45) at junitparams.internal.ParameterisedTestMethodRunner.runTestMethod(ParameterisedTestMethodRunner.java:40) at junitparams.internal.ParameterisedTestClassRunner.runParameterisedTest(ParameterisedTestClassRunner.java:146) at junitparams.JUnitParamsRunner.runChild(JUnitParamsRunner.java:446) at junitparams.JUnitParamsRunner.runChild(JUnitParamsRunner.java:393) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:377) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:284) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:248) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:167) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:456) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:169) at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:595) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:581) "VM Thread" os_prio=31 tid=0x00007fe4f6052800 nid=0x3403 runnable "GC task thread#0 (ParallelGC)" os_prio=31 tid=0x00007fe4f680b800 nid=0x2207 runnable "GC task thread#1 (ParallelGC)" os_prio=31 tid=0x00007fe4f7008800 nid=0x2003 runnable "GC task thread#2 (ParallelGC)" os_prio=31 tid=0x00007fe4f7808800 nid=0x2b03 runnable "GC task thread#3 (ParallelGC)" os_prio=31 tid=0x00007fe4f6012800 nid=0x5403 runnable "GC task thread#4 (ParallelGC)" os_prio=31 tid=0x00007fe4f6013800 nid=0x2e03 runnable "GC task thread#5 (ParallelGC)" os_prio=31 tid=0x00007fe4f6014000 nid=0x3003 runnable "GC task thread#6 (ParallelGC)" os_prio=31 tid=0x00007fe500008800 nid=0x5203 runnable "GC task thread#7 (ParallelGC)" os_prio=31 tid=0x00007fe500808800 nid=0x5003 runnable "GC task thread#8 (ParallelGC)" os_prio=31 tid=0x00007fe500809000 nid=0x4f03 runnable "GC task thread#9 (ParallelGC)" os_prio=31 tid=0x00007fe50080a000 nid=0x4e03 runnable "VM Periodic Task Thread" os_prio=31 tid=0x00007fe4f607f000 nid=0x5803 waiting on condition JNI global references: 309
Attachments
Issue Links
- relates to
-
SUREFIRE-2058 Corrupted STDOUT by directly writing to native stream in forked JVM 1 with UTF-8 console logging
- Closed