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

SIGSEGV when supertype of an AOT-cached class is excluded

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • 25
    • 25
    • hotspot
    • Fix Understood

      It looks like there is another reincarnation of JDK-8352092 "-XX:AOTMode=record crashes with InstanceKlass in allocated state".
      open/test/jdk/java/util/Properties/StoreDeadlock.java crashes with

      # SIGSEGV (0xb) at pc=0x00007f9ad5d59b18, pid=10019, tid=10027
      #
      # JRE version: Java(TM) SE Runtime Environment (25.0) (fastdebug build 25-internal-LTS-2025-04-13-2355130.katya...)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-internal-LTS-2025-04-13-2355130.katya..., mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0xf89b18] InstanceKlass::can_be_verified_at_dumptime() const+0x38
      #

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

      Command Line: -XX:AOTMode=record -XX:AOTConfiguration=test.aotconf com.sun.javatest.regtest.agent.MainWrapper StoreDeadlock.jta

      Host: olegbox, Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz, 24 cores, 15G, Ubuntu 16.04.6 LTS
      Time: Sun Apr 13 17:07:12 2025 PDT elapsed time: 1.890956 seconds (0d 0h 0m 1s)

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

      Current thread (0x00007f9ad0252cf0): VMThread "VM Thread" [id=10027, stack(0x00007f9aa2b6c000,0x00007f9aa2c6c000) (1024K)]

      Stack: [0x00007f9aa2b6c000,0x00007f9aa2c6c000], sp=0x00007f9aa2c6a690, free space=1017k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0xf89b18] InstanceKlass::can_be_verified_at_dumptime() const+0x38 (constantPool.hpp:184)
      V [libjvm.so+0xf89bba] InstanceKlass::can_be_verified_at_dumptime() const+0xda (instanceKlass.cpp:2841)
      V [libjvm.so+0x66cd28] ArchiveBuilder::make_klasses_shareable()+0x638 (archiveBuilder.cpp:887)
      V [libjvm.so+0x15a6f53] VM_PopulateDumpSharedSpace::doit()+0x1f3 (metaspaceShared.cpp:661)
      V [libjvm.so+0x1b05d8f] VM_Operation::evaluate()+0x18f (vmOperations.cpp:74)
      V [libjvm.so+0x1b21696] VMThread::evaluate_operation(VM_Operation*)+0x156 (vmThread.cpp:282)
      V [libjvm.so+0x1b22613] VMThread::inner_execute(VM_Operation*)+0x423 (vmThread.cpp:426)
      V [libjvm.so+0x1b227b4] VMThread::loop()+0x84 (vmThread.cpp:492)
      V [libjvm.so+0x1b228c4] VMThread::run()+0x94 (vmThread.cpp:176)
      V [libjvm.so+0x1a18e76] Thread::call_run()+0xb6 (thread.cpp:231)
      V [libjvm.so+0x16bd5c8] thread_native_entry(Thread*)+0x128 (os_linux.cpp:877)

      siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x00000000000000e8

      Registers:
      RAX=0x00007f9ad70685c0, RBX=0x0000000000000000, RCX=0x0000000000000001, RDX=0x0000000000000001
      RSP=0x00007f9aa2c6a690, RBP=0x00007f9aa2c6a6b0, RSI=0x0000000000000000, RDI=0x0000000000000000
      R8 =0x0000000000000000, R9 =0x0000000000000001, R10=0x0000000000000000, R11=0x0000000000000005
      R12=0x0000000000000003, R13=0x00007f994870f658, R14=0x00007f9ad70b0f64, R15=0x00007f9ad7d1af90
      RIP=0x00007f9ad5d59b18, EFLAGS=0x0000000000010246, CSGSFS=0x002b000000000033, ERR=0x0000000000000004
        TRAPNO=0x000000000000000e


      when running with -XX:AOTMode=record -XX:AOTConfiguration=test.aotconf flags.

            iklam Ioi Lam
            epavlova Ekaterina Pavlova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: