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

Zero: assert(istate->_stack_limit == istate->_thread->last_Java_sp() + 1) failed: wrong on Linux/x86_32

XMLWordPrintable

    • b28

        Zero VM debug build is still broken.

        # Symptom
        ```
        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # Internal Error (/home/jdk/src/hotspot/share/interpreter/zero/bytecodeInterpreter.cpp:419), pid=67451, tid=67455
        # assert(istate->_stack_limit == istate->_thread->last_Java_sp() + 1) failed: wrong
        #
        # JRE version: (16.0+4) (fastdebug build )
        # Java VM: OpenJDK Zero VM (fastdebug 16-internal+4-adhoc.jvm.jdk, interpreted mode, serial gc, linux-x86)
        ```

        ```
        (gdb) bt
        #0 0xf7fd5440 in __kernel_vsyscall ()
        #1 0xf7e0e912 in __libc_signal_restore_set (set=0xf6e2bf7c) at ../sysdeps/unix/sysv/linux/nptl-signals.h:80
        #2 __GI_raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:48
        #3 0xf7e0fda1 in __GI_abort () at abort.c:79
        #4 0xf77c627e in os::abort (dump_core=true, siginfo=0x0, context=0x0) at /home/jdk/src/hotspot/os/linux/os_linux.cpp:1466
        #5 0xf7a60ca5 in VMError::report_and_die (id=-536870912, message=0xf7ae318c "assert(istate->_stack_limit == istate->_thread->last_Java_sp() + 1) failed",
            detail_fmt=0xf7bd0e71 "wrong", detail_args=0xf6e2c3e0 "", thread=0xf6c15a78, pc=0x0, siginfo=0x0, context=0x0,
            filename=0xf7ae2700 "/home/jdk/src/hotspot/share/interpreter/zero/bytecodeInterpreter.cpp", lineno=419, size=0)
            at /home/jdk/src/hotspot/share/utilities/vmError.cpp:1626
        #6 0xf7a61872 in VMError::report_and_die (thread=0xf6c15a78, context=0x0, filename=0xf7ae2700 "/home/jdk/src/hotspot/share/interpreter/zero/bytecodeInterpreter.cpp",
            lineno=419, message=0xf7ae318c "assert(istate->_stack_limit == istate->_thread->last_Java_sp() + 1) failed", detail_fmt=0xf7bd0e71 "wrong",
            detail_args=0xf6e2c3e0 "") at /home/jdk/src/hotspot/share/utilities/vmError.cpp:1329
        #7 0xf732909b in report_vm_error (file=0xf7ae2700 "/home/jdk/src/hotspot/share/interpreter/zero/bytecodeInterpreter.cpp", line=419,
            error_msg=0xf7ae318c "assert(istate->_stack_limit == istate->_thread->last_Java_sp() + 1) failed", detail_fmt=0xf7bd0e71 "wrong")
            at /home/jdk/src/hotspot/share/utilities/debug.cpp:267
        #8 0xf71c1f34 in BytecodeInterpreter::run<false> (istate=0xf6ee6ce0) at /home/jdk/src/hotspot/share/interpreter/zero/bytecodeInterpreter.cpp:419
        #9 0xf7abdf30 in ZeroInterpreter::main_loop (recurse=<optimized out>, __the_thread__=<optimized out>) at /home/jdk/src/hotspot/cpu/zero/zeroInterpreter_zero.cpp:199
        #10 0xf7abf028 in ZeroInterpreter::normal_entry (method=0xe4009e60, UNUSED=-188968640, __the_thread__=0xf6c15a78)
            at /home/jdk/src/hotspot/cpu/zero/zeroInterpreter_zero.cpp:118
        #11 0xf7abe6f5 in ZeroEntry::invoke (__the_thread__=0xf6c15a78, method=0xe4009e60, this=0xf4bc9140) at /home/jdk/src/hotspot/cpu/zero/entry_zero.hpp:59
        #12 ZeroInterpreter::invoke_method (method=0xe4009e60,
            entry_point=0xf4bc9140 "\240\357\253\367\240\357\253\367\240\004\254\367\240\031\254\367 \n\254\367Pb\024\367@\006\254\367@\360\253\367@\360\253\367", '\314' <repeats 164 times>..., __the_thread__=0xf6c15a78) at /home/jdk/src/hotspot/cpu/zero/zeroInterpreter_zero.cpp:82
        #13 0xf798b191 in StubGenerator::call_stub (call_wrapper=0xf6ee6e1c, result=0xf6ee6eb4, result_type=T_INT, method=0xe4009e60,
            entry_point=0xf4bc9140 "\240\357\253\367\240\357\253\367\240\004\254\367\240\031\254\367 \n\254\367Pb\024\367@\006\254\367@\360\253\367@\360\253\367", '\314' <repeats 164 times>..., parameters=0xf6ee6edc, parameter_words=0, __the_thread__=0xf6c15a78) at /home/jdk/src/hotspot/cpu/zero/stubGenerator_zero.cpp:98
        #14 0xf750d748 in JavaCalls::call_helper (result=0xf6ee6eb0, method=..., args=0xf6ee6ed4, __the_thread__=0xf6c15a78)
            at /home/jdk/src/hotspot/share/runtime/javaCalls.cpp:427
        #15 0xf750bf06 in JavaCalls::call (result=0xf6ee6eb0, method=..., args=0xf6ee6ed4, __the_thread__=0xf6c15a78) at /home/jdk/src/hotspot/share/runtime/javaCalls.cpp:341
        #16 0xf74e686e in InstanceKlass::call_class_initializer (this=0xe4009f38, __the_thread__=0xf6c15a78) at /home/jdk/src/hotspot/share/oops/instanceKlass.cpp:1502
        #17 0xf74e6e8b in InstanceKlass::initialize_impl (this=0xe4009f38, __the_thread__=0xf6c15a78) at /home/jdk/src/hotspot/share/oops/instanceKlass.cpp:1169
        #18 0xf79c6412 in initialize_class (class_name=<optimized out>, __the_thread__=__the_thread__@entry=0xf6c15a78) at /home/jdk/src/hotspot/share/runtime/thread.cpp:839
        #19 0xf79d3c29 in Threads::initialize_java_lang_classes (main_thread=0xf6c15a78, __the_thread__=0xf6c15a78) at /home/jdk/src/hotspot/share/runtime/thread.cpp:3361
        #20 0xf79d4f75 in Threads::create_vm (args=0xf6ee7310, canTryAgain=0xf6ee728b) at /home/jdk/src/hotspot/share/runtime/thread.cpp:3634
        #21 0xf7555f87 in JNI_CreateJavaVM_inner (args=<optimized out>, penv=<optimized out>, vm=<optimized out>) at /home/jdk/src/hotspot/share/prims/jni.cpp:3765
        #22 JNI_CreateJavaVM (vm=<optimized out>, penv=<optimized out>, args=<optimized out>) at /home/jdk/src/hotspot/share/prims/jni.cpp:3848
        #23 0xf7fc65be in InitializeJVM (ifn=<synthetic pointer>, penv=0xf6ee730c, pvm=0xf6ee7308) at /home/jdk/src/java.base/share/native/libjli/java.c:1536
        #24 JavaMain (_args=0xffff9528) at /home/jdk/src/java.base/share/native/libjli/java.c:416
        #25 0xf7fca20b in ThreadJavaMain (args=0xffff9528) at /home/jdk/src/java.base/unix/native/libjli/java_md.c:651
        #26 0xf7da33bd in start_thread (arg=0xf6ee7b40) at pthread_create.c:463
        #27 0xf7ed9c96 in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:108
        ```

              jiefu Jie Fu
              jiefu Jie Fu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: