[
https://issues.apache.org/jira/browse/SUREFIRE-1193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14991954#comment-14991954
]
Ralph Goers edited comment on SUREFIRE-1193 at 11/5/15 4:49 PM:
----------------------------------------------------------------
I reset the version to 2.19 on my Mac. The first time I ran the build it
completed successfully. The second time it hung in log4j-api. I see 3
processes:
{code}
23031 s001 S 0:27.15
/Library/Java/JavaVirtualMachines/Java7/Contents/Home/bin/java -Xmx1024m
-Xms1024m -XX:MaxPermSize=512M -classpath
/opt/maven/maven/boot/plexus-classworlds-2.5.1.jar
-Dclassworlds.conf=/opt/maven/maven/bin/m2.conf -Dmaven.home=/opt/maven/maven
org.codehaus.plexus.classworlds.launcher.Launcher clean install
23045 s001 S 0:00.00 /bin/sh -c cd
/Users/rgoers/projects/apache/logging/log4j/log4j2/logging-log4j2/log4j-api &&
/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre/bin/java
-XX:MaxPermSize=512m -jar
/Users/rgoers/projects/apache/logging/log4j/log4j2/logging-log4j2/log4j-api/target/surefire/surefirebooter261715733872482261.jar
/Users/rgoers/projects/apache/logging/log4j/log4j2/logging-log4j2/log4j-api/target/surefire/surefire2137188065857541949tmp
/Users/rgoers/projects/apache/logging/log4j/log4j2/logging-log4j2/log4j-api/target/surefire/surefire_128688342312074142606tmp
23056 s001 S 0:09.18
/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre/bin/java
-XX:MaxPermSize=512m -jar
/Users/rgoers/projects/apache/logging/log4j/log4j2/logging-log4j2/log4j-api/target/surefire/surefirebooter261715733872482261.jar
/Users/rgoers/projects/apache/logging/log4j/log4j2/logging-log4j2/log4j-api/target/surefire/surefire2137188065857541949tmp
/Users/rgoers/projects/apache/logging/log4j/log4j2/logging-log4j2/log4j-api/target/surefire/surefire_128688342312074142606tmp
{code}
I can get thread dumps of 23031 and 23056 but jstack on 23045 fails and I see
no output from kill -3 23045. From what I can tell 23031 is waiting for 23056
and 23056 is waiting for 23045.
was (Author: [email protected]):
I reset the version to 2.19 on my Mac. The first time I ran the build it
completed successfully. The second time it hung in log4j-api. I see 3
processes:
{code}
23031 s001 S 0:27.15
/Library/Java/JavaVirtualMachines/Java7/Contents/Home/bin/java -Xmx1024m
-Xms1024m -XX:MaxPermSize=512M -classpath
/opt/maven/maven/boot/plexus-classworlds-2.5.1.jar
-Dclassworlds.conf=/opt/maven/maven/bin/m2.conf -Dmaven.home=/opt/maven/maven
org.codehaus.plexus.classworlds.launcher.Launcher clean install
23045 s001 S 0:00.00 /bin/sh -c cd
/Users/rgoers/projects/apache/logging/log4j/log4j2/logging-log4j2/log4j-api &&
/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre/bin/java
-XX:MaxPermSize=512m -jar
/Users/rgoers/projects/apache/logging/log4j/log4j2/logging-log4j2/log4j-api/target/surefire/surefirebooter261715733872482261.jar
/Users/rgoers/projects/apache/logging/log4j/log4j2/logging-log4j2/log4j-api/target/surefire/surefire2137188065857541949tmp
/Users/rgoers/projects/apache/logging/log4j/log4j2/logging-log4j2/log4j-api/target/surefire/surefire_128688342312074142606tmp
23056 s001 S 0:09.18
/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre/bin/java
-XX:MaxPermSize=512m -jar
/Users/rgoers/projects/apache/logging/log4j/log4j2/logging-log4j2/log4j-api/target/surefire/surefirebooter261715733872482261.jar
/Users/rgoers/projects/apache/logging/log4j/log4j2/logging-log4j2/log4j-api/target/surefire/surefire2137188065857541949tmp
/Users/rgoers/projects/apache/logging/log4j/log4j2/logging-log4j2/log4j-api/target/surefire/surefire_128688342312074142606tmp
{code}
I can get thread dumps of 23031 and 23056 but jstack on 23045 fails and I see
no output from kill -3 23045.
> Surefire 2.19 hangs in the log4j build
> --------------------------------------
>
> Key: SUREFIRE-1193
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1193
> 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
> https://builds.apache.org/job/Log4j%202.x/1520/console. 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
> "<https://builds.apache.org/job/Log4j%202.x/ws/log4j-api"> &&
> /home/jenkins/jenkins-slave/tools/hudson.model.JDK/jdk-1.7u51/jre/bin/java
> -XX:MaxPermSize=512m -jar
> '<https://builds.apache.org/job/Log4j%202.x/ws/log4j-api/target/surefire/surefirebooter7073284324062596703.jar'>
>
> '<https://builds.apache.org/job/Log4j%202.x/ws/log4j-api/target/surefire/surefire9073033079471575703tmp'>
>
> '<https://builds.apache.org/job/Log4j%202.x/ws/log4j-api/target/surefire/surefire_84682619741166881372tmp'>
> [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]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR] mvn <goals> -rf :log4j-api
> [JENKINS] Archiving <https://builds.apache.org/job/Log4j%202.x/ws/l
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)