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

SIGSEGV on macOS in PcDescContainer::find_pc_desc_internal

XMLWordPrintable

      When running hotspot :tier3 jtreg tests, we crashed a few times in test compiler/compilercontrol/TestCompilerDirectivesCompatibilityFlag.java .
      Crash occurs on macOS (we have seen it on aarch64 and also on x86_64); issue was observed 3 times since May 2024.
      Example :

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x00000001021ab270, pid=65996, tid=27395
      #


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

      Current thread (0x0000000116013e00): JavaThread "C1 CompilerThread1" daemon [_thread_in_vm, id=27395, stack(0x0000000171b38000,0x0000000171d3b000) (2060K)]


      Current CompileTask:
      C1:1002 378 3 java.util.zip.ZipUtils::CENNAM (9 bytes)

      Stack: [0x0000000171b38000,0x0000000171d3b000], sp=0x0000000171d39e90, free space=2055k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.dylib+0x827270] PcDescContainer::find_pc_desc_internal(unsigned char*, bool, unsigned char*, PcDesc*, PcDesc*)+0x40
      V [libjvm.dylib+0x828310] nmethod::has_code_comment(unsigned char*, unsigned char*)+0x60
      V [libjvm.dylib+0x824a0c] nmethod::decode2(outputStream*) const+0x25c
      V [libjvm.dylib+0x824730] nmethod::print_nmethod(bool)+0xfc
      V [libjvm.dylib+0x826238] nmethod::post_compiled_method(CompileTask*)+0x104
      V [libjvm.dylib+0x239aa0] ciEnv::register_method(ciMethod*, int, CodeOffsets*, int, CodeBuffer*, int, OopMapSet*, ExceptionHandlerTable*, ImplicitExceptionTable*, AbstractCompiler*, bool, bool, bool, bool, int)+0x3c8
      V [libjvm.dylib+0x17f530] Compilation::compile_method()+0x24c
      V [libjvm.dylib+0x17f774] Compilation::Compilation(AbstractCompiler*, ciEnv*, ciMethod*, int, BufferBlob*, bool, DirectiveSet*)+0x190
      V [libjvm.dylib+0x1810e0] Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x60
      V [libjvm.dylib+0x2cd1ec] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x3b8
      V [libjvm.dylib+0x2ccc34] CompileBroker::compiler_thread_loop()+0x3e4
      V [libjvm.dylib+0x4d9aa8] JavaThread::thread_main_inner()+0x98
      V [libjvm.dylib+0xa3336c] Thread::call_run()+0xc8
      V [libjvm.dylib+0x856ea0] thread_native_entry(Thread*)+0x118
      C [libsystem_pthread.dylib+0x6f94] _pthread_start+0x88

      siginfo: si_signo: 11 (SIGSEGV), si_code: 2 (SEGV_ACCERR), si_addr: 0x00005ffffffffff8

            Unassigned Unassigned
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: