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

failure_handler: dmesg command on macos fails to collect data due to permission issues

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 19
    • 19
    • infrastructure
    • None
    • b23
    • os_x

      One of the commands we run as part of test failure handlers is the "dmesg" command. This command fails on macOS with permission error:

      [/sbin/dmesg] timeout=20000
      ----------------------------------------
      Unable to obtain kernel buffer: Operation not permitted
      usage: sudo dmesg


      As noted in that error message as well as the man pages of the dmesg command which states:

      "Dmesg displays the contents of the system message buffer. This command needs to be run as root."

      The failure handler command should be changed to use sudo.

            jpai Jaikiran Pai
            jpai Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: