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

large objects cause a crash or unexpected exception

XMLWordPrintable

    • gc
    • b01
    • x86
    • generic, linux, windows_vista
    • Verified

        The attached test program showed a crash down or exception thrown on jdk6u4 but the problem could not be seen n in jdk6u3.

        Below are the results reported by one of our licensees.

        - The problem occurs against jdk 7(b59) on Linux/x86(64bit).
        - The problem occurs against jdk 6u13 on Linux/x86(32bit).
        - The problem does Not occurs against jdk 6u11, 6u14 on Windows/x86(32bit).
        - The problem will disappear if the number of fields in class TestObject100K_021B is decreased(remove all private long fields).
        - When -XX:+UseSerialGC is specified, there are some references pointing Eden region that should point Survivor or Tenured space. We suspect wrong operation exists in pointer update when copying objects.

        To reproduce:
        (1)unzip the attached.
        (2)javac *.java
        (3)java MainTest_021_02

        Test results:

        On jdk 6u3:
        [pattern 1]: no flags specified
        > java MainTest_021_02
        TestObject100K@55f33675
        Test Passed

        [pattern 2]: specifying -XX:+UseSerialGC
        > java -XX:+UseSerialGC MainTest_021_02
        TestObject100K@26ee7a14
        Test Passed

        On jdk 6u13: proglem occurred
        > java -version
        java version "1.6.0_13"
        Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
        Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)

        [pattern 1]: no flags specified
        > java MainTest_021_02
        #
        # An unexpected error has been detected by Java Runtime Environment:
        #
        # SIGSEGV (0xb) at pc=0x0000002a95c14587, pid=18243, tid=1076017504
        #
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode linux-amd64)
        # Problematic frame:
        # V [libjvm.so+0x589587]
        #
        # An error report file with more information is saved as:
        # /home/okada/for_sun/hs_err_pid18243.log
        #
        # If you would like to submit a bug report, please visit:
        # http://java.sun.com/webapps/bugreport/crash.jsp
        #
        abort

        [pattern 2]: specifying -XX:+UseSerialGC
        > java -XX:+UseSerialGC MainTest_021_02
        java.lang.NullPointerException
                at MainTest_021_02.main(MainTest_021_02.java:49)
        The name of failed tests for tracking purposes:
        gc/gctests/LargeObjects/large003
        gc/gctests/LargeObjects/large004
        gc/gctests/LargeObjects/large005

              jcoomes John Coomes (Inactive)
              xiaojuzh Xiaojun Zhang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: