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

Insufficient error handling when CodeBuffer is exhausted

XMLWordPrintable

    • b05
    • aarch64

      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x000000010906423c, pid=26207, tid=22019
      #
      # JRE version: Java(TM) SE Runtime Environment 18.9 (11.0.19+1) (fastdebug build 11.0.19-ea+1-LTS-101)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM 18.9 (fastdebug 11.0.19-ea+1-LTS-101, compiled mode, compressed oops, g1 gc, bsd-aarch64)
      # Problematic frame:
      # V [libjvm.dylib+0x6423c] Assembler::emit_long(int)+0x34

      Current CompileTask:
      C2: 1602 487 b java.lang.String::indexOf (113 bytes)

      Stack: [0x000000016cadc000,0x000000016ccdf000], sp=0x000000016ccdac10, free space=2043k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.dylib+0x6423c] Assembler::emit_long(int)+0x34
      V [libjvm.dylib+0x641b0] Assembler::emit()+0x1c
      V [libjvm.dylib+0x67720] Assembler::b(unsigned char*)+0xb8
      V [libjvm.dylib+0x7bbd0c] MacroAssembler::string_indexof(RegisterImpl*, RegisterImpl*, RegisterImpl*, RegisterImpl*, RegisterImpl*, RegisterImpl*, RegisterImpl*, RegisterImpl*, RegisterImpl*, RegisterImpl*, int, RegisterImpl*, int)+0x14b8
      V [libjvm.dylib+0x4dc04] string_indexofLLNode::emit(CodeBuffer&, PhaseRegAlloc*) const+0x33c
      V [libjvm.dylib+0x8a6f20] Compile::fill_buffer(CodeBuffer*, unsigned int*)+0xe00
      V [libjvm.dylib+0x2ea25c] Compile::Code_Gen()+0x3c8
      V [libjvm.dylib+0x2e7cb4] Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool, bool, DirectiveSet*)+0xa18
      V [libjvm.dylib+0x1fdcf0] C2Compiler::compile_method(ciEnv*, ciMethod*, int, DirectiveSet*)+0x154
      V [libjvm.dylib+0x2fafec] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x434
      V [libjvm.dylib+0x2faa24] CompileBroker::compiler_thread_loop()+0x1ec
      V [libjvm.dylib+0xa2c568] JavaThread::thread_main_inner()+0x1f8
      V [libjvm.dylib+0xa2c020] JavaThread::run()+0x32c
      V [libjvm.dylib+0xa28b90] Thread::call_run()+0x90
      V [libjvm.dylib+0x896874] thread_native_entry(Thread*)+0x11c
      C [libsystem_pthread.dylib+0x7878] _pthread_start+0x140


      Test: TestStressCodeBuffers.java
      OS: macosx-aarch64-debug
      Where: 11.0.19-oracle

      #-----testresult-----
      description=file\:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-11.0.19+1-101/src.full/open/test/hotspot/jtreg/compiler/codecache/TestStressCodeBuffers.java
      elapsed=4570 0\:00\:04.570
      end=Tue Dec 13 12\:22\:05 GMT 2022
      environment=regtest
      execStatus=Failed. Unexpected exit from test [exit code\: 134]
      harnessLoaderMode=Classpath Loader
      harnessVariety=Full Bundle
      hostname=jpg-mac-arm-27.oraclecorp.com
      javatestOS=Mac OS X 11.6.6 (aarch64)
      javatestVersion=6.0-ea+b11-2020-05-19
      jtregVersion=jtreg 5.1 ea b01
      script=com.sun.javatest.regtest.exec.RegressionScript
      sections=script_messages build compile main
      start=Tue Dec 13 12\:22\:00 GMT 2022
      test=compiler/codecache/TestStressCodeBuffers.java
      testJDK=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-11.0.19+1-101/macosx-aarch64-debug.jdk/jdk-11.0.19/fastdebug

        1. 8298720.diff
          7 kB
        2. console_log.txt
          19 kB
        3. hs_err_pid26207.log
          89 kB
        4. replay_pid26207.log
          91 kB

            thartmann Tobias Hartmann
            jcherian Joe Cherian (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: