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

Usage of UseHugeTLBFS, UseLargePagesInMetaspace and huge SurvivorAlignmentInBytes cause crashes in CMBitMapClosure::do_bit

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P1
    • Resolution: Fixed
    • Affects Version/s: 8u40, 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Environment:

      linux, +UseG1GC, +UseHugeTLBFS, +UseLargePagesInMetaspace, +SurvivorAlignmentInBytes=4k

    • Subcomponent:
      gc
    • Introduced In Build:
      b11
    • Introduced In Version:
    • Resolved In Build:
      b48
    • CPU:
      x86
    • OS:
      linux_2.6
    • Verification:
      Verified

      Backports

        Description

        Usage of HugeTLBFS, UseLargePagesInMetaspace and huge SurvivorAlignmentInBytes (4k) cause crashes in CMBitMapClosure::do_bit:

        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # SIGSEGV (0xb) at pc=0x00007facc84f9ee5, pid=9980, tid=140377864763136
        #
        # JRE version: Java(TM) SE Runtime Environment (8.0_40-b09) (build 1.8.0_40-ea-fastdebug-b09)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.40-b15-internal-201410152225.cccheung.jdk8u-hs-only-fastdebug mixed mode linux-amd64 compressed oops)
        # Problematic frame:
        # V [libjvm.so+0x3fbee5] oopDesc::size_given_klass(Klass*)+0x25
        #
        # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
        #
        # If you would like to submit a bug report, please visit:
        # http://bugreport.sun.com/bugreport/crash.jsp
        #
        ...
        Stack: [0x00007fac44b37000,0x00007fac44c38000], sp=0x00007fac44c36930, free space=1022k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0x3fbee5] oopDesc::size_given_klass(Klass*)+0x25
        V [libjvm.so+0x6c45b6] CMTask::scan_object(oop)+0xe6
        V [libjvm.so+0x6cff7b] CMBitMapClosure::do_bit(unsigned long)+0x13b
        V [libjvm.so+0x6c7593] CMTask::do_marking_step(double, bool, bool)+0x1073
        V [libjvm.so+0x6d0d4b] CMConcurrentMarkingTask::work(unsigned int)+0x19b
        V [libjvm.so+0x1027cf6] GangWorker::loop()+0x2b6
        V [libjvm.so+0xd67988] java_start(Thread*)+0x108

        Issue could be reproduced on linux (both 32 & 64 bit, both client and server, with mixed, comp and int mode) with 8u40 product & fastdebug bits starting from b11.
        Issue could not be reproduced with jdk9-b35 and jdk8u40-b10.

          Attachments

          1. 8062063.patch
            2 kB
          2. core.13291.zip
            23.65 MB
          3. hs_err_pid13291.log
            191 kB

            Issue Links

              Activity

                People

                • Assignee:
                  sjohanss Stefan Johansson
                  Reporter:
                  fzhinkin Filipp Zhinkin
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  10 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: