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

SIGSEGV in _platform_strcmp from compiler code

XMLWordPrintable

      Test: compiler/gcbarriers/TestZGCBarrierElision.java#id0

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x00007ff803a1d0b0, pid=4772, tid=26883
      #
      # JRE version: Java(TM) SE Runtime Environment (25.0+19) (fastdebug build 25-ea+19-LTS-2158)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-ea+19-LTS-2158, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-amd64)
      # Problematic frame:
      # C [libsystem_platform.dylib+0x10b0] _platform_strcmp+0x50
      #
      # Core dump will be written. Default location: core.4772
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #

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

      Command Line: -XX:MaxRAMPercentage=12.5 -Dtest.boot.jdk=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk/24/36/bundles/macos-x64/jdk-24_macos-x64_bin.tar.gz/jdk-24.jdk/Contents/Home -Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/d2398cde-9325-49c3-b030-8961a4f0a253-S42462/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/54d64c9e-f7bb-4558-9a9c-2a5af182738f/runs/504913e9-85b7-4b8f-ad4a-4cb02cc6ebad/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_2/tmp --patch-module=java.base=/System/Volumes/Data/mesos/work_dir/slaves/d2398cde-9325-49c3-b030-8961a4f0a253-S42462/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/54d64c9e-f7bb-4558-9a9c-2a5af182738f/runs/504913e9-85b7-4b8f-ad4a-4cb02cc6ebad/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_2/patches/java.base -Djava.security.policy=file:/System/Volumes/Data/mesos/work_dir/slaves/d2398cde-9325-49c3-b030-8961a4f0a253-S42462/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/54d64c9e-f7bb-4558-9a9c-2a5af182738f/runs/504913e9-85b7-4b8f-ad4a-4cb02cc6ebad/./testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_2/jtreg.policy com.sun.javatest.regtest.agent.AgentServer -id 1 -logfile /System/Volumes/Data/mesos/work_dir/slaves/d2398cde-9325-49c3-b030-8961a4f0a253-S42462/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/54d64c9e-f7bb-4558-9a9c-2a5af182738f/runs/504913e9-85b7-4b8f-ad4a-4cb02cc6ebad/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_2/jtData/agentServer.1.trace -allowSetSecurityManager -port 56762 -timeoutFactor 4.0

      Host: "Macmini7,1" x86_64 2800 MHz, 4 cores, 16G, Darwin 21.6.0, macOS 12.6.9 (21G726)
      Time: Fri Apr 11 12:45:47 2025 GMT elapsed time: 298.937260 seconds (0d 0h 4m 58s)

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

      Current thread (0x00007fea74062610): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=26883, stack(0x00007000025f5000,0x00007000026f5000) (1024K)]


      Current CompileTask:
      C2:298937 9412 4 com.sun.tools.javac.comp.Resolve::findIdentInPackage (22 bytes)

      Stack: [0x00007000025f5000,0x00007000026f5000], sp=0x00007000026f1c10, free space=1011k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      C [libsystem_platform.dylib+0x10b0] _platform_strcmp+0x50
      V [libjvm.dylib+0x63054e] DbgStrings::insert(char const*)+0x4e
      V [libjvm.dylib+0x6304c5] CodeBuffer::code_string(char const*)+0x15
      V [libjvm.dylib+0x710b1] ShouldNotReachHereNode::emit(C2_MacroAssembler*, PhaseRegAlloc*) const+0x21
      V [libjvm.dylib+0x1042262] PhaseOutput::fill_buffer(C2_MacroAssembler*, unsigned int*)+0x1312
      V [libjvm.dylib+0x103f865] PhaseOutput::Output()+0x8a5
      V [libjvm.dylib+0x662796] Compile::Code_Gen()+0x976
      V [libjvm.dylib+0x65f442] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x1d22
      V [libjvm.dylib+0x520ae0] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x200
      V [libjvm.dylib+0x681d92] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xc02
      V [libjvm.dylib+0x680d67] CompileBroker::compiler_thread_loop()+0x3d7
      V [libjvm.dylib+0xa908b0] JavaThread::thread_main_inner()+0x1b0
      V [libjvm.dylib+0x12f2c1c] Thread::call_run()+0xbc
      V [libjvm.dylib+0x102f983] thread_native_entry(Thread*)+0x123
      C [libsystem_pthread.dylib+0x64e1] _pthread_start+0x7d
      C [libsystem_pthread.dylib+0x1f6b] thread_start+0xf

        1. hs_err_pid4772.log
          122 kB
          Tobias Hartmann
        2. replay_pid4772.log
          447 kB
          Tobias Hartmann

            thartmann Tobias Hartmann
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: