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

Attaching to process via ShowMessageBoxOnError is broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 10
    • 9
    • hotspot
    • None
    • b177

      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.

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

              Created:
              Updated:
              Resolved: