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

Attaching to process via ShowMessageBoxOnError is broken

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b177

      Description

      ShowMessageBoxOnError allows us to enter 'yes' to attach to the failing process.

      This is currently broken and gdb outputs:
      /pr: No such file or directory.

      The bug seems to be in os::start_debugging and the line:
      jio_snprintf(buf, sizeof(buf), "gdb /proc/%d/exe %d",

      buf is a char* and sizeof(buf) always returns 8 (or 4).

      This is broken on multiple platforms.

        Attachments

          Activity

            People

            Assignee:
            gtriantafill George Triantafillou (Inactive)
            Reporter:
            stefank Stefan Karlsson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: