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

Event descriptions are truncated in logs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 13
    • 10, 11
    • hotspot
    • b09

        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.

              ysuenaga Yasumasa Suenaga
              ysuenaga Yasumasa Suenaga
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: