United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6753795 HotSpot crash in strlen() when JVMTI is used
JDK-6753795 : HotSpot crash in strlen() when JVMTI is used

Details
Type:
Bug
Submit Date:
2008-09-29
Status:
Closed
Updated Date:
2011-03-08
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
hotspot
OS:
generic
Sub-Component:
compiler
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
hs14
Fixed Versions:
hs14 (b06)

Related Reports
Backport:
Backport:
Relates:

Sub Tasks

Description
HotSpot crashes in strlen() when JVMTI is used.

                                    

Comments
SUGGESTED FIX

The fix might be as simple as this:

--- a/src/share/vm/prims/jvmtiEnvBase.cpp	Thu Sep 25 12:50:51 2008 -0700
+++ b/src/share/vm/prims/jvmtiEnvBase.cpp	Mon Sep 29 09:09:00 2008 -0700
@@ -121,7 +121,7 @@ JvmtiEnvBase::JvmtiEnvBase() : _env_even
   JvmtiEventController::env_initialize((JvmtiEnv*)this);
 
 #ifdef JVMTI_TRACE
-  _jvmti_external.functions = strlen(TraceJVMTI)? &jvmtiTrace_Interface : &jvmti_Interface;
+  _jvmti_external.functions = TraceJVMTI != NULL ? &jvmtiTrace_Interface : &jvmti_Interface;
 #else
   _jvmti_external.functions = &jvmti_Interface;
 #endif
                                     
2008-09-29
EVALUATION

TraceJVMTI should be checked for not nullness.
                                     
2008-09-29
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/dbec32712472
                                     
2008-09-30



Hardware and Software, Engineered to Work Together