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

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

XMLWordPrintable

    • 1.0.2
    • sparc
    • generic
    • Verified

      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.
       

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: