assert((!inside_attrs()) || VMError::is_error_reported()) failed: cannot print tag inside attrs with "-XX:+LogCompilation -XX:-SerializeVMOutput"

XMLWordPrintable

      The following Test.java crashes with an assertion:

      public class Test {
          public static void main(String[] args) {
          }
      }

      Run with:
      $ java -XX:+LogCompilation -XX:-SerializeVMOutput Test.java

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S34988/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/f3243ba7-b34c-4eb2-9276-e1867faa18c0/runs/041c28e0-2159-4d53-90b3-ac7f539a1569/workspace/open/src/hotspot/share/utilities/xmlstream.cpp:135), pid=164943, tid=164962
      # assert((!inside_attrs()) || VMError::is_error_reported()) failed: cannot print tag inside attrs
      #
      # JRE version: Java(TM) SE Runtime Environment (27.0+4) (fastdebug build 27-ea+4-277)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 27-ea+4-277, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x1d26a87] xmlStream::va_tag(bool, char const*, __va_list_tag*)+0x157
      ..............
      Command Line: -XX:+LogCompilation -XX:-SerializeVMOutput --add-modules=ALL-DEFAULT jdk.compiler/com.sun.tools.javac.launcher.SourceLauncher Test.java
      ..............
      Current CompileTask:
      C2:50 12 4 java.lang.Object::<init> (1 bytes)

      Stack: [0x00007f2bd12d8000,0x00007f2bd13d8000], sp=0x00007f2bd13d2f30, free space=1003k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x1d26a87] xmlStream::va_tag(bool, char const*, __va_list_tag*)+0x157 (xmlstream.cpp:135)
      V [libjvm.so+0x1d26c69] xmlStream::begin_elem(char const*, ...)+0x89 (xmlstream.cpp:234)
      V [libjvm.so+0x1772852] nmethod::log_state_change(nmethod::InvalidationReason) const+0x3f2 (nmethod.cpp:2265)
      V [libjvm.so+0x1772bd6] nmethod::make_not_entrant(nmethod::InvalidationReason)+0x116 (nmethod.cpp:2347)
      V [libjvm.so+0xa5fb72] ciEnv::register_method(ciMethod*, int, CodeOffsets*, int, CodeBuffer*, int, OopMapSet*, ExceptionHandlerTable*, ImplicitExceptionTable*, AbstractCompiler*, bool, bool, bool, bool, int)+0xbe2 (nmethod.hpp:727)
      V [libjvm.so+0x182e88d] PhaseOutput::install_code(ciMethod*, int, AbstractCompiler*, bool, bool)+0x16d (output.cpp:3207)
      V [libjvm.so+0xbb0ecf] Compile::Code_Gen()+0xabf (compile.cpp:3139)
      V [libjvm.so+0xbb63b3] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x2123 (compile.cpp:895)
      V [libjvm.so+0x9cd4e8] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x498 (c2compiler.cpp:147)
      V [libjvm.so+0xbc57a0] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x780 (compileBroker.cpp:2345)
      V [libjvm.so+0xbc7000] CompileBroker::compiler_thread_loop()+0x530 (compileBroker.cpp:1989)
      V [libjvm.so+0x112a41b] JavaThread::thread_main_inner()+0x13b (javaThread.cpp:776)
      V [libjvm.so+0x1bb5d76] Thread::call_run()+0xb6 (thread.cpp:242)
      V [libjvm.so+0x180ba18] thread_native_entry(Thread*)+0x118 (os_linux.cpp:860)

            Assignee:
            Unassigned
            Reporter:
            Daniel Skantz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: