harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Popov (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-3403) [jdktools][jpda] 8 JDWP unit tests fail because VMDeath event is nor received
Date Wed, 21 Mar 2007 15:40:34 GMT

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

Ivan Popov closed HARMONY-3403.
-------------------------------


Thanks, Stepan. I've checked with harmony-hdk-r520854 and the corresponding JPDA tests are
now included into test run and pass on both Windows and Linux.
Closing this issue.


> [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, remove_tests_from_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.


Mime
View raw message