[
https://issues.apache.org/jira/browse/SUREFIRE-1927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17376507#comment-17376507
]
satellite15 commented on SUREFIRE-1927:
---------------------------------------
{code:java}
<argLine>${surefireArgLine}</argLine>
<skipTests>${unit.test.skip}</skipTests>
[DEBUG] Configuring mojo
org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test from plugin realm
ClassRealm[plugin>org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5,
parent: sun.misc.Launcher$AppClassLoader@70dea4e]
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test' with basic
configurator -->
[DEBUG] (s) additionalClasspathElements = []
[DEBUG] (s) argLine =
-javaagent:/services/etcd4j-shaded/m2_repository/org/jacoco/org.jacoco.agent/0.8.7/org.jacoco.agent-0.8.7-runtime.jar=destfile=/services/etcd4j-shaded/target/coverage-reports/jacoco-ut.exec
[DEBUG] (s) basedir = /services/etcd4j-shaded
[DEBUG] (s) childDelegation = false
[DEBUG] (f) classesDirectory = /services/etcd4j-shaded/target/classes
[DEBUG] (s) classpathDependencyExcludes = []
[DEBUG] (s) dependenciesToScan = []
[DEBUG] (s) disableXmlReport = false
[DEBUG] (s) enableAssertions = true
[DEBUG] (s) encoding = UTF-8
[DEBUG] (f) excludedEnvironmentVariables = []
[DEBUG] (s) excludes = [**/IT*.java, **/*IT.java, **/*ITCase.java,
**/*IntegrationTest.java, **/TestExampleSimpleUnit.java]
[DEBUG] (f) forkCount = 1
[DEBUG] (s) forkMode = once
[DEBUG] (s) forkedProcessExitTimeoutInSeconds = 30
[DEBUG] (s) junitArtifactName = junit:junit
[DEBUG] (s) localRepository = id: local
url: file:///services/etcd4j-shaded/m2_repository
layout: default
snapshots: [enabled => true, update => always]
releases: [enabled => true, update => always]
[DEBUG] (f) parallelMavenExecution = false
[DEBUG] (s) parallelOptimized = true
[DEBUG] (s) perCoreThreadCount = true
[DEBUG] (s) pluginArtifactMap =
{org.apache.maven.plugins:maven-surefire-plugin=org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:3.0.0-M5:,
org.apache.maven.surefire:maven-surefire-common=org.apache.maven.surefire:maven-surefire-common:jar:3.0.0-M5:compile,
org.apache.maven.surefire:surefire-api=org.apache.maven.surefire:surefire-api:jar:3.0.0-M5:compile,
org.apache.maven.surefire:surefire-logger-api=org.apache.maven.surefire:surefire-logger-api:jar:3.0.0-M5:compile,
org.apache.maven.surefire:surefire-extensions-api=org.apache.maven.surefire:surefire-extensions-api:jar:3.0.0-M5:compile,
org.apache.maven.surefire:surefire-booter=org.apache.maven.surefire:surefire-booter:jar:3.0.0-M5:compile,
org.apache.maven.surefire:surefire-extensions-spi=org.apache.maven.surefire:surefire-extensions-spi:jar:3.0.0-M5:compile,
org.apache.maven:maven-toolchain=org.apache.maven:maven-toolchain:jar:3.0-alpha-2:compile,
org.apache.maven.shared:maven-artifact-transfer=org.apache.maven.shared:maven-artifact-transfer:jar:0.11.0:compile,
org.apache.maven.shared:maven-common-artifact-filters=org.apache.maven.shared:maven-common-artifact-filters:jar:3.1.0:compile,
org.apache.maven:maven-plugin-api=org.apache.maven:maven-plugin-api:jar:3.0:compile,
commons-codec:commons-codec=commons-codec:commons-codec:jar:1.11:compile,
org.codehaus.plexus:plexus-java=org.codehaus.plexus:plexus-java:jar:1.0.5:compile,
org.ow2.asm:asm=org.ow2.asm:asm:jar:7.2:compile,
com.thoughtworks.qdox:qdox=com.thoughtworks.qdox:qdox:jar:2.0-M9:compile,
org.apache.maven.surefire:surefire-shared-utils=org.apache.maven.surefire:surefire-shared-utils:jar:3.0.0-M4:compile,
org.codehaus.plexus:plexus-utils=org.codehaus.plexus:plexus-utils:jar:1.1:runtime}
[DEBUG] (f) pluginDescriptor = Component Descriptor: role:
'org.apache.maven.plugin.Mojo', implementation:
'org.apache.maven.plugin.surefire.HelpMojo', role hint:
'org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:help'
role: 'org.apache.maven.plugin.Mojo', implementation:
'org.apache.maven.plugin.surefire.SurefirePlugin', role hint:
'org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test'
---
[DEBUG] (s) printSummary = true
[DEBUG] (s) project = MavenProject: ********:etcd4j-shaded:0.1-SNAPSHOT @
/services/etcd4j-shaded/pom.xml
[DEBUG] (s) projectArtifactMap =
{org.mousio:etcd4j=org.mousio:etcd4j:jar:2.9.0:compile,
io.netty:netty-codec-http=io.netty:netty-codec-http:jar:4.1.0.Beta8:compile,
io.netty:netty-codec=io.netty:netty-codec:jar:4.1.0.Beta8:compile,
com.fasterxml.jackson.core:jackson-core=com.fasterxml.jackson.core:jackson-core:jar:2.6.4:compile,
io.netty:netty-handler=io.netty:netty-handler:jar:4.1.0.Beta8:compile,
io.netty:netty-buffer=io.netty:netty-buffer:jar:4.1.0.Beta8:compile,
io.netty:netty-common=io.netty:netty-common:jar:4.1.0.Beta8:compile,
io.netty:netty-transport=io.netty:netty-transport:jar:4.1.0.Beta8:compile,
io.netty:netty-resolver=io.netty:netty-resolver:jar:4.1.0.Beta8:compile,
com.fasterxml.jackson.core:jackson-annotations=com.fasterxml.jackson.core:jackson-annotations:jar:2.6.4:compile,
org.slf4j:slf4j-api=org.slf4j:slf4j-api:jar:1.7.13:compile,
com.fasterxml.jackson.module:jackson-module-afterburner=com.fasterxml.jackson.module:jackson-module-afterburner:jar:2.6.4:compile,
com.fasterxml.jackson.core:jackson-databind=com.fasterxml.jackson.core:jackson-databind:jar:2.6.4:compile}
[DEBUG] (s) projectBuildDirectory = /services/etcd4j-shaded/target
[DEBUG] (s) projectRemoteRepositories = [ id: central
url: https://repo.maven.apache.org/maven2
layout: default
snapshots: [enabled => false, update => daily]
releases: [enabled => true, update => daily]
]
[DEBUG] (s) redirectTestOutputToFile = false
[DEBUG] (s) remoteRepositories = [ id: central
url: https://repo.maven.apache.org/maven2
layout: default
snapshots: [enabled => false, update => daily]
releases: [enabled => true, update => never]
]
[DEBUG] (s) reportFormat = brief
[DEBUG] (s) reportsDirectory = /services/etcd4j-shaded/target/surefire-reports
[DEBUG] (f) rerunFailingTestsCount = 0
[DEBUG] (f) reuseForks = true
[DEBUG] (s) runOrder = filesystem
[DEBUG] (s) session = org.apache.maven.execution.MavenSession@a0bb77
[DEBUG] (f) shutdown = exit
[DEBUG] (s) skip = false
[DEBUG] (f) skipAfterFailureCount = 0
[DEBUG] (s) skipTests = false
[DEBUG] (s) suiteXmlFiles = []
[DEBUG] (s) tempDir = surefire
[DEBUG] (s) testClassesDirectory = /services/etcd4j-shaded/target/test-classes
[DEBUG] (s) testFailureIgnore = false
[DEBUG] (s) testNGArtifactName = org.testng:testng
[DEBUG] (s) testSourceDirectory = /services/etcd4j-shaded/src/test/java
[DEBUG] (s) threadCountClasses = 0
[DEBUG] (s) threadCountMethods = 0
[DEBUG] (s) threadCountSuites = 0
[DEBUG] (s) trimStackTrace = true
[DEBUG] (s) useFile = true
[DEBUG] (s) useManifestOnlyJar = true
[DEBUG] (f) useModulePath = true
[DEBUG] (s) useSystemClassLoader = true
[DEBUG] (s) useUnlimitedThreads = false
[DEBUG] (s) workingDirectory = /services/etcd4j-shaded
[DEBUG] -- end configuration --
[DEBUG] Using JVM: /usr/lib/jvm/java-1.8.0-amazon-corretto/jre/bin/java with
Java version 1.8
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.7:report (post-unit-test) @ etcd4j-shaded ---
[DEBUG] Configuring mojo org.jacoco:jacoco-maven-plugin:0.8.7:report from
plugin realm ClassRealm[plugin>org.jacoco:jacoco-maven-plugin:0.8.7, parent:
sun.misc.Launcher$AppClassLoader@70dea4e]
[DEBUG] Configuring mojo 'org.jacoco:jacoco-maven-plugin:0.8.7:report' with
basic configurator -->
[DEBUG] (f) dataFile =
/services/etcd4j-shaded/target/coverage-reports/jacoco-ut.exec
[DEBUG] (f) formats = [HTML, XML, CSV]
[DEBUG] (f) outputDirectory =
/services/etcd4j-shaded/target/site/jacoco-ut-report
[DEBUG] (f) outputEncoding = UTF-8
[DEBUG] (f) project = MavenProject: ********:etcd4j-shaded:0.1-SNAPSHOT @
/services/etcd4j-shaded/pom.xml
[DEBUG] (f) skip = false
[DEBUG] (f) sourceEncoding = UTF-8
[DEBUG] (f) title = etcd4j-shaded
{code}
> JVM exit with Process Exit Code:0 failing builds
> ------------------------------------------------
>
> Key: SUREFIRE-1927
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1927
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Affects Versions: 3.0.0-M5
> Environment: Our typical CI build uses:
> Amazon corretto Java8 1:8.282.08-1
> Maven 3.6.3
> and runs on Ubuntu:18:04 docker image
> We have also observed this using
> openjdk version "1.8.0_201"
> with Alpine linux 3.9.3
> Reporter: satellite15
> Priority: Major
> Attachments: 2021-07-06T15-27-23_728-jvmRun1.dump
>
>
> Builds in docker and in our CI tool (which is a dind solution) are failing
> randomly with errors such as
> {code:java}
> mvn install
> -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
> -B -U -Dmaven.wagon.http.retryhandler.count=6
> -Dmaven.repo.local=m2_repository -T1C{code}
> {code:java}
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test (default-test)
> on project json-util: There are test failures.
> [ERROR]
> [ERROR] Please refer to /services/util/json/target/surefire-reports for the
> individual test results.
> [ERROR] Please refer to dump files (if any exist) [date].dump,
> [date]-jvmRun[N].dump and [date].dumpstream.
> [ERROR] The forked VM terminated without properly saying goodbye. VM crash or
> System.exit called?
> [ERROR] Command was /bin/sh -c cd /services/util/json &&
> /usr/lib/jvm/java-1.8-openjdk/jre/bin/java
> -javaagent:/services/m2_repository/org/jacoco/org.jacoco.agent/0.8.7/org.jacoco.agent-0.8.7-runtime.jar=destfile=/services/util/json/target/coverage-reports/jacoco-ut.exec
> -jar
> /services/util/json/target/surefire/surefirebooter6588274738548295815.jar
> /services/util/json/target/surefire 2021-07-06T15-27-23_728-jvmRun1
> surefire2092561723068008165tmp surefire_62096530731829354626tmp
> [ERROR] Process Exit Code: 0
> [ERROR] Crashed tests:
> [ERROR] R] *********.util.json.formatter.JsonFormatterTest
> [ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The
> forked VM terminated without properly saying goodbye. VM crash or System.exit
> called?
> [ERROR] Command was /bin/sh -c cd /services/util/json &&
> /usr/lib/jvm/java-1.8-openjdk/jre/bin/java
> -javaagent:/services/m2_repository/org/jacoco/org.jacoco.agent/0.8.7/org.jacoco.agent-0.8.7-runtime.jar=destfile=/services/util/json/target/coverage-reports/jacoco-ut.exec
> -jar
> /services/util/json/target/surefire/surefirebooter6588274738548295815.jar
> /services/util/json/target/surefire 2021-07-06T15-27-23_728-jvmRun1
> surefire2092561723068008165tmp surefire_62096530731829354626tmp
> [INFO]
> [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ cloudtrail-cep ---
> [ERROR] Process Exit Code: 0
> [ERROR] Crashed tests:
> [ERROR] *********.util.json.formatter.JsonFormatterTest
> [ERROR] at
> org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:748)
> [ERROR] at
> org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:305)
> [ERROR] at
> org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:265)
> [ERROR] at
> org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1314)
> [ERROR] at
> org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1159)
> [ERROR] at
> org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:932)
> [ERROR] at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
> [ERROR] at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
> [ERROR] at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
> [ERROR] at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
> [ERROR] at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
> [ERROR] at
> org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:200)
> {code}
> Sometimes we get a list of Crashed tests, sometimes not.
> Our typical CI build uses:
> Amazon corretto Java8 1:8.282.08-1
> Maven 3.6.3
> and runs on Ubuntu:18:04 docker image
> We have also observed this using
> openjdk version "1.8.0_201"
> with Alpine linux 3.9.3
> In all cases we see a
> {code:java}
> [ERROR] Process Exit Code: 0{code}
> Which doesn't look like an error caused the JVM to exit.
> Our source code and our tests do not have any System.exit(0) calls.
> My first thoughts were that the tests finished but there is a timing issue
> with the ForkClient ByeListener getting notified that the JVM has exited.
> However that doesn't explain the cases when the error occurs and tests are
> still running which are then listed as crashed tests.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)