United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6885308 The incorrect -XX:StackRedPages, -XX:StackShadowPages, -XX:StackYellowPages could cause VM crash
JDK-6885308 : The incorrect -XX:StackRedPages, -XX:StackShadowPages, -XX:StackYellowPages could cause VM crash

Details
Type:
Bug
Submit Date:
2009-09-24
Status:
Closed
Updated Date:
2011-03-08
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
hotspot
OS:
generic
Sub-Component:
runtime
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
hs17
Fixed Versions:
hs20 (b01)

Related Reports
Backport:
Backport:
Relates:

Sub Tasks

Description
Some combinations of -XX:StackRedPages, -XX:StackShadowPages, -XX:StackYellowPages causes VM crash. 
Also VM hangs if StackShadowPages=0.
VM should correctly report about incorrect values. Please note that these options are described in Sun official guide http://java.sun.com/javase/6/webnotes/trouble/TSG-VM/html/crashes.html.
Here is the example (I checked on solaris-i586 only):
-->java -XX:StackShadowPages=70
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (os_solaris.cpp:4865), pid=4199, tid=2
#  Error: guarantee((Solaris::min_stack_allowed >= (StackYellowPages+StackRedPages+StackShadowPages+BytesPerWord +1) * page_size),"need to increase Solaris::min_stack_allowed on this platform")
#
# JRE version: 7.0-b72
# Java VM: Java HotSpot(TM) Server VM (17.0-b01 mixed mode solaris-x86 )
# An error report file with more information is saved as:
# /tmp/xx/hs_err_pid4199.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Abort (core dumped)

                                    

Comments
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/f8c5d1bdaad4
                                     
2010-08-20
EVALUATION

Added check for shadow/red/yellow pages >0.  We should have changed that assert to a vm_exit_during_initialization() while we were doing this.
                                     
2010-08-20
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot/hotspot/rev/f8c5d1bdaad4
                                     
2010-08-23



Hardware and Software, Engineered to Work Together