You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Stepan Mishura (JIRA)" <ji...@apache.org> on 2007/03/16 07:27:09 UTC

[jira] Commented: (HARMONY-3403) [jdktools][jpda] 8 JDWP unit tests fail because VMDeath event is nor received

    [ https://issues.apache.org/jira/browse/HARMONY-3403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12481492 ] 

Stepan Mishura commented on HARMONY-3403:
-----------------------------------------

Ivan, what the problem is - all tests pass for me?

> [jdktools][jpda] 8 JDWP unit tests fail because VMDeath event is nor received
> -----------------------------------------------------------------------------
>
>                 Key: HARMONY-3403
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3403
>             Project: Harmony
>          Issue Type: Bug
>          Components: JDK
>         Environment: Windows/ia32, Linux/ia32, Harmony-jdk-r518547
>            Reporter: Ivan Popov
>         Assigned To: Stepan Mishura
>         Attachments: add_tests_to_exclude_list.patch
>
>
> The following JDWP unit tests 
> org.apache.harmony.jpda.tests.jdwp.Events.VMDeath002Test
> org.apache.harmony.jpda.tests.jdwp.Events.VMDeathTest
> org.apache.harmony.jpda.tests.jdwp.MultiSession.ClassPrepareTest
> org.apache.harmony.jpda.tests.jdwp.MultiSession.ExceptionTest
> org.apache.harmony.jpda.tests.jdwp.MultiSession.FieldAccessTest
> org.apache.harmony.jpda.tests.jdwp.MultiSession.FieldModificationTest
> org.apache.harmony.jpda.tests.jdwp.MultiSession.SingleStepTest
> org.apache.harmony.jpda.tests.jdwp.MultiSession.VMDeathTest
> fail because expected VMDeath event is nor received and debuggee JVM hangs at exit.
> I suspect this problem is caused by recent changes in generation of JVMTI event VM_DEATH, see HARMONY-3297. However, it needs deeper investigation.
> Here is typical diagnostics:
> <...>
> => Wait for VM_DEATH event
> <...>
> Waiting for debuggee exit
> Ignoring exception in ProcessWaiter thread interrupted: java.lang.InterruptedException
> # ERROR: Enforced debuggee termination
> Waiting for redirectors
> Redirector completed: STDOUT
> Redirector completed: STDERR
> <...>
> org.apache.harmony.jpda.tests.framework.TestErrorException: org.apache.harmony.jpda.tests.framework.jdwp.exceptions.TimeoutException: Timeout was exceeded
> 	at org.apache.harmony.jpda.tests.framework.jdwp.VmMirror.receiveEvent(VmMirror.java:1693)
> 	at org.apache.harmony.jpda.tests.jdwp.Events.VMDeath002Test.testVMDeathRequest(VMDeath002Test.java:104)
> 	at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
> Caused by: org.apache.harmony.jpda.tests.framework.jdwp.exceptions.TimeoutException: Timeout was exceeded
> 	at org.apache.harmony.jpda.tests.framework.jdwp.PacketDispatcher$EventsSynchronyzer.waitForNextEvent(PacketDispatcher.java:173)
> 	at org.apache.harmony.jpda.tests.framework.jdwp.PacketDispatcher.receiveEvent(PacketDispatcher.java)
> 	at org.apache.harmony.jpda.tests.framework.jdwp.VmMirror.receiveEvent(VmMirror.java)
> 	at org.apache.harmony.jpda.tests.framework.jdwp.VmMirror.receiveEvent(VmMirror.java:1691)
> 	at org.apache.harmony.jpda.tests.jdwp.Events.VMDeath002Test.testVMDeathRequest(VMDeath002Test.java:104)
> 	... 13 more
> To reproduce this failure:
> 1. create Harmony JDK with federated build:
>     svn checkout https://svn.apache.org/repos/asf/harmony/enhanced/trunk
>     cd trunk
>     ant
> 2. goto jdktools directory, add junit to classpath, and run particular test:
>     cd working_jdktools
>     export CLASSPATH=<...>/trunk/common_resources/depends/jars/junit_3.8.2/junit.jar
>     ant test -Dbuild.module=jpda -Dtest.case=org.apache.harmony.jpda.tests.jdwp.Events.VMDeathTest
> 3. see results in <...>/trunk/working_jdktools/build/test_report/html/index.html
> It is possible also to run test directly from command line:
>    cd working_jdktools
>    deploy/jdk/bin/java -classpath ../common_resources/depends/jars/junit_3.8.2/junit.jar:build/tests/classes \
>    org.apache.harmony.jpda.tests.jdwp.Events.VMDeathTest 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.