-
Bug
-
Resolution: Fixed
-
P3
-
1.4.2, 5.0
-
b32
-
generic
-
generic
-
Verified
Name: ipR10196 Date: 01/13/2003
The latest JDWP spec in JDK 1.4.2 for Event Command Set / Composite
Command related to VM_DEATH event says, that VM_DEATH event is always
sent with singleton event packet:
Composite Command (100)
Several events may occur at a given time in the target VM.
For example, there may be more than one breakpoint request
for a given location or you might single step to the same
location as a breakpoint request. These events are delivered
together as a composite event. For uniformity, a composite
event is always used to deliver events, even if there is only
one event to report.
The events that are grouped in a composite event are restricted
in the following ways:
Always singleton composite events:
VM Start Event
VM Death Event
<...>
However the tests for VM_DEATH event show that this event may be
groupped with other VM_DEATH event requested by additional requests.
This is confirmed also by JDI spec for VMDeathEvent and EventSet
interfaces.
Looks like JDWP spec for VM_DEATH event is outdated since JDK 1.4 where
an ability to explicitely request VM_DEATH event is introduced.
This misleading causes the following JDWP test of testbase_nsk to fail
since JDK 1.4.0:
nsk/jdwp/Event/VM_DEATH/vmdeath002
======================================================================
The bug exit in 1.4.2 JDK, the test nsk/jdwp/Event/VM_DEATH/vmdeath002 fail:
[2008-08-06T17:44:14.93]
[2008-08-06T17:44:14.93] #>
[2008-08-06T17:44:14.97] #> SUMMARY: Following errors occured
[2008-08-06T17:44:14.97] #> during test execution:
[2008-08-06T17:44:14.97] #>
[2008-08-06T17:44:14.97] # ERROR: Invalid number of events in tested event packet: 2 (expected: 1)
[2008-08-06T17:44:14.97] # ERROR: Unexpected requestID of event 1 in tested event packet: 0 (expected: 2)
[2008-08-06T17:44:14.97] # ERROR: TEST FAILED
[2008-08-06T17:44:14.97] # Test level exit status: 97
[2008-08-06T17:44:16.00]
http://vice.russia/gtee/1.4.2_17/b06/142_VM/32/vm/solaris-sparc/vm-solaris-sparc_11B9400185A2008-08-05-21-53-24/stt-robot.SunOS.sparc/vmdeath002/vmdeath002.log