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

SIGSEGV in LibraryCallKit::inline_string_copy due to constant NULL src argument

    XMLWordPrintable

Details

    • b07

    Backports

      Description

        Test crashes with Xcomp:
        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffa45ed537d, pid=47852, tid=3212
        #
        # JRE version: Java(TM) SE Runtime Environment (20.0+27) (build 20-ea+27-2213)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (20-ea+27-2213, compiled mode, sharing, compressed oops, compressed class ptrs, parallel gc, windows-amd64)
        # Problematic frame:
        # V [jvm.dll+0x5b537d] LibraryCallKit::inline_string_copy+0xdd
        #
        # Core dump will be written. Default location: C:\sb\prod\1670707063\testoutput\test-support\jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese30M_java\scratch\0\hs_err_pid47852.mdmp
        #
        # 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: -Xbootclasspath/a:C:\sb\prod\1670707063\testoutput\test-support\jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese30M_java\scratch\0\wb.jar -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Djava.security.manager=allow -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=c:\ade\mesos\work_dir\jib-master\install\jdk\19\36\bundles\windows-x64\jdk-19_windows-x64_bin.zip\jdk-19 -Djava.io.tmpdir=c:\sb\prod\1670707063\testoutput\test-support\jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese30M_java\tmp -XX:+CreateCoredumpOnCrash -XX:+UseParallelGC -Xcomp -XX:-TieredCompilation -XX:MaxRAMPercentage=50 -Djava.net.preferIPv6Addresses=false -XX:+DisplayVMOutputToStderr -Xlog:gc*,gc+heap=debug:gc.log:uptime,timemillis,level,tags -XX:+DisableExplicitGC -XX:+StartAttachListener -Xlog:monitorinflation=info:file=../monitorinflation.log::filesize=500m -Djava.io.tmpdir=C:\sb\prod\1670707063\testoutput\test-support\jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese30M_java\scratch\0/java.io.tmpdir -Duser.home=C:\sb\prod\1670707063\testoutput\test-support\jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese30M_java\scratch\0/user.home -agentpath:c:\ade\mesos\work_dir\jib-master\install\jdk-20+27-2213\windows-x64.test\hotspot\jtreg\native\JvmtiStressModule.dll -XX:NativeMemoryTracking=detail -Djdk.test.lib.random.seed=-6686853612947720509 applications.kitchensink.process.stress.Main C:\sb\prod\1670707063\testoutput\test-support\jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese30M_java\scratch\0\kitchensink.final.properties

        Host: AMD EPYC 7J13 64-Core Processor , 12 cores, 23G, Windows Server 2022 , 64 bit Build 20348 (10.0.20348.740)
        Time: Sat Dec 10 21:54:47 2022 Etc elapsed time: 1411.367917 seconds (0d 0h 23m 31s)

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

        Current thread (0x000001f678bf9840): JavaThread "C2 CompilerThread3" daemon [_thread_in_native, id=3212, stack(0x000000a604300000,0x000000a604400000)]


        Current CompileTask:
        C2:1411367 516956 !b javasoft.sqe.tests.api.java.lang.String.CopyValueOfTests::String0039 (32 bytes)

        Stack: [0x000000a604300000,0x000000a604400000], sp=0x000000a6043fc260, free space=1008k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [jvm.dll+0x5b537d] LibraryCallKit::inline_string_copy+0xdd (library_call.cpp:1366)
        V [jvm.dll+0x5bb4bd] LibraryCallKit::try_to_inline+0x64d (library_call.cpp:316)
        V [jvm.dll+0x5a6e63] LibraryIntrinsic::generate+0x93 (library_call.cpp:114)
        V [jvm.dll+0x2f56fc] Parse::do_call+0x53c (doCall.cpp:662)
        V [jvm.dll+0x6d4d22] Parse::do_one_bytecode+0x2f62 (parse2.cpp:2705)
        V [jvm.dll+0x6ccda6] Parse::do_one_block+0x176 (parse1.cpp:1560)
        V [jvm.dll+0x6cc3f1] Parse::do_all_blocks+0x341 (parse1.cpp:710)
        V [jvm.dll+0x6ca5f4] Parse::Parse+0x7c4 (parse1.cpp:616)
        V [jvm.dll+0x1d1cec] ParseGenerator::generate+0x8c (callGenerator.cpp:103)
        V [jvm.dll+0x2f56fc] Parse::do_call+0x53c (doCall.cpp:662)
        V [jvm.dll+0x6d4d22] Parse::do_one_bytecode+0x2f62 (parse2.cpp:2705)
        V [jvm.dll+0x6ccda6] Parse::do_one_block+0x176 (parse1.cpp:1560)
        V [jvm.dll+0x6cc3f1] Parse::do_all_blocks+0x341 (parse1.cpp:710)
        V [jvm.dll+0x6ca5f4] Parse::Parse+0x7c4 (parse1.cpp:616)
        V [jvm.dll+0x1d1cec] ParseGenerator::generate+0x8c (callGenerator.cpp:103)
        V [jvm.dll+0x2f56fc] Parse::do_call+0x53c (doCall.cpp:662)
        V [jvm.dll+0x6d4d22] Parse::do_one_bytecode+0x2f62 (parse2.cpp:2705)
        V [jvm.dll+0x6ccda6] Parse::do_one_block+0x176 (parse1.cpp:1560)
        V [jvm.dll+0x6cc3f1] Parse::do_all_blocks+0x341 (parse1.cpp:710)
        V [jvm.dll+0x6ca5f4] Parse::Parse+0x7c4 (parse1.cpp:616)
        V [jvm.dll+0x1d1cec] ParseGenerator::generate+0x8c (callGenerator.cpp:103)
        V [jvm.dll+0x2f56fc] Parse::do_call+0x53c (doCall.cpp:662)
        V [jvm.dll+0x6d4d22] Parse::do_one_bytecode+0x2f62 (parse2.cpp:2705)
        V [jvm.dll+0x6ccda6] Parse::do_one_block+0x176 (parse1.cpp:1560)
        V [jvm.dll+0x6cc3f1] Parse::do_all_blocks+0x341 (parse1.cpp:710)
        V [jvm.dll+0x6ca5f4] Parse::Parse+0x7c4 (parse1.cpp:616)
        V [jvm.dll+0x1d1cec] ParseGenerator::generate+0x8c (callGenerator.cpp:103)
        V [jvm.dll+0x2f56fc] Parse::do_call+0x53c (doCall.cpp:662)
        V [jvm.dll+0x6d4d22] Parse::do_one_bytecode+0x2f62 (parse2.cpp:2705)
        V [jvm.dll+0x6ccda6] Parse::do_one_block+0x176 (parse1.cpp:1560)
        V [jvm.dll+0x6cc3f1] Parse::do_all_blocks+0x341 (parse1.cpp:710)
        V [jvm.dll+0x6ca5f4] Parse::Parse+0x7c4 (parse1.cpp:616)
        V [jvm.dll+0x1d1cec] ParseGenerator::generate+0x8c (callGenerator.cpp:103)
        V [jvm.dll+0x24a8a3] Compile::Compile+0x9e3 (compile.cpp:760)
        V [jvm.dll+0x1ceae1] C2Compiler::compile_method+0xc1 (c2compiler.cpp:116)
        V [jvm.dll+0x25a4bb] CompileBroker::invoke_compiler_on_method+0x73b (compileBroker.cpp:2240)
        V [jvm.dll+0x258b90] CompileBroker::compiler_thread_loop+0x250 (compileBroker.cpp:1917)
        V [jvm.dll+0x3f35e5] JavaThread::run+0x105 (javaThread.cpp:694)
        V [jvm.dll+0x7f57c6] Thread::call_run+0xc6 (thread.cpp:234)
        V [jvm.dll+0x6bb6cb] thread_native_entry+0x7b (os_windows.cpp:547)
        C [ucrtbase.dll+0x26b4c]
        C [KERNEL32.DLL+0x14ed0]
        C [ntdll.dll+0x7e39b]

        Attachments

          Issue Links

            Activity

              People

                thartmann Tobias Hartmann
                lmesnik Leonid Mesnik
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: