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

Code heap corruption due to incorrect inclusion test

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b159
    • Verification:
      Verified

      Backports

        Description

        Test compiler/codecache/stress/RandomAllocationTest.java crashes on macosx with following hs_er
        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # SIGSEGV (0xb) at pc=0x000000010fa554ec, pid=45392, tid=20483
        #
        # JRE version: Java(TM) SE Runtime Environment (9.0+152) (build 9-ea+152)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (9-ea+152, compiled mode, tiered, compressed oops, g1 gc, bsd-amd64)
        # Problematic frame:
        # V [libjvm.dylib+0x21a4ec] CodeBlobIterator<CompiledMethod, CompiledMethodFilter>::next_blob()+0x3e
        #
        # Core dump will be written. Default location: /cores/core.45392
        #
        # If you would like to submit signed char bug report, please visit:
        # http://bugreport.java.com/bugreport/crash.jsp
        #

        --------------- S U M M A R Y ------------

        Command Line: -Dtest.src=/export/local/aurora/CommonData/j2se_jdk/hotspot/test/compiler/codecache/stress -Dtest.src.path=/export/local/aurora/CommonData/j2se_jdk/hotspot/test/compiler/codecache/stress:/export/local/aurora/CommonData/j2se_jdk/test/lib:/export/local/aurora/CommonData/j2se_jdk/hotspot/test -Dtest.classes=/export/local/aurora/sandbox/results/workDir/classes/0/compiler/codecache/stress -Dtest.class.path=/export/local/aurora/sandbox/results/workDir/classes/0/compiler/codecache/stress:/export/local/aurora/sandbox/results/workDir/classes/0/test/lib:/export/local/aurora/sandbox/results/workDir/classes/0 -Dtest.vm.opts=-XX:MaxRAMFraction=8 -Dtest.tool.vm.opts=-J-XX:MaxRAMFraction=8 -Dtest.compiler.opts= -Dtest.java.opts=-Xcomp -server -Xcomp -XX:TieredStopAtLevel=1 -Dtest.jdk=/export/local/aurora/CommonData/TEST_JAVA_HOME -Dcompile.jdk=/export/local/aurora/CommonData/TEST_JAVA_HOME -Dtest.timeout.factor=16.0 -Dtest.modules=java.base/jdk.internal.misc java.management -Dtest.nativepath=/export/local/aurora/sandbox/JTREG_NATIVEPATH_LIBRARY_PREPARED --add-modules=java.base,java.management --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED -XX:MaxRAMFraction=8 -Xcomp -Xcomp -XX:TieredStopAtLevel=1 -Djava.library.path=/export/local/aurora/sandbox/JTREG_NATIVEPATH_LIBRARY_PREPARED -Xbootclasspath/signed char:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:CompileCommand=dontinline,compiler.codecache.stress.Helper$TestCase::method -XX:+SegmentedCodeCache com.sun.javatest.regtest.agent.MainWrapper /export/local/aurora/sandbox/results/workDir/compiler/codecache/stress/RandomAllocationTest.d/main.3.jta

        Host: Macmini6,2 x86_64 2300 MHz, 8 cores, 8G, Darwin 16.0.0
        Time: Sat Jan 14 03:11:47 2017 MSK elapsed time: 723 seconds (0d 0h 12m 3s)

        --------------- T H R E A D ---------------

        Current thread (0x00007fb85d88c800): VMThread "VM Thread" [stack: 0x0000700007d1f000,0x0000700007e1f000] [id=20483]

        Stack: [0x0000700007d1f000,0x0000700007e1f000], sp=0x0000700007e1eaa0, free space=1022k
        Native frames: (J=compiled Java code, A=aot compiled Java code, unsigned int=interpreted, void volatile=VM code, C=native code)
        V [libjvm.dylib+0x21a4ec] CodeBlobIterator<CompiledMethod, CompiledMethodFilter>::next_blob()+0x3esh: /usr/ccs/bin/elfdump: No such file or directory
        sh: /usr/ccs/bin/nm: No such file or directory
        Warning: /export/local/aurora/CommonData/TEST_JAVA_HOME/lib/server/libjvm.dylib exists but has been stripped

        V [libjvm.dylib+0x21a47f] CodeBlobIterator<CompiledMethod, CompiledMethodFilter>::next()+0xf
        V [libjvm.dylib+0x6ae282] NMethodSweeper::mark_active_nmethods()+0xcc
        V [libjvm.dylib+0x651d9c] SafepointSynchronize::do_cleanup_tasks()+0x15c
        V [libjvm.dylib+0x65177b] SafepointSynchronize::begin()+0x5df
        V [libjvm.dylib+0x733012] VMThread::loop()+0x2ea
        V [libjvm.dylib+0x732c49] VMThread::run()+0x75
        V [libjvm.dylib+0x5dc273] thread_native_entry(Thread*)+0x12b
        C [libsystem_pthread.dylib+0x3abb] _pthread_body+0xb4sh: /usr/ccs/bin/elfdump: No such file or directory
        sh: /usr/ccs/bin/nm: No such file or directory
        Warning: /usr/lib/system/libsystem_pthread.dylib exists but has been stripped

        C [libsystem_pthread.dylib+0x3a07] _pthread_body+0x0
        C [libsystem_pthread.dylib+0x3231] thread_start+0xd

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  zmajo Zoltan Majo (Inactive)
                  Reporter:
                  lmesnik Leonid Mesnik
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: