United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6619271 The -Xprintflags causes the VM to segv
JDK-6619271 : The -Xprintflags causes the VM to segv

Details
Type:
Bug
Submit Date:
2007-10-19
Status:
Closed
Updated Date:
2011-03-07
Project Name:
JDK
Resolved Date:
2011-03-07
Component:
hotspot
OS:
generic,windows_xp
Sub-Component:
runtime
CPU:
x86,generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs13 (b01)

Related Reports
Backport:
Backport:
Duplicate:

Sub Tasks

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
EVALUATION

The printing code needs null checks.
                                     
2008-04-03
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
                                     
2008-04-03



Hardware and Software, Engineered to Work Together