JDK-4958828 : JvmtiExport::post* functions can crash if multiple envs or tracing enabled
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: 5.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2003-11-24
  • Updated: 2004-02-03
  • Resolved: 2004-02-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 b37Fixed
Related Reports
Relates :  
Description
All trace messages (usages of EVT_TRACE and EVT_TRIG_TRACE macros)
in JvmtiExport.cpp need to re-examined as many of of them are using
oops rather than Handles. If there are multiple environments enabled
then a GC can occur when in the agent's callback and objects may 
when it gets to post the event for the next and subsequent environments.

Some examples :-

JvmtiExport::post_raw_breakpoint's use of 'method' 
JvmtiExport::post_class_load's use of of 'klass'
JvmtiExport::post_class_prepare's use of 'klass'
JvmtiExport::post_method_entry's use of 'method' 
JvmtiExport::post_method_exit's use of 'method'
JvmtiExport::post_single_step's use of 'method'
JvmtiExport::post_exception_throw's use of 'method' and 'exception'
JvmtiExport::notice_unwind_due_to_exception's use of 'method' 
JvmtiExport::post_field_access's use of 'method'
:
:

###@###.### 2003-11-24

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-beta2 FIXED IN: tiger-beta2 INTEGRATED IN: tiger-b37 tiger-beta2
14-06-2004

EVALUATION Multiple environments probably won't be too common so we can live with this for beta1. Need to fix for beta2. -- Fixed for b37. ###@###.### 2004-01-22
22-01-2004