-
Bug
-
Resolution: Fixed
-
P3
-
5.0
-
beta2
-
generic
-
generic
-
Verified
Name: ipR10196 Date: 02/05/2004
--------------------------------------
Test : nsk/sajdi/VirtualMachine/eventQueue/eventqueue001
nsk/sajdi/VirtualMachine/eventRequestManager/reqmgr001
nsk/sajdi/VirtualMachine/exit/exit001
VM : ClientVM, ServerVM
Mode : all
Platform : generic
OS : SunOS 5.8
JDK : 1.5.0 b32-b36
----------------------------------------
As SA-JDI is read-only implementation of JDI, several read-only
methods of VirtualMachine should throw VMCannotBeModifiedException.
However, the following read-only methods do not throw this exception:
VirtualMachine.eventQueue()
VirtualMachine.eventRequestManager()
VirtualMachine.exit()
All other read-only methods of VirtualMachine interface throw
expected VMCannotBeModifiedException.
This failure is easily reproduced with any of SA-JDI connectors on Solaris
On Linux all tests are crashed because of blocking bug:
4975660 SA-JDI: SAPIDAttachingConnector.attach() causes debugger VM crash on Linux
To reproduce this failure:
cd /net/jano.sfbay/export/disk20/GammaBase/Bugs/<this bug number>
sh build.sh $JAVA_HOME
sh run_eventqueue.sh [-pid | -core] [-g] [-v] $JAVA_HOME [JAVA_OPTS]
sh run_reqmgr.sh [-pid | -core] [-g] [-v] $JAVA_HOME [JAVA_OPTS]
sh run_exit.sh [-pid | -core] [-g] [-v] $JAVA_HOME [JAVA_OPTS]
where:
-pid - run test with pid attaching connector (default)
-core - run test with core attaching connector
-g - run test with java_g binaries
-v - run test in verbose mode
Here are typical tests output:
# ERROR: VirtualMachine.eventQueue() does NOT throw VMCannotBeModifiedException for
SA-JDI connector:
# ERROR: connector: sun.jvm.hotspot.jdi.SAPIDAttachingConnector
# ERROR: got eventQueue: sun.jvm.hotspot.jdi.EventQueueImpl@dc57db
# ERROR: VirtualMachine.eventRequestManager() does NOT throw
VMCannotBeModifiedException for SA-JDI connector:
# ERROR: connector: sun.jvm.hotspot.jdi.SAPIDAttachingConnector
# ERROR: got object: sun.jvm.hotspot.jdi.EventRequestManagerImpl@dc57db
# ERROR: VirtualMachine.exit() does NOT throw VMCannotBeModifiedException for SA-JDI
connector:
# ERROR: connector: sun.jvm.hotspot.jdi.SAPIDAttachingConnector
======================================================================