JDK-6619271 : The -Xprintflags causes the VM to segv
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,windows_xp
  • CPU: generic,x86
  • Submitted: 2007-10-19
  • Updated: 2011-03-07
  • Resolved: 2011-03-07
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 hs13Fixed
Related Reports
Duplicate :  
Description
The -Xprintflags is broken.

See comments for  further description.
This also causes 

% jinfo -flags <flag>

to crash the target jvm when <flag> is an argument which happens to be
a string variable that is empty in the target jvm.

Here's a script from ###@###.### that illustrates
the crash:-

#!/bin/csh
set CRASH_JVM = "\
CompileCommand \
CompileCommandFile \
ErrorFile \
HPILibPath \
PerfDataSaveFile \
"
foreach i ( $CRASH_JVM )
  if ( $i != "" ) then
     jinfo -flag $i $1
  endif
end

Comments
SUGGESTED FIX repo: /net/jano2.sfbay/export2/hotspot/hg/hotspot-comp.clean changeset: 88:38a50dd839cf user: never date: Thu Apr 03 10:20:44 2008 -0700 description: 6619271: The -Xprintflags causes the VM to segv Summary: add null checks Reviewed-by: jrose, kvn files: src/share/vm/runtime/globals.cpp
03-04-2008

EVALUATION The printing code needs null checks.
03-04-2008