Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8259276 C2: Empty expression stack when reexecuting tableswitch/lookupswitch instructions after deoptimization
  3. JDK-8258741

Kitchensink.java failed with "assert(stack_base() > limit && limit >= stack_end()) failed: limit is outside of stack"

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      aarch64
    • OS:
      linux

      Description

      The following test failed in the JDK17 CI:

      applications/kitchensink/Kitchensink.java

      Here's a snippet from the log file:

      [2020-12-19T15:42:23.659604800Z] Gathering output for process 30006
      [2020-12-19T15:42:29.862689575Z] Waiting for completion for process 30006
      [2020-12-19T15:42:29.862918775Z] Waiting for completion finished for process 30006
      Output and diagnostic info for process 30006 was saved into 'pid-30006-output.log'
      [stress.process.out] #
      [stress.process.out] # A fatal error has been detected by the Java Runtime Environment:
      [stress.process.out] #
      [stress.process.out] # Internal Error (/opt/mach5/mesos/work_dir/slaves/983c483a-6907-44e0-ad29-98c7183575e2-S77127/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/40b207f0-3fcb-4184-a8a0-59661dcadae5/runs/04eef127-970e-4242-a460-0493ed7d9b21/workspace/open/src/hotspot/share/runtime/thread.hpp:689), pid=21838, tid=29789
      [stress.process.out] # assert(stack_base() > limit && limit >= stack_end()) failed: limit is outside of stack
      [stress.process.out] #
      [stress.process.out] # JRE version: Java(TM) SE Runtime Environment (17.0+3) (fastdebug build 17-ea+3-LTS-97)
      [stress.process.out] # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 17-ea+3-LTS-97, mixed mode, tiered, compressed oops, parallel gc, linux-aarch64)
      [stress.process.out] # Problematic frame:
      [stress.process.out] # V [libjvm.so+0x8d43c4] constantPoolHandle::constantPoolHandle(Thread*, ConstantPool*)+0x134
      [stress.process.out] #
      [stress.process.out] # Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /scratch/opt/mach5/mesos/work_dir/slaves/983c483a-6907-44e0-ad29-98c7183575e2-S12641/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/3a2b0554-66a7-4afd-ba96-d0bac43a79ac/runs/a2d51aed-9819-4577-b833-2514fbe413a0/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kitchensink_Kitchensink_java/scratch/0/core.21838)
      [stress.process.out] #
      [stress.process.out] Unsupported internal testing APIs have been used.
      [stress.process.out]
      [stress.process.out] # An error report file with more information is saved as:
      [stress.process.out] # /scratch/opt/mach5/mesos/work_dir/slaves/983c483a-6907-44e0-ad29-98c7183575e2-S12641/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/3a2b0554-66a7-4afd-ba96-d0bac43a79ac/runs/a2d51aed-9819-4577-b833-2514fbe413a0/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kitchensink_Kitchensink_java/scratch/0/hs_err_pid21838.log
      [stress.process.out] [thread 29016 also had an error]
      [stress.process.out] [thread 29014 also had an error]
      [stress.process.out] #
      [stress.process.out] # If you would like to submit a bug report, please visit:
      [stress.process.out] # https://bugreport.java.com/bugreport/crash.jsp
      [stress.process.out] #
      [2020-12-19T15:43:29.870156100Z] Gathering output for process 30308
      [2020-12-19T15:43:29.883254475Z] Waiting for completion for process 30308
      [2020-12-19T15:43:29.883391475Z] Waiting for completion finished for process 30308
      Output and diagnostic info for process 30308 was saved into 'pid-30308-output.log'

      Here's the crashing thread's stack:

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

      Current thread (0x0000fffbac23db30): JavaThread "Program Runner for xml.transform" [_thread_in_vm, id=29789, stack(0x0000fffb75800000,0x0000fffb75a00000)]

      Stack: [0x0000fffb75800000,0x0000fffb75a00000], sp=0x0000000690bd4b80, free space=18014123678158674k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x8d43c4] constantPoolHandle::constantPoolHandle(Thread*, ConstantPool*)+0x134

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      J 51251 java.io.FileInputStream.read0()I java.base@17-ea (0 bytes) @ 0x0000fffc76b15bbc [0x0000fffc76b15b40+0x000000000000007c]
      J 51356 c2 org.w3c.tidy.StreamInImpl.readCharFromStream()I (364 bytes) @ 0x0000fffc767104e4 [0x0000fffc76710440+0x00000000000000a4]
      J 51407 c2 org.w3c.tidy.StreamInImpl.readChar()I (330 bytes) @ 0x0000fffc7562563c [0x0000fffc756255c0+0x000000000000007c]
      J 51724 c1 org.w3c.tidy.Lexer.parseTagName()C (111 bytes) @ 0x0000fffc6f99064c [0x0000fffc6f990380+0x00000000000002cc]
      j org.w3c.tidy.Lexer.getToken(S)Lorg/w3c/tidy/Node;+1472
      j org.w3c.tidy.ParserImpl$ParseList.parse(Lorg/w3c/tidy/Lexer;Lorg/w3c/tidy/Node;S)V+29
      J 51748 c1 org.w3c.tidy.ParserImpl.parseTag(Lorg/w3c/tidy/Lexer;Lorg/w3c/tidy/Node;S)V (72 bytes) @ 0x0000fffc6f99cd20 [0x0000fffc6f99cb00+0x0000000000000220]
      J 51786 c1 org.w3c.tidy.ParserImpl$ParseBlock.parse(Lorg/w3c/tidy/Lexer;Lorg/w3c/tidy/Node;S)V (1635 bytes) @ 0x0000fffc6f9c430c [0x0000fffc6f9c21c0+0x000000000000214c]
      J 51748 c1 org.w3c.tidy.ParserImpl.parseTag(Lorg/w3c/tidy/Lexer;Lorg/w3c/tidy/Node;S)V (72 bytes) @ 0x0000fffc6f99cd20 [0x0000fffc6f99cb00+0x0000000000000220]
      J 51747 c1 org.w3c.tidy.ParserImpl.access$0(Lorg/w3c/tidy/Lexer;Lorg/w3c/tidy/Node;S)V (7 bytes) @ 0x0000fffc6f7ac454 [0x0000fffc6f7ac3c0+0x0000000000000094]
      j org.w3c.tidy.ParserImpl$ParseList.parse(Lorg/w3c/tidy/Lexer;Lorg/w3c/tidy/Node;S)V+392
      J 51748 c1 org.w3c.tidy.ParserImpl.parseTag(Lorg/w3c/tidy/Lexer;Lorg/w3c/tidy/Node;S)V (72 bytes) @ 0x0000fffc6f99cd20 [0x0000fffc6f99cb00+0x0000000000000220]
      J 51786 c1 org.w3c.tidy.ParserImpl$ParseBlock.parse(Lorg/w3c/tidy/Lexer;Lorg/w3c/tidy/Node;S)V (1635 bytes) @ 0x0000fffc6f9c430c [0x0000fffc6f9c21c0+0x000000000000214c]
      J 51748 c1 org.w3c.tidy.ParserImpl.parseTag(Lorg/w3c/tidy/Lexer;Lorg/w3c/tidy/Node;S)V (72 bytes) @ 0x0000fffc6f99cd20 [0x0000fffc6f99cb00+0x0000000000000220]
      J 51747 c1 org.w3c.tidy.ParserImpl.access$0(Lorg/w3c/tidy/Lexer;Lorg/w3c/tidy/Node;S)V (7 bytes) @ 0x0000fffc6f7ac454 [0x0000fffc6f7ac3c0+0x0000000000000094]
      j org.w3c.tidy.ParserImpl$ParseRow.parse(Lorg/w3c/tidy/Lexer;Lorg/w3c/tidy/Node;S)V+519
      J 51748 c1 org.w3c.tidy.ParserImpl.parseTag(Lorg/w3c/tidy/Lexer;Lorg/w3c/tidy/Node;S)V (72 bytes) @ 0x0000fffc6f99cd20 [0x0000fffc6f99cb00+0x0000000000000220]
      J 51747 c1 org.w3c.tidy.ParserImpl.access$0(Lorg/w3c/tidy/Lexer;Lorg/w3c/tidy/Node;S)V (7 bytes) @ 0x0000fffc6f7ac454 [0x0000fffc6f7ac3c0+0x0000000000000094]
      j org.w3c.tidy.ParserImpl$ParseTableTag.parse(Lorg/w3c/tidy/Lexer;Lorg/w3c/tidy/Node;S)V+465
      J 51748 c1 org.w3c.tidy.ParserImpl.parseTag(Lorg/w3c/tidy/Lexer;Lorg/w3c/tidy/Node;S)V (72 bytes) @ 0x0000fffc6f99cd20 [0x0000fffc6f99cb00+0x0000000000000220]
      J 51747 c1 org.w3c.tidy.ParserImpl.access$0(Lorg/w3c/tidy/Lexer;Lorg/w3c/tidy/Node;S)V (7 bytes) @ 0x0000fffc6f7ac454 [0x0000fffc6f7ac3c0+0x0000000000000094]
      j org.w3c.tidy.ParserImpl$ParseBody.parse(Lorg/w3c/tidy/Lexer;Lorg/w3c/tidy/Node;S)V+1014
      J 51748 c1 org.w3c.tidy.ParserImpl.parseTag(Lorg/w3c/tidy/Lexer;Lorg/w3c/tidy/Node;S)V (72 bytes) @ 0x0000fffc6f99cd20 [0x0000fffc6f99cb00+0x0000000000000220]
      J 51747 c1 org.w3c.tidy.ParserImpl.access$0(Lorg/w3c/tidy/Lexer;Lorg/w3c/tidy/Node;S)V (7 bytes) @ 0x0000fffc6f7ac454 [0x0000fffc6f7ac3c0+0x0000000000000094]
      j org.w3c.tidy.ParserImpl$ParseHTML.parse(Lorg/w3c/tidy/Lexer;Lorg/w3c/tidy/Node;S)V+616
      j org.w3c.tidy.ParserImpl.parseDocument(Lorg/w3c/tidy/Lexer;)Lorg/w3c/tidy/Node;+140
      j org.w3c.tidy.Tidy.parse(Ljava/io/InputStream;Ljava/lang/String;Ljava/io/OutputStream;)Lorg/w3c/tidy/Node;+191
      j org.w3c.tidy.Tidy.parse(Ljava/io/InputStream;Ljava/io/OutputStream;)Lorg/w3c/tidy/Node;+6
      j spec.benchmarks.xml.transform.ExtOutputStream.runTidy()V+66
      j spec.benchmarks.xml.transform.ExtOutputStream.check(Ljava/lang/String;)V+34
      j spec.benchmarks.xml.transform.ExtOutputStream.checkResult(I)V+34
      j spec.benchmarks.xml.transform.Main.transform(Ljavax/xml/transform/Transformer;Ljavax/xml/transform/Source;Ljava/lang/String;I)V+27
      j spec.benchmarks.xml.transform.Main.executeWorkload()V+135
      j spec.benchmarks.xml.transform.Main.harnessMain()V+8
      j spec.benchmarks.xml.transform.Main.setupBenchmark()V+182
      v ~StubRoutines::call_stub
      j jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0 java.base@17-ea
      j jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+146 java.base@17-ea
      J 32371 c2 jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@17-ea (10 bytes) @ 0x0000fffc760eb230 [0x0000fffc760eb1c0+0x0000000000000070]
      J 32186 c1 java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@17-ea (65 bytes) @ 0x0000fffc6ead0c60 [0x0000fffc6ead0b00+0x0000000000000160]
      j spec.harness.ProgramRunner.invokeBmSetupBenchmark()V+9
      j spec.harness.ProgramRunner.runBenchmark()Z+646
      j spec.harness.ProgramRunner.run()V+16
      v ~StubRoutines::call_stub
      Register to memory mapping:

      R0=0x0000fffc8b5c4be0
      R1=0x00000000000002b1
      R2=0x0000fffc8b5c4f50
      R3=0x0000fffc8b5c4f30
      R4=0x0000fffc8bf00000
      R5=0x0000000000000058
      R6=0x00000000000001b0
      R7=0x0000000000002d45
      R8=0x0000000690bd4d88
      R9=0x0000fffbac23df08
      R10=0x0000000690bcd280
      R11=0x000000020c59e268
      R12=0x000000000006c208
      R13=0x000000000006c208
      R14=0x0000000690bd50f8
      R15=0x0000000000000000
      R16=0x0000000000000001
      R17=0x0000000001406024
      R18=0x0000000000000aa0
      R19=0x0000000690bd4c78
      R20=0x0000fffbac23db30
      R21=0x0000fffb6c8a6f30
      R22=0x0000fffc8bb85000
      R23=0x0000000690bd4b70
      R24=0x0000fffc8b5c4000
      R25=0x0000fffc8bb94278
      R26=0x0000fffc8bb85000
      R27=0x0000000690bcd960
      R28=0x0000000690bd4e10
      R29=0x0000000690bd4b80
      R30=0x0000fffc8a684384


      Registers:
      R0 =0x0000fffc8b5c4be0: <offset 0x0000000001814be0> in /scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+3-97/linux-aarch64-debug.jdk/jdk-17/fastdebug/lib/server/libjvm.so at 0x0000fffc89db0000
      R1 =0x00000000000002b1 is an unknown value
      R2 =0x0000fffc8b5c4f50: <offset 0x0000000001814f50> in /scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+3-97/linux-aarch64-debug.jdk/jdk-17/fastdebug/lib/server/libjvm.so at 0x0000fffc89db0000
      R3 =0x0000fffc8b5c4f30: <offset 0x0000000001814f30> in /scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+3-97/linux-aarch64-debug.jdk/jdk-17/fastdebug/lib/server/libjvm.so at 0x0000fffc89db0000
      R4 =0x0000fffc8bf00000 points into unknown readable memory: 0x0000000000000058 | 58 00 00 00 00 00 00 00
      R5 =0x0000000000000058 is an unknown value
      R6 =0x00000000000001b0 is an unknown value
      R7 =0x0000000000002d45 is an unknown value
      R8 =0x0000000690bd4d88 points into unknown readable memory: 0x0000fffbac23db30 | 30 db 23 ac fb ff 00 00
      R9 =0x0000fffbac23df08 points into unknown readable memory: 0xf1f1f1f100000006 | 06 00 00 00 f1 f1 f1 f1
      R10=0x0000000690bcd280 is an oop: java.io.FileInputStream
      {0x0000000690bcd280} - klass: 'java/io/FileInputStream'
       - ---- fields (total size 4 words):

      [error occurred during error reporting (printing registers, top of stack, instructions near pc), id 0xe0000000, Internal Error (/opt/mach5/mesos/work_dir/slaves/983c483a-6907-44e0-ad29-98c7183575e2-S77127/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/40b207f0-3fcb-4184-a8a0-59661dcadae5/runs/04eef127-970e-4242-a460-0493ed7d9b21/workspace/open/src/hotspot/share/runtime/thread.hpp:689)]

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: