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

Infinite loop reading types during jmap attach.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      svc
    • Resolved In Build:
      b56
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description


        Attaching jstack to a process can result in an infinite loop, as it reads type definitions, such as:

        Warning: the type "jboolean" (declared in the remote VM in VMStructs::localHotSpotVMTypes) had its size declared as -158127939785850880 twice. Continuing.
        Warning: the type "jboolean" (declared in the remote VM in VMStructs::localHotSpotVMTypes) had its size declared as -158127939785850880 twice. Continuing.
        Warning: the type "jboolean" (declared in the remote VM in VMStructs::localHotSpotVMTypes) had its size declared as -158127939785850880 twice. Continuing.
        Warning: the type "jboolean" (declared in the remote VM in VMStructs::localHotSpotVMTypes) had its size declared as -158127939785850880 twice. Continuing.
        Warning: the type "jboolean" (declared in the remote VM in VMStructs::localHotSpotVMTypes) had its size declared as -158127939785850880 twice. Continuing.
        Warning: the type "jboolean" (declared in the remote VM in VMStructs::localHotSpotVMTypes) had its size declared as -158127939785850880 twice. Conti...

        The type-reading loop, if reading bad data, can loop forever: we could implement a limit in that read to protect ourselves.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  kevinw Kevin Walls
                  Reporter:
                  kevinw Kevin Walls
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: