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

The debugger exits abruptly when dumping classes with static final String fields

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.0.2
    • CPU:
      sparc
    • OS:
      generic
    • Verification:
      Verified

      Description

      The Java debugger API dies while dumping (ie printing the fields of) classes with
      static final String fields.

      Given the following java code, the debugger API will exit abruptly when it tries to
      get the value of the field. Sometimes I got a message (from my debugger) that said
      "Received sigchild for 698 exit=6".

      ======== Java Source ===========
      class StaticStress {
      // this is a stripped down version of sun.tools.debug.AgentConstants
      static final String PSWDCHARS = "23456789abcdefghijkmnpqrstuvwxyz";
      }

      ======== jdb Transcript =========
       orbit 76 =>jdb
      Initializing jdb...
      >
      load StaticStress
      0xee30c4d8:class(StaticStress)
      > dump 0xee30c4d8
      0xee30c4d8 = 0xee30c4d8:class(StaticStress) {
          superclass = 0xee300018:class(java.lang.Object)
          loader = null

          static final String PSWDCHARS =
      The communications channel closed.
      ===============================

      In my debugger, the debugger API dies when I call:
        realValue.getFieldValue(index);
      where realValue is a remoteObject. for the StaticStress class.
       

        Attachments

          Activity

            People

            Assignee:
            tballsunw Tom Ball (Inactive)
            Reporter:
            drwhite Derek White
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: