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.

Bug 97927 - Deadlock after killing process with tests
Summary: Deadlock after killing process with tests
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: xtest (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords: THREAD
Depends on:
Blocks:
 
Reported: 2007-03-15 09:22 UTC by pzajac
Modified: 2007-05-02 14:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
threads dump from jstack (11.09 KB, text/plain)
2007-03-15 09:26 UTC, pzajac
Details
last 500 lines from log (43.80 KB, text/plain)
2007-03-15 09:33 UTC, pzajac
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 2007-03-15 09:22:28 UTC
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)
Comment 1 pzajac 2007-03-15 09:26:30 UTC
Created attachment 39499 [details]
threads dump from jstack
Comment 2 pzajac 2007-03-15 09:33:59 UTC
Created attachment 39500 [details]
last 500 lines from log
Comment 3 Jiri Skrivanek 2007-03-15 17:49:07 UTC
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
Comment 4 pzajac 2007-05-02 14:27:23 UTC
Thanks, it works fine now.