JDK-7114250 : java exit with error code on solaris when specified stack size less than actually available
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 5.0u34
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • OS: solaris
  • CPU: generic
  • Submitted: 2011-11-21
  • Updated: 2014-11-25
  • Resolved: 2011-11-25
Related Reports
Relates :  
Description
On Solaris platform execution of java terminates with error message and return code 1 when stack size specified -Xss<size> less than actually available.
For example:

ulimit -s 2048
jdk1.5.0_34/bin/java -Xss2059 -version

will print out next message:
Java HotSpot(TM) Server VM warning: main thread has 0K less stack size
Stack size of 2064 Kb exceeds current limit of 2048 Kb.
(Stack sizes are rounded up to a multiple of the system page size.)
See limit(1) to increase the stack size limit.

But on linux platform version information will be printed out. Also there are no issues with JDK 6.

This issue looks similar to CR 6704367.