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

[CRaC] Log level of 'crac' cannot be changed on checkpoint

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • repo-crac
    • repo-crac
    • hotspot
    • None
    • generic
    • generic

      Log level of log set 'crac' is automatically set to info before checkpoint and cannot be changed from CLI. This means debug-level messages of this tag set cannot be seen.

      Moreover, disabling logging on this tag set leads to a failing assert when the first attempt to log something with this tag set is made:
      ```
      % java -XX:CRaCCheckpointTo=cr -Xlog:crac=off Main
      Before checkpoint
      Feb 24, 2025 12:26:43 PM jdk.internal.crac.LoggerContainer info
      INFO: Starting checkpoint
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/Users/timpushkin/Projects/crac/src/hotspot/share/logging/logDecorations.cpp:78), pid=70305, tid=19971
      # assert(_decorators.is_decorator(decorator)) failed: decorator was not part of the decorator set specified at creation.
      #
      # JRE version: OpenJDK Runtime Environment (24.0) (slowdebug build 24-internal-adhoc.timpushkin.crac)
      # Java VM: OpenJDK 64-Bit Server VM (slowdebug 24-internal-adhoc.timpushkin.crac, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
      # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
      #
      # An error report file with more information is saved as:
      # /Users/timpushkin/Projects/simple-cr/hs_err_pid70305.log
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #
      ```

            tpushkin Timofei Pushkin
            tpushkin Timofei Pushkin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: