[
https://issues.apache.org/jira/browse/SUREFIRE-1541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16685852#comment-16685852
]
Radoslav Ivanov edited comment on SUREFIRE-1541 at 11/14/18 2:52 AM:
---------------------------------------------------------------------
This issue is still reproducible on Windows with OpenJDK 11, Maven 3.6.0 and
SURFIRE plugin 3.0.0-M1
{code:java}
[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 cmd.exe /X /C "D:\jdk\openjdk-11\bin\java
-Dformcenter.version=18.11.0 -jar
C:\Users\dev\AppData\Local\Temp\surefire15361055596163701059\surefirebooter7359148605052433678.jar
C:\Users\dev\AppData\Local\Temp\surefire15361055596163701059
2018-11-13T15-01-05_359-jvmRun2 surefire9627993971155929482tmp
surefire_74224518744146218853tmp"
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 1
[ERROR] Crashed tests:
[ERROR] ...TestCase
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The
forked VM terminated without properly saying goodbye. VM crash or System.exit
called?
[ERROR] Command was cmd.exe /X /C "D:\jdk\openjdk-11\bin\java
-Dformcenter.version=18.11.0 -jar
C:\Users\dev\AppData\Local\Temp\surefire15361055596163701059\surefirebooter7359148605052433678.jar
C:\Users\dev\AppData\Local\Temp\surefire15361055596163701059
2018-11-13T15-01-05_359-jvmRun2 surefire9627993971155929482tmp
surefire_74224518744146218853tmp"
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 1
[ERROR] Crashed tests:
{code}
Any suggestions on how to solve it would be much appreciated.
was (Author: rivanov):
This issue is still reproducible on Windows with OpenJDK 11, Maven 3.6.0 and
SURFIRE plugin 3.0.0-M1
{code:java}
[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 cmd.exe /X /C "D:\jdk\openjdk-11\bin\java
-Dformcenter.version=18.11.0 -jar
C:\Users\dev\AppData\Local\Temp\surefire15361055596163701059\surefirebooter7359148605052433678.jar
C:\Users\dev\AppData\Local\Temp\surefire15361055596163701059
2018-11-13T15-01-05_359-jvmRun2 surefire9627993971155929482tmp
surefire_74224518744146218853tmp"
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 1
[ERROR] Crashed tests:
[ERROR] com.avoka.tm.workspace.impl.CategoryApiServiceImplTestCase
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The
forked VM terminated without properly saying goodbye. VM crash or System.exit
called?
[ERROR] Command was cmd.exe /X /C "D:\jdk\openjdk-11\bin\java
-Dformcenter.version=18.11.0 -jar
C:\Users\dev\AppData\Local\Temp\surefire15361055596163701059\surefirebooter7359148605052433678.jar
C:\Users\dev\AppData\Local\Temp\surefire15361055596163701059
2018-11-13T15-01-05_359-jvmRun2 surefire9627993971155929482tmp
surefire_74224518744146218853tmp"
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 1
[ERROR] Crashed tests:
{code}
Any suggestions on how to solve it would be much appreciated.
> SurefireBooterForkException: The forked VM terminated without properly saying
> goodbye. VM crash or System.exit called?
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: SUREFIRE-1541
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1541
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Affects Versions: 2.22.0
> Reporter: Anghel Botos
> Assignee: Tibor Digana
> Priority: Major
>
> Attempting to run integration tests using maven-failsafe-plugin with
> {{-Dmaven.failsafe.debug=false}} yields the following stacktrace:
>
> {noformat}
> [ERROR] ExecutionException The forked VM terminated without properly saying
> goodbye. VM crash or System.exit called?
> [ERROR] Command was cmd.exe /X /C ""C:\Program
> Files\Java\jdk1.8.0_121\jre\bin\java" false -jar
> C:\Users\ANGHEL~1.BOT\AppData\Local\Temp\surefire8539836821793811485\surefirebooter6734575521909210279.jar
> C:\Users\anghel.botos\AppData\Local\Temp\surefire8539836821793811485
> 2018-07-24T11-18-12_704-jvmRun1 surefire7184511894589995478tmp
> surefire_411836142070426630764tmp"
> [ERROR] Error occurred in starting fork, check output in log
> [ERROR] Process Exit Code: 1
> [ERROR] at
> org.apache.maven.plugin.surefire.booterclient.ForkStarter.awaitResultsDone(ForkStarter.java:494)
> [ERROR] at
> org.apache.maven.plugin.surefire.booterclient.ForkStarter.runSuitesForkPerTestSet(ForkStarter.java:441)
> [ERROR] at
> org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:293)
> [ERROR] at
> org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:245)
> {noformat}
>
> The issue is the "free-floating" {{false}} that appears in the command line
> used to start a new JVM. I've traced down the issue to
> {{org.apache.maven.plugin.surefire.AbstractSurefireMojo#getEffectiveDebugForkedProcess}}
> where the following code can be found:
> {code:java}
> String debugForkedProcess = getDebugForkedProcess();
> if ( "true".equals( debugForkedProcess ) )
> {
> return "-Xdebug -Xnoagent -Djava.compiler=NONE"
> + "
> -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005";
> }
> return debugForkedProcess;
> {code}
> ...which is quite..."unexpected" to see that one can pass in a value of
> {{true}}, but not a value of {{false}}.
> Please fix with a proper parsing of true/false values for the
> {{maven.failsafe.debug}} property.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)