This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The process with testrun was killed successufully. But process with ant tasks is freezed. Thread 29239 is waiting on 2506: Thread 2506 is waiting at java.lang.Process process.exitValue(); Thread 2506: (state = BLOCKED) - org.apache.tools.ant.taskdefs.ExecuteWatchdog.timeoutOccured(org.apache.tools.ant.util.Watchdog) @bci=0, line=120 (Interpreted frame) - org.netbeans.xtest.plugin.jvm.JVMExecuteWatchdog.timeoutOccured(org.apache.tools.ant.util.Watchdog) @bci=59, line=56 (Interpreted frame) - org.apache.tools.ant.util.Watchdog.fireTimeoutOccured() @bci=27, line=83 (Interpreted frame) - org.apache.tools.ant.util.Watchdog.run() @bci=49, line=122 (Interpreted frame) - java.lang.Thread.run() @bci=11, line=595 (Interpreted frame) Thread 29239: (state = BLOCKED) - org.apache.tools.ant.util.Watchdog.stop() @bci=0, line=101 (Interpreted frame) - org.apache.tools.ant.taskdefs.ExecuteWatchdog.stop() @bci=4, line=106 (Interpreted frame) - org.apache.tools.ant.taskdefs.Execute.execute() @bci=168, line=483 (Interpreted frame) - org.netbeans.xtest.plugin.jvm.JVMTestRunnerTask.executeCommandLine(org.apache.tools.ant.types.CommandlineJava) @bci=109, line=349 (Interpreted frame) - org.netbeans.xtest.plugin.jvm.JVMTestRunnerTask.launchTestBoard(org.netbeans.xtest.testrunner.JUnitTestRunnerProperties) @bci=38, line=263 (Interpreted frame) - org.netbeans.xtest.testrunner.TestRunnerHarness.launchTests(org.netbeans.xtest.testrunner.JUnitTestRunnerProperties) @bci=5, line=93 (Interpreted frame)
Created attachment 39499 [details] threads dump from jstack
Created attachment 39500 [details] last 500 lines from log
timeoutOccured has to be synchronized because after we kill JVM, Execute.execute calls ExecuteWatchdog.stop and it has to wait until timeoutOccured releases the lock. /cvs/xtest/plugins_src/jvm/src/org/netbeans/xtest/plugin/jvm/JVMExecuteWatchdog.java,v <-- JVMExecuteWatchdog.java new revision: 1.3; previous revision: 1.2 /cvs/xtest/test/unit/src/org/netbeans/xtest/plugin/jvm/CheckJVMExecuteWatchdogTest.java,v <-- CheckJVMExecuteWatchdogTest.java initial revision: 1.1 Checking in unit/src/org/netbeans/xtest/plugin/jvm/JVMExecuteWatchdogTest.java; /cvs/xtest/test/unit/src/org/netbeans/xtest/plugin/jvm/JVMExecuteWatchdogTest.java,v <-- JVMExecuteWatchdogTest.java
Thanks, it works fine now.