Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6661016

Segmentation fault while compiling java code in eclipse

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 7
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rlewis Roger Lewis (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: