JDK-6661016 : Segmentation fault while compiling java code in eclipse
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2008-02-08
  • Updated: 2010-04-02
  • Resolved: 2008-06-26
Related Reports
Duplicate :  
Relates :  
Description
FULL PRODUCT VERSION :
OpenJDK bundle b24

$ openjdk/build/linux-i586/bin/java -version
openjdk version "1.7.0-internal"
OpenJDK Runtime Environment (build 1.7.0-internal-langel_05_jan_2008_15_17-b00)
OpenJDK Server VM (build 12.0-b01, mixed mode)

FULL OS VERSION :
uname -a
Linux  2.6.23.9-85.fc8 #1 SMP Fri Dec 7 15:49:59 EST 2007 i686 i686 i386 GNU/Linux

EXTRA RELEVANT SYSTEM CONFIGURATION :

This should not really matter.

$ ecj -version
Eclipse Java Compiler 0.780_R33x, 3.3.1, Copyright IBM Corp 2000, 2007. All rights reserved

A DESCRIPTION OF THE PROBLEM :
When importing a new package in eclipse, eclipse automatically refreshes and builds the package. During this process, the hotspot vm usually seg faults.

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

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

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Start eclipse, like so:
eclipse -consolelog -debug -vm openjdk/build/linux-i586/bin/java

(specifying "-vm path/to/libjvm.so" does not cause segfault- only when /path/to/bin/java)

1. Check out http://svn.mugshot.org/dumbhippo/trunk/
2. Import into project "trunk"
3. Close eclipse
4. run eclipse like above
5. delete project "trunk"
6. re-import project "trunk"
7. Compile (this should be done automatically by eclipse)

Steps 3-6 seem irrelevant, but I can more often reproduce the segfault by following those steps

EXPECTED VERSUS ACTUAL BEHAVIOR :
No seg fault.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0627229c, pid=18259, tid=9866128
#
# Java VM: OpenJDK Server VM (12.0-b01 mixed mode linux-x86)
# Problematic frame:
# V  [libjvm.so+0x27229c]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

...... FOR REST OF STACK TRACE, SEE ATTACHMENT 




REPRODUCIBILITY :
This bug can be reproduced often.

Comments
EVALUATION This is likely a duplicate of 6614100 which is likely a duplicate of 6659207.
07-03-2008