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

Event descriptions are truncated in logs

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 10, 11
    • Fix Version/s: 13
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b09

      Description

      http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2018-May/027698.html

      Event descriptions in hs_err and VM.info dcmd are trucated as following:

      ```
      Event: 1.977 Thread 0x00007f1720010800 Exception <a 'java/lang/IncompatibleClassChangeError'{0x00000000d7a338f0}: Found class java.lang.Object, but interface was expected> (0x00000000d7a338f0) thrown at [/scratch/opt/mach5/mesos/work_dir/slaves/9190d864-6621-4810-ba08-d8d8c75ba674-S702/framewo
      ```

      I think we can fix it as this webrev.

         http://cr.openjdk.java.net/~ysuenaga/event-msg-truncated/

      This webrev shows event description as following:

      ```
      Event: 3.660 Thread 0x00007fa174018800 Exception <a 'java/lang/NoSuchMethodError'{0x00000000d778f878}: java.lang.invoke.DirectMethodHandle$Holder.invokeInterface(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V> (0x00000000d778f878) thrown at [/home/ysuenaga/OpenJDK/jdk/src/hotspot/share/interpreter/linkResolver.cpp, line 755]
      ```

      But I concern this change might not work when HotSpot is built with VS 2013 or earlier.
      This change uses vsnprintf() to get length of string, but _vscprintf() will be used when older Visual Studio is used to build.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ysuenaga Yasumasa Suenaga
                Reporter:
                ysuenaga Yasumasa Suenaga
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: