JDK-6983240 : guarantee((Solaris::min_stack_allowed >= (StackYellowPages+StackRedPages...) wrong
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: hs19,5.0,6u14
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,linux,solaris_10
  • CPU: generic,x86,sparc
  • Submitted: 2010-09-08
  • Updated: 2012-10-08
  • Resolved: 2010-11-12
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
6u25Fixed 7Fixed hs20Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
From email:

This customer has been testing it.. [increasing StackShadowPages]
The value of 4 worked OK but when they tried 5, the JVM crashed with a hs_err log.
The error was
#  Internal Error (os_solaris.cpp:4840), pid=6555, 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")

They had -Xss set to 1024k.
ulimit in the shell was 8192.
What is the min_stack_allowed parameter?

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/build/hotspot/rev/b6aedd1acdc0
04-12-2010

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/b6aedd1acdc0
07-10-2010

EVALUATION min_stack_allowed is a constant in the VM to document the minimum thread stack size that the VM needs to run. The user gets an error during initialization if a smaller stack size is specified. There was an assert that min_stack_allowed is greater than the size specified for StackShadowPages, as well as StackRedPages and StackYellowPages. The assert should have been that the stack specified with -Xss was big enough to allow for these stack overflow protection pages or the minimum size, whichever is greater.
21-09-2010