JDK-6708395 : HotSpot crashes when "server" is set as default
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2008-05-29
  • Updated: 2011-02-16
  • Resolved: 2008-11-11
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.6.0"
OpenJDK  Runtime Environment (build 1.6.0-b09)
OpenJDK Server VM (build 1.6.0-b09, mixed mode)

FULL OS VERSION :
Linux towel.yyz.redhat.com 2.6.25-14.fc9.i686 #1 SMP Thu May 1 06:28:41 EDT 2008 i686 i686 i386 GNU/Linux


A DESCRIPTION OF THE PROBLEM :
Running ecj with JAVA_HOME set to openjdk causes a segfault. It only segfaults because the default vm used is "server". Works fine when "-client" is passed to java.

This also fails with openjdk6. This is not an issue with IcedTea. 
Note, if the "nowarn" flag is not used, it works... or if "-client" is 
used it works.


THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Did not try

THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Yes

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Fails with eclipse-ecj

$ sudo rpm -q eclipse-ecj
eclipse-ecj-3.3.2-11.fc9.i386

Can be fixed by adding "-client" to /usr/bin/ecj - forces hotspot to use client vm instead of server.

EXPECTED VERSUS ACTUAL BEHAVIOR :
Should not segfault.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
Attached seperatly


REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
Add -client option in /usr/bin/ecj

Comments
EVALUATION This is a duplicate on 6614100 which was fixed in openjdk6 build 11.
11-11-2008

EVALUATION Please decode this hs_err_pid27310.log with the hs_err perl tool attached.
11-11-2008