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

SEGV crash in RunTimeClassInfo::klass

XMLWordPrintable

    • b02
    • aarch64
    • linux

        Test: runtime/cds/appcds/loaderConstraints/DynamicLoaderConstraintsTest.java#custom-cl-zgc

        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # SIGSEGV (0xb) at pc=0x0000ffff7ffcf444, pid=132223, tid=132269
        #
        # JRE version: Java(TM) SE Runtime Environment (24.0+24) (fastdebug build 24-ea+24-2848)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 24-ea+24-2848, compiled mode, sharing, compressed class ptrs, z gc, linux-aarch64)
        # Problematic frame:
        # V [libjvm.so+0x1462444] RunTimeClassInfo::klass() const+0x64
        #
        # Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /opt/mach5/mesos/work_dir/slaves/ccd15758-3c17-44a6-a32a-40698b0633d8-S14599/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/b8daf044-66ba-4cd0-b7b6-c150a521edd4/runs/a82d2a37-9071-44a3-a7d1-956a90ad9e1f/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_tier2_runtime/scratch/0/core.132223)
        #
        # 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=6.25 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/23/37/bundles/linux-aarch64/jdk-23_linux-aarch64_bin.tar.gz/jdk-23 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/ccd15758-3c17-44a6-a32a-40698b0633d8-S14599/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/b8daf044-66ba-4cd0-b7b6-c150a521edd4/runs/a82d2a37-9071-44a3-a7d1-956a90ad9e1f/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_tier2_runtime/tmp -Xcomp -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -XX:-TieredCompilation -XX:+VerifyOops -XX:ArchiveClassesAtExit=/opt/mach5/mesos/work_dir/slaves/ccd15758-3c17-44a6-a32a-40698b0633d8-S14599/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/b8daf044-66ba-4cd0-b7b6-c150a521edd4/runs/a82d2a37-9071-44a3-a7d1-956a90ad9e1f/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_tier2_runtime/scratch/0/appcds-15h11m37s273.jsa -Xshare:auto --add-modules=java.base,jdk.httpserver --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED -Xlog:cds=debug,class+load,class+loader+constraints -XX:+UseZGC -XX:ZCollectionInterval=0.01 CustomAppLoader /opt/mach5/mesos/work_dir/slaves/ccd15758-3c17-44a6-a32a-40698b0633d8-S14599/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/b8daf044-66ba-4cd0-b7b6-c150a521edd4/runs/a82d2a37-9071-44a3-a7d1-956a90ad9e1f/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_tier2_runtime/scratch/0/loader_constraints.jar LoaderConstraintsApp 1

        Host: AArch64, 8 cores, 30G, Oracle Linux Server release 8.9
        Time: Sat Nov 9 15:11:53 2024 UTC elapsed time: 16.276532 seconds (0d 0h 0m 16s)

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

        Current thread (0x0000ffff783edd60): JavaThread "Common-Cleaner" daemon [_thread_in_vm, id=132269, stack(0x0000ffff5cb25000,0x0000ffff5cd23000) (2040K)]

        Stack: [0x0000ffff5cb25000,0x0000ffff5cd23000], sp=0x0000ffff5cd20120, free space=2028k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0x1462444] RunTimeClassInfo::klass() const+0x64 (archiveBuilder.hpp:294)
        V [libjvm.so+0x15afb44] SystemDictionaryShared::find_builtin_class(Symbol*)+0x54 (allocation.hpp:283)
        V [libjvm.so+0x15aa3a0] SystemDictionary::load_instance_class_impl(Symbol*, Handle, JavaThread*)+0x49c (systemDictionary.cpp:1285)
        V [libjvm.so+0x15a8124] SystemDictionary::load_instance_class(Symbol*, Handle, JavaThread*)+0x24 (systemDictionary.cpp:1360)
        V [libjvm.so+0x15a8958] SystemDictionary::resolve_instance_class_or_null(Symbol*, Handle, Handle, JavaThread*)+0x6a8 (systemDictionary.cpp:716)
        V [libjvm.so+0x15a9230] SystemDictionary::resolve_or_fail(Symbol*, Handle, Handle, bool, JavaThread*)+0x30 (systemDictionary.cpp:335)
        V [libjvm.so+0x921760] ConstantPool::klass_at_impl(constantPoolHandle const&, int, JavaThread*)+0x15c (constantPool.cpp:599)
        V [libjvm.so+0x9b2d2c] Deoptimization::load_class_by_index(constantPoolHandle const&, int, JavaThread*)+0x18c (constantPool.hpp:382)
        V [libjvm.so+0x9b55e8] Deoptimization::uncommon_trap_inner(JavaThread*, int)+0x7b8 (deoptimization.cpp:2240)
        V [libjvm.so+0x9b8c6c] Deoptimization::uncommon_trap(JavaThread*, int, int)+0x1c (deoptimization.cpp:2613)
        Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
        v ~UncommonTrapBlob 0x0000ffff6c6c722c
        J 4418 c2 java.io.RandomAccessFile.close()V java.base@24-ea (69 bytes) @ 0x0000ffff6c806268 [0x0000ffff6c805e40+0x0000000000000428]
        J 4417 c2 java.util.zip.ZipFile$Source.close()V java.base@24-ea (48 bytes) @ 0x0000ffff6c7f8714 [0x0000ffff6c7f8680+0x0000000000000094]
        J 4414 c2 java.util.zip.ZipFile$Source.release(Ljava/util/zip/ZipFile$Source;)V java.base@24-ea (50 bytes) @ 0x0000ffff6c803450 [0x0000ffff6c803180+0x00000000000002d0]
        j java.util.zip.ZipFile$CleanableResource.run()V+196 java.base@24-ea
        J 1911 c2 jdk.internal.ref.CleanerImpl$PhantomCleanableRef.performCleanup()V java.base@24-ea (10 bytes) @ 0x0000ffff6ca0b8d8 [0x0000ffff6ca0b840+0x0000000000000098]
        J 1907 c2 jdk.internal.ref.PhantomCleanable.clean()V java.base@24-ea (16 bytes) @ 0x0000ffff6c9f405c [0x0000ffff6c9f3f80+0x00000000000000dc]
        J 1756 c2 jdk.internal.ref.CleanerImpl.run()V java.base@24-ea (70 bytes) @ 0x0000ffff6c9da450 [0x0000ffff6c9da380+0x00000000000000d0]
        J 1754 c2 jdk.internal.misc.InnocuousThread.run()V java.base@24-ea (24 bytes) @ 0x0000ffff6c9c6e1c [0x0000ffff6c9c6d00+0x000000000000011c]
        v ~StubRoutines::call_stub 0x0000ffff6c6a71b0

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

              matsaave Matias Saavedra Silva
              dholmes David Holmes
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: