maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tibor Digana (JIRA)" <>
Subject [jira] [Commented] (SUREFIRE-1193) Surefire 2.19 hangs in the log4j build
Date Thu, 05 Nov 2015 18:08:28 GMT


Tibor Digana commented on SUREFIRE-1193:

I would say both 23056 and 23045 were triggered by master 23031.
Can you find out if all tests were finished and find the number of completed tests? Please
see the reports in target/surefire-reports. Count them and compare with expected count.

If the test set was completed, then only non-daemon thread may hold on VM. But this VM cannot
exit normally while using non-daemon Threads in tests and therefore it times out after 30
sec and kills itself (this operation only on after all tests completed).

Is it this case?
AFAIK shutdown hook in Java ThreadPoolService was not properly handling System.exit() in order
to interrupt the threads.
Maybe that's why I did not see this issue on JDK 1.8. I will try with 1.7.

Notice we added default configuration which is not agresive:

> Surefire 2.19 hangs in the log4j build
> --------------------------------------
>                 Key: SUREFIRE-1193
>                 URL:
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.19
>            Reporter: Ralph Goers
>            Assignee: Tibor Digana
>         Attachments: SUREFIRE-1193.console.txt
> Log4j is getting periodic failures in Jenkins with the messages shown below. I am also
seeing running the tests hang in various log4j modules when building on my MacBook Pro. The
build never hung when using 2.18. We have reverted back to surefire 2.18 due to this.
> The full build output is temporarily available at
We only keep the last 15 builds.
> ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19:test
(default-test) on project log4j-api: ExecutionException The forked VM terminated without properly
saying goodbye. VM crash or System.exit called?
> [ERROR] Command was /bin/sh -c cd "<">
&& /home/jenkins/jenkins-slave/tools/hudson.model.JDK/jdk-1.7u51/jre/bin/java -XX:MaxPermSize=512m
-jar '<'>
> [ERROR] -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please read the
following articles:
> [ERROR] [Help 1]
> [ERROR] 
> [ERROR] After correcting the problems, you can resume the build with the command
> [ERROR]   mvn <goals> -rf :log4j-api
> [JENKINS] Archiving <

This message was sent by Atlassian JIRA

View raw message