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

C2: SIGSEGV in PhaseChaitin::gather_lrg_masks

    XMLWordPrintable

Details

    • x86_64
    • os_x

    Description

      The following test failed in the JDK22 CI:

      vmTestbase/runtime/pcl/mixed/combine/forName/mixed_6/TestDescription.java

      Here's a snippet from the log file:

      #section:driver
      ----------messages:(7/1393)----------
      command: driver runtime.pcl.shared.HierarchyBuilder static-load/dynamic-init/abstract static-load/dynamic-init/anonymous/complex static-load/dynamic-init/anonymous/simple static-load/dynamic-init/complex static-load/dynamic-init/inner/complex static-load/dynamic-init/inner/simple static-load/dynamic-init/interface static-load/dynamic-init/simple static-load/independent static-load/static-init/anonymous/complex static-load/static-init/anonymous/simple static-load/static-init/complex static-load/static-init/inner/complex static-load/static-init/inner/simple static-load/static-init/simple static-load/tree
      reason: User specified action: run driver/timeout=680 runtime.pcl.shared.HierarchyBuilder static-load/dynamic-init/abstract static-load/dynamic-init/anonymous/complex static-load/dynamic-init/anonymous/simple static-load/dynamic-init/complex static-load/dynamic-init/inner/complex static-load/dynamic-init/inner/simple static-load/dynamic-init/interface static-load/dynamic-init/simple static-load/independent static-load/static-init/anonymous/complex static-load/static-init/anonymous/simple static-load/static-init/complex static-load/static-init/inner/complex static-load/static-init/inner/simple static-load/static-init/simple static-load/tree
      started: Sun Dec 03 13:49:27 GMT 2023
      Mode: agentvm
      Agent id: 7
      finished: Sun Dec 03 13:50:49 GMT 2023
      elapsed time (seconds): 82.109
      ----------configuration:(17/2730)----------

      <snip>

      ----------System.err:(56/6679)----------
      /System/Volumes/Data/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S26017/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2e7ead7e-9770-4c95-a083-9b015bed71d0/runs/2fdf4c11-f5cc-41aa-8b58-fb16500fdcd5/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_vmTestbase_vm_parallel_class_loading/scratch/0/./genSrc/pcl/hierarchies/static-load/tree -> /System/Volumes/Data/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S26017/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2e7ead7e-9770-4c95-a083-9b015bed71d0/runs/2fdf4c11-f5cc-41aa-8b58-fb16500fdcd5/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_vmTestbase_vm_parallel_class_loading/scratch/0/./bin/classes/pcl/hierarchies/static-load/tree
      /System/Volumes/Data/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S26017/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2e7ead7e-9770-4c95-a083-9b015bed71d0/runs/2fdf4c11-f5cc-41aa-8b58-fb16500fdcd5/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_vmTestbase_vm_parallel_class_loading/scratch/0/./genSrc/pcl/hierarchies/static-load/tree/redefine -> /System/Volumes/Data/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S26017/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2e7ead7e-9770-4c95-a083-9b015bed71d0/runs/2fdf4c11-f5cc-41aa-8b58-fb16500fdcd5/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_vmTestbase_vm_parallel_class_loading/scratch/0/./bin/classes/pcl/hierarchies/static-load/tree/redefine
      /System/Volumes/Data/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S26017/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2e7ead7e-9770-4c95-a083-9b015bed71d0/runs/2fdf4c11-f5cc-41aa-8b58-fb16500fdcd5/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_vmTestbase_vm_parallel_class_loading/scratch/0/./genSrc/pcl/hierarchies/static-load/independent -> /System/Volumes/Data/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S26017/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2e7ead7e-9770-4c95-a083-9b015bed71d0/runs/2fdf4c11-f5cc-41aa-8b58-fb16500fdcd5/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_vmTestbase_vm_parallel_class_loading/scratch/0/./bin/classes/pcl/hierarchies/static-load/independent
      /System/Volumes/Data/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S26017/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2e7ead7e-9770-4c95-a083-9b015bed71d0/runs/2fdf4c11-f5cc-41aa-8b58-fb16500fdcd5/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_vmTestbase_vm_parallel_class_loading/scratch/0/./genSrc/pcl/hierarchies/static-load/independent/redefine -> /System/Volumes/Data/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S26017/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2e7ead7e-9770-4c95-a083-9b015bed71d0/runs/2fdf4c11-f5cc-41aa-8b58-fb16500fdcd5/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_vmTestbase_vm_parallel_class_loading/scratch/0/./bin/classes/pcl/hierarchies/static-load/independent/redefine
       stdout: [#
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x000000010b72dc10, pid=8712, tid=26635
      #
      # JRE version: Java(TM) SE Runtime Environment (22.0+27) (fastdebug build 22-ea+27-2170)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 22-ea+27-2170, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-amd64)
      # Problematic frame:
      # V [libjvm.dylib+0x4c2c10] PhaseChaitin::gather_lrg_masks(bool)+0xef0
      #
      # Core dump will be written. Default location: core.8712
      #
      # An error report file with more information is saved as:
      # /System/Volumes/Data/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S26017/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2e7ead7e-9770-4c95-a083-9b015bed71d0/runs/2fdf4c11-f5cc-41aa-8b58-fb16500fdcd5/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_vmTestbase_vm_parallel_class_loading/scratch/0/hs_err_pid8712.log
      #
      # Compiler replay data is saved as:
      # /System/Volumes/Data/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S26017/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2e7ead7e-9770-4c95-a083-9b015bed71d0/runs/2fdf4c11-f5cc-41aa-8b58-fb16500fdcd5/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_vmTestbase_vm_parallel_class_loading/scratch/0/replay_pid8712.log
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #
      ];
       stderr: [Java HotSpot(TM) 64-Bit Server VM warning: outputStream::do_vsnprintf output truncated -- buffer length is 2000 bytes but 18641 bytes are needed.
      ]
       exitValue = 134

      java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [134]
      at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:511)
      at runtime.pcl.shared.HierarchyBuilder.compile(HierarchyBuilder.java:173)
      at runtime.pcl.shared.HierarchyBuilder.lambda$main$1(HierarchyBuilder.java:51)
      at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
      at java.base/java.util.stream.DistinctOps$1$2.accept(DistinctOps.java:174)
      at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:212)
      at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:194)
      at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:212)
      at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
      at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1939)
      at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:556)
      at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:546)
      at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
      at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
      at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:265)
      at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:611)
      at runtime.pcl.shared.HierarchyBuilder.main(HierarchyBuilder.java:51)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
      at java.base/java.lang.Thread.run(Thread.java:1570)

      JavaTest Message: Test threw exception: java.lang.RuntimeException
      JavaTest Message: shutting down test

      ----------System.out:(60/54852)----------

      Attachments

        Activity

          People

            thartmann Tobias Hartmann
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: