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

Dacapo24H.java SIGSEGV in C2 code

XMLWordPrintable

    • x86_64
    • linux

      The following test failed in the JDK17 CI:

      applications/dacapo/Dacapo24H.java

      Here's a snippet from the log file:

      Stress process main method is started.
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x00007fa531ada77d, pid=14256, tid=10514
      #
      # JRE version: Java(TM) SE Runtime Environment (17.0+14) (build 17-ea+14-LTS-1048)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (17-ea+14-LTS-1048, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # J 1292212 c2 java.util.regex.Matcher.<init>(Ljava/util/regex/Pattern;Ljava/lang/CharSequence;)V java.base@17-ea (95 bytes) @ 0x00007fa531ada77d [0x00007fa531ada2e0+0x000000000000049d]
      #
      # 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/e8f948fe-dc79-4c12-82c8-0e7ba4ac7993-S107/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/0a02b362-646e-411c-a431-a6a4c6375c4e/runs/19b74e13-a923-4f46-b0e3-9ce37c882340/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_dacapo_Dacapo24H_java/scratch/0/core.14256)
      #
      # JFR recording file will be written. Location: /opt/mach5/mesos/work_dir/slaves/e8f948fe-dc79-4c12-82c8-0e7ba4ac7993-S107/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/0a02b362-646e-411c-a431-a6a4c6375c4e/runs/19b74e13-a923-4f46-b0e3-9ce37c882340/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_dacapo_Dacapo24H_java/scratch/0/hs_err_pid14256.jfr
      #
      Unsupported internal testing APIs have been used.

      # An error report file with more information is saved as:
      # /opt/mach5/mesos/work_dir/slaves/e8f948fe-dc79-4c12-82c8-0e7ba4ac7993-S107/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/0a02b362-646e-411c-a431-a6a4c6375c4e/runs/19b74e13-a923-4f46-b0e3-9ce37c882340/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_dacapo_Dacapo24H_java/scratch/0/hs_err_pid14256.log
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #
      ----------System.err:(410/35639)----------


      Here's the crashing thread's stack:

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

      Current thread (0x00007fa4a006fc70): JavaThread "Thread-459" [_thread_in_Java, id=10514, stack(0x00007fa40f3f4000,0x00007fa40f4f5000)]

      Stack: [0x00007fa40f3f4000,0x00007fa40f4f5000], sp=0x00007fa40f4f2480, free space=1017k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      J 1292212 c2 java.util.regex.Matcher.<init>(Ljava/util/regex/Pattern;Ljava/lang/CharSequence;)V java.base@17-ea (95 bytes) @ 0x00007fa531ada77d [0x00007fa531ada2e0+0x000000000000049d]
      J 1308514 c2 net.sourceforge.pmd.RuleSetFactoryCompatibility.applyAllFilters(Ljava/lang/String;)Ljava/lang/String; (44 bytes) @ 0x00007fa52e455a5c [0x00007fa52e455720+0x000000000000033c]
      J 1314046 c2 net.sourceforge.pmd.RuleSetFactoryCompatibility.filterRuleSetFile(Ljava/io/InputStream;)Ljava/io/Reader; (40 bytes) @ 0x00007fa52f908740 [0x00007fa52f907840+0x0000000000000f00]
      j net.sourceforge.pmd.RuleSetFactory.parseRuleSetNode(Lnet/sourceforge/pmd/RuleSetReferenceId;Z)Lnet/sourceforge/pmd/RuleSet;+84
      J 1327407 c2 net.sourceforge.pmd.RuleSetFactory.parseRuleReferenceNode(Lnet/sourceforge/pmd/RuleSetReferenceId;Lnet/sourceforge/pmd/RuleSet$RuleSetBuilder;Lorg/w3c/dom/Node;Ljava/lang/String;Z)V (577 bytes) @ 0x00007fa52fb39f54 [0x00007fa52fb39840+0x0000000000000714]
      J 1307735 c2 net.sourceforge.pmd.RuleSetFactory.parseRuleNode(Lnet/sourceforge/pmd/RuleSetReferenceId;Lnet/sourceforge/pmd/RuleSet$RuleSetBuilder;Lorg/w3c/dom/Node;Z)V (69 bytes) @ 0x00007fa52ff65ea8 [0x00007fa52ff65d00+0x00000000000001a8]
      j net.sourceforge.pmd.RuleSetFactory.parseRuleSetNode(Lnet/sourceforge/pmd/RuleSetReferenceId;Z)Lnet/sourceforge/pmd/RuleSet;+338
      J 1327299 c1 net.sourceforge.pmd.RuleSetFactory.createRuleSet(Lnet/sourceforge/pmd/RuleSetReferenceId;)Lnet/sourceforge/pmd/RuleSet; (7 bytes) @ 0x00007fa526a7bc0c [0x00007fa526a7bb40+0x00000000000000cc]
      j net.sourceforge.pmd.RuleSetFactory.createRuleSets(Ljava/util/List;)Lnet/sourceforge/pmd/RuleSets;+38
      j net.sourceforge.pmd.RuleSetFactory.createRuleSets(Ljava/lang/String;)Lnet/sourceforge/pmd/RuleSets;+5
      j net.sourceforge.pmd.RulesetsFactoryUtils.getRuleSets(Ljava/lang/String;Lnet/sourceforge/pmd/RuleSetFactory;)Lnet/sourceforge/pmd/RuleSets;+4
      j net.sourceforge.pmd.processor.AbstractPMDProcessor.createRuleSets(Lnet/sourceforge/pmd/RuleSetFactory;Lnet/sourceforge/pmd/Report;)Lnet/sourceforge/pmd/RuleSets;+8
      j net.sourceforge.pmd.processor.AbstractPMDProcessor.processFiles(Lnet/sourceforge/pmd/RuleSetFactory;Ljava/util/List;Lnet/sourceforge/pmd/RuleContext;Ljava/util/List;)V+6
      j net.sourceforge.pmd.PMD.processFiles(Lnet/sourceforge/pmd/PMDConfiguration;Lnet/sourceforge/pmd/RuleSetFactory;Ljava/util/List;Lnet/sourceforge/pmd/RuleContext;Ljava/util/List;)V+148
      j net.sourceforge.pmd.PMD.doPMD(Lnet/sourceforge/pmd/PMDConfiguration;)I+178
      j net.sourceforge.pmd.PMD.run([Ljava/lang/String;)I+91
      j net.sourceforge.pmd.cli.PMDCommandLineInterface.run([Ljava/lang/String;)V+1
      j net.sourceforge.pmd.PMD.main([Ljava/lang/String;)V+1
      j jdk.internal.reflect.GeneratedMethodAccessor134.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+24
      J 1291497 c2 jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@17-ea (10 bytes) @ 0x00007fa530257b74 [0x00007fa530257b20+0x0000000000000054]
      J 1291458 c1 java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@17-ea (65 bytes) @ 0x00007fa52611ed24 [0x00007fa52611ebe0+0x0000000000000144]
      j org.dacapo.harness.Pmd.iterate(Ljava/lang/String;)V+16
      j org.dacapo.harness.Benchmark.run(Lorg/dacapo/harness/Callback;Ljava/lang/String;)Z+82
      j org.dacapo.harness.TestHarness.runBenchmark(Ljava/io/File;Ljava/io/File;Ljava/lang/String;Lorg/dacapo/harness/TestHarness;)V+109
      j org.dacapo.harness.TestHarness.main([Ljava/lang/String;)V+567
      v ~StubRoutines::call_stub
      V [libjvm.so+0x7d76b5] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x2a5
      V [libjvm.so+0xc451fc] invoke(InstanceKlass*, methodHandle const&, Handle, bool, objArrayHandle, BasicType, objArrayHandle, bool, Thread*) [clone .constprop.0]+0x47c
      V [libjvm.so+0xc46036] Reflection::invoke_method(oopDesc*, Handle, objArrayHandle, Thread*)+0x106
      V [libjvm.so+0x8a378a] JVM_InvokeMethod+0x12a
      J 397513 jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@17-ea (0 bytes) @ 0x00007fa52e863140 [0x00007fa52e863040+0x0000000000000100]
      j jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+146 java.base@17-ea
      J 939512 c2 java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@17-ea (65 bytes) @ 0x00007fa530e46cb0 [0x00007fa530e46bc0+0x00000000000000f0]
      j applications.kitchensink.process.stress.modules.Runner$BenchmarkRunner.run()V+105
      j java.lang.Thread.run()V+11 java.base@17-ea
      v ~StubRoutines::call_stub
      V [libjvm.so+0x7d76b5] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x2a5
      V [libjvm.so+0x7d8f2b] JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, Thread*)+0x1cb
      V [libjvm.so+0x8966b0] thread_entry(JavaThread*, Thread*)+0x70
      V [libjvm.so+0xd5dde0] JavaThread::thread_main_inner()+0xd0
      V [libjvm.so+0xd6135e] Thread::call_run()+0xde
      V [libjvm.so+0xbbcff7] thread_native_entry(Thread*)+0xe7


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


      Unfortunately, the test task that encountered this test failure
      is being auto-rerun so the log files will be replaced. I'm attaching
      the .jtr file and the hs_err_pid file to this bug.

            dlong Dean Long
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: