JDK-6753795 : HotSpot crash in strlen() when JVMTI is used
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs14
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-09-29
  • Updated: 2011-03-08
  • Resolved: 2011-03-08
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.
JDK 6 JDK 7 Other
6u14Fixed 7Fixed hs14Fixed
Related Reports
Relates :  
Description
HotSpot crashes in strlen() when JVMTI is used.

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

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

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
29-09-2008