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] Updated: (HARMONY-3508) [jdktools][jpda] JDWP test org.apache.harmony.jpda.tests.jdwp.VirtualMachine.HoldEventsTest intermittently fails
Date Mon, 02 Jul 2007 14:41:04 GMT

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

Ivan Popov updated HARMONY-3508:
--------------------------------

    Attachment: H3508_jdwp_test.patch

Attached patch for JDWP tests simplifies this test and eliminates usage of a separate thread
for receiving events. Now the tests works as follow:

  - holds events
  - tries to receive events duriong default timeout and expects timeout exception
  - releases events
  - tries to receive events agian and checks that expected event is now received

With this patch the test stably passed for me on both Windows and Linux against M2 build.
This patch also removes test from all exclude lists.


> [jdktools][jpda] JDWP test org.apache.harmony.jpda.tests.jdwp.VirtualMachine.HoldEventsTest
intermittently fails
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3508
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3508
>             Project: Harmony
>          Issue Type: Bug
>          Components: JDK
>         Environment: Windows/ia32, Harmony-jdk-r522623
>            Reporter: Ivan Popov
>            Assignee: Stepan Mishura
>            Priority: Minor
>         Attachments: H3508-exclude_test.patch, H3508_jdwp_test.patch
>
>
> The following JDWP test
>   org.apache.harmony.jpda.tests.jdwp.VirtualMachine.HoldEventsTest
> very rarely fails during whole test run mostly on Windows/ia32 on a slow single-cpu machine.
> Typical test output:
> <...>
> send HoldEvents
> allow to start thread
> [SYNC] Message sent: continue
> STDOUT> [SYNC] Received message: continue
> STDOUT> starting thread
> no events were received
> send ReleaseEvents
> <...>
> 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.framework.jdwp.VmMirror.receiveCertainEvent(VmMirror.java:1728)
> 	at org.apache.harmony.jpda.tests.jdwp.VirtualMachine.HoldEventsTest.testHoldEvents001(HoldEventsTest.java:94)
> 	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:639)
> 	at org.apache.harmony.jpda.tests.framework.jdwp.VmMirror.receiveEvent(VmMirror.java:1712)
> 	at org.apache.harmony.jpda.tests.framework.jdwp.VmMirror.receiveEvent(VmMirror.java:1691)
> 	at org.apache.harmony.jpda.tests.framework.jdwp.VmMirror.receiveCertainEvent(VmMirror.java:1728)
> 	... 14 more
> It seems that THREAD_START event generated while events were held does not reach debugger
after events are released.
> I cannot reproduce this failure in standalone mode. I'm going to include this test into
exclude list for intermittent failures.

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