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

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

[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


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.


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

Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stepan Mishura resolved HARMONY-3403.
-------------------------------------

    Resolution: Fixed

Ivan, patch for the exclude list was applied to JDKTOOLs at r518856.

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


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

Posted by "Ivan Popov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan Popov updated HARMONY-3403:
--------------------------------

    Attachment: remove_tests_from_exclude_list.patch

Since HARMONY-3412  for underlying JVMTI problem has been fixed, these tests pass on both Windows and Linux. I'm attaching patch "remove_tests_from_exclude_list.patch" to remove tests from exclude lists. Please apply this patch, and I'll can close this issue.

However, on Linux JPDA tests may still time out because of intermittent DRLVM problem (HARMONY-3314).

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


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

Posted by "Ivan Popov (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stepan Mishura reassigned HARMONY-3403:
---------------------------------------

    Assignee: Stepan Mishura

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


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

Posted by "Ivan Popov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12481597 ] 

Ivan Popov commented on HARMONY-3403:
-------------------------------------

The underlaying problem is in the change of JVMTI implementation for generating VM_DEATH event according to HARMONY-3297. 

JDWP agent uses internal daemon threads for handling JVMTI events, including VM_DEATH event. These threads are terminated before VM_DEATH is generated and agent hangs in VM_DEATH callback waiting for these threads to handle this event. 

There are should be better solution for not reporting JVMTI events for daemon threads after VM_DEATH callback. Agent daemon threads should not be terminated until return from VM_DEATH callback.


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


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

Posted by "Ivan Popov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan Popov reopened HARMONY-3403:
---------------------------------


Stepan, thank you for applying patch and adding tests to exclude list.
However, I reopen this issues because the problem still exist.
I'm working on deeper investigation.


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


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

Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stepan Mishura resolved HARMONY-3403.
-------------------------------------

    Resolution: Fixed

Ivan, the patch was applied at r520828. Please check that the patch was applied as you expected.

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


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

Posted by "Ivan Popov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12481496 ] 

Ivan Popov commented on HARMONY-3403:
-------------------------------------

The tests pass because failed tests are excluded. But excluded tests still fail because underlaying problem still not resolved. I'd like to have this issue open until the underlaying problem is resolved. Then we can close this issue and remove excluded tests from the exclude list.



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


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

Posted by "Ivan Popov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan Popov updated HARMONY-3403:
--------------------------------

    Attachment: add_tests_to_exclude_list.patch

This patch 'add_tests_to_exclude_list.patch' adds failed tests to exclude list for further investigation of this problem. With this patch full run of jdktools tests succeeds on both Windows and Linux against Harmony-jdk-r518547.


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


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

Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "Ivan Popov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan Popov updated HARMONY-3403:
--------------------------------

    Patch Info: [Patch Available]

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