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

PPC64 debug builds fail with "untested: RangeCheckStub: predicate_failed_trap_id"

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b32
    • CPU:
      ppc

      Backports

        Description

        # CONF=linux-ppc64le-server-fastdebug make bootcycle-images

        [bootcycle] Compiling 71 files for COMPILE_CREATE_SYMBOLS
        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # Internal Error (0xe0000000), pid=1229216, tid=1229219
        # untested: RangeCheckStub: predicate_failed_trap_id
        #
        # JRE version: OpenJDK Runtime Environment (19.0) (fastdebug build 19-internal+0-adhoc.root.shipilev-jdk)
        # Java VM: OpenJDK 64-Bit Server VM (fastdebug 19-internal+0-adhoc.root.shipilev-jdk, mixed mode, emulated-client, tiered, compressed oops, compressed class ptrs, serial gc, linux-ppc64le)
        # Problematic frame:
        # J 387 c1 build.tools.generatebreakiteratordata.CharSet.doIntersection([I)[I (344 bytes) @ 0x00007fff8100c054 [0x00007fff8100b800+0x0000000000000854]
        #

        Stack: [0x00007fff7ea70000,0x00007fff7ec70000], sp=0x00007fff7ec6d840, free space=2038k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        J 423% c1 build.tools.generatebreakiteratordata.CharSet.doIntersection([I)[I (344 bytes) @ 0x00007fff6d9a6814 [0x00007fff6d9a5d80+0x0000000000000a94]
        j build.tools.generatebreakiteratordata.CharSet.difference(Lbuild/tools/generatebreakiteratordata/CharSet;)Lbuild/tools/generatebreakiteratordata/CharSet;+9
        j build.tools.generatebreakiteratordata.RuleBasedBreakIteratorBuilder.buildCharCategories(Ljava/util/Vector;)V+562
        j build.tools.generatebreakiteratordata.DictionaryBasedBreakIteratorBuilder.buildCharCategories(Ljava/util/Vector;)V+2
        j build.tools.generatebreakiteratordata.RuleBasedBreakIteratorBuilder.<init>(Ljava/lang/String;)V+97
        j build.tools.generatebreakiteratordata.DictionaryBasedBreakIteratorBuilder.<init>(Ljava/lang/String;)V+2
        j build.tools.generatebreakiteratordata.GenerateBreakIteratorData.generateDataFile(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V+35
        j build.tools.generatebreakiteratordata.GenerateBreakIteratorData.generateFiles()V+114
        j build.tools.generatebreakiteratordata.GenerateBreakIteratorData.main([Ljava/lang/String;)V+10
        v ~StubRoutines::call_stub
        V [libjvm.so+0xfdbe10] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x690
        V [libjvm.so+0x171087c] os::os_exception_wrapper(void (*)(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*), JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x3c
        V [libjvm.so+0xfd9f00] JavaCalls::call(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x40
        V [libjvm.so+0x117d370] jni_invoke_static(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, JavaThread*) [clone .constprop.1]+0x600
        V [libjvm.so+0x1180e24] jni_CallStaticVoidMethod+0x194
        C [libjli.so+0x70cc] JavaMain+0x10fc
        C [libjli.so+0xbb98] ThreadJavaMain+0x18
        C [libc.so.6+0xb6d54] start_thread+0x174

        Reproduces in mainline JDK and 17u. Something might have changed in the Java code that we are starting to hit this path, but the issue just looks generic. This code seems to be that way since the original commit in JDK-8144019:

          if (_info->deoptimize_on_exception()) {
            address a = Runtime1::entry_for(Runtime1::predicate_failed_trap_id);
            // May be used by optimizations like LoopInvariantCodeMotion or RangeCheckEliminator.
            DEBUG_ONLY( __ untested("RangeCheckStub: predicate_failed_trap_id"); ) // <---- fails here
            //__ load_const_optimized(R0, a);
            __ add_const_optimized(R0, R29_TOC, MacroAssembler::offset_to_global_toc(a));
            __ mtctr(R0);
            __ bctrl();
            ce->add_call_info_here(_info);
            ce->verify_oop_map(_info);
            debug_only(__ illtrap());
            return;
          }

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                shade Aleksey Shipilev
                Reporter:
                shade Aleksey Shipilev
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: