JDK-4301666 : JVMDI: GetMonitorInfo() returns wrong error code
  • Type: Bug
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 1.3.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 1999-12-23
  • Updated: 2000-02-19
  • Resolved: 2000-02-19
Related Reports
Duplicate :  
Description

Name: icC57033			Date: 12/23/99


classic VM 1.3fcs-R (both Solaris and WinNT) fails test
	src/nsk/jvmdi/GetMonitorInfo/getmoninfo002
from
	testbase_nsk
Hotspot VM passes the test.

To reproduce the bug run Korn shell script
	doit.ksh <jdk_root_directory> 
in
	/net/sqesvr/vsn/GammaBase/Bugs/<this bug number>

Running on HS 1.3fcs-R the test outputs:
1) Solaris
-------------------------- java ---------------------------------
Setting getmoninfo002_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
can_watch_field_modification=0
can_watch_field_access=0
can_get_bytecodes=1
can_get_synthetic_attribute=1
can_get_owned_monitor_info=0
can_get_current_contended_monitor=0
can_get_monitor_info=0
######## JVMDI_EVENT_VM_DEATH ########
exit 95
-------------------------- java_g -------------------------------
Setting getmoninfo002_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
can_watch_field_modification=0
can_watch_field_access=0
can_get_bytecodes=1
can_get_synthetic_attribute=1
can_get_owned_monitor_info=0
can_get_current_contended_monitor=0
can_get_monitor_info=0
######## JVMDI_EVENT_VM_DEATH ########
exit 95
-------------------------- java -classic ------------------------
Setting getmoninfo002_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
can_watch_field_modification=1
can_watch_field_access=1
can_get_bytecodes=1
can_get_synthetic_attribute=0
can_get_owned_monitor_info=1
can_get_current_contended_monitor=1
can_get_monitor_info=1
Wrong results from GetMonitorInfo(NULL, &infoPtr)
        error: JVMDI_ERROR_NONE
######## JVMDI_EVENT_VM_DEATH ########
exit 97

3) WinNT
-------------------------- java ---------------------------------
Setting getmoninfo002_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
can_watch_field_modification=0
can_watch_field_access=0
can_get_bytecodes=1
can_get_synthetic_attribute=1
can_get_owned_monitor_info=0
can_get_current_contended_monitor=0
can_get_monitor_info=0
######## JVMDI_EVENT_VM_DEATH ########
exit 95
-------------------------- java_g -------------------------------
Setting getmoninfo002_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
can_watch_field_modification=0
can_watch_field_access=0
can_get_bytecodes=1
can_get_synthetic_attribute=1
can_get_owned_monitor_info=0
can_get_current_contended_monitor=0
can_get_monitor_info=0
######## JVMDI_EVENT_VM_DEATH ########
exit 95
-------------------------- java -classic ------------------------
Setting getmoninfo002_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
can_watch_field_modification=1
can_watch_field_access=1
can_get_bytecodes=1
can_get_synthetic_attribute=0
can_get_owned_monitor_info=1
can_get_current_contended_monitor=1
can_get_monitor_info=1
Wrong results from GetMonitorInfo(NULL, &infoPtr)
	error: JVMDI_ERROR_NONE
######## JVMDI_EVENT_VM_DEATH ########
exit 97


======================================================================

Comments
EVALUATION Need to add a NOT_NULL(object) to jvmdi_GetMonitorInfo. We should check for similar omissions elsewhere. gordon.hirsch@eng 2000-01-03
03-01-2000