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

Linux: sun.tools.debug.RemoteDebugger constructor throws java.lang.InternalError

    XMLWordPrintable

Details

    • linux-beta
    • x86
    • linux
    • Verified

    Description



      Name: asR10013 Date: 05/18/2000


          The sample code below shows incorrect behavior of RemoteDebugger constructor.
          Note that command reported by debugger is executed without errors when
      started manually from command prompt.
          Also note that problem exists only in classic JVM. Under Hotspot such
      behavior is not reproducable.
      ------------------------------ test.java -----------------------------
      import sun.tools.debug.*;
      import java.io.*;

      class test {

          public static void main(String args[]) throws Exception {
      String javaOpts = "-Xbootclasspath/a:"+System.getProperty("java.home") + File.separator + "../lib/tools.jar";
      RemoteDebugger d = new RemoteDebugger(javaOpts, null, true);
      d.close();
          }
      }
      ------------------------- classic jvm output -------------------------
      $ java -version
      java version "1.3.0beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0beta-b05)
      Classic VM (build 1.3.0beta-b05, green threads, nojit)
      $ $java test
      [debugger: starting child: /.automount/novo48/root/export/home1/jdk1.3/linux/jre/bin/java -classic -Xdebug -Djava.compiler=NONE -Xbootclasspath/a:/.automount/novo48/root/export/home1/jdk1.3/linux/jre/../lib/tools.jar sun.tools.agent.EmptyApp]
      [Internal debugger error: Failed to exec a child java interpreter with this command line: /.automount/novo48/root/export/home1/jdk1.3/linux/jre/bin/java -classic -Xdebug -Djava.compiler=NONE -Xbootclasspath/a:/.automount/novo48/root/export/home1/jdk1.3/linux/jre/../lib/tools.jar sun.tools.agent.EmptyApp]
      Exception in thread "main" java.lang.InternalError
              at sun.tools.debug.RemoteAgent.error(RemoteAgent.java:1427)
              at sun.tools.debug.RemoteAgent.<init>(RemoteAgent.java:261)
              at sun.tools.debug.RemoteDebugger.<init>(RemoteDebugger.java:59)
              at test.main(test.java:8)
      ------------------------- hotspot output -----------------------------
      $ java -hotspot -version
      java version "1.3.0beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0beta-b05)
      Java HotSpot(TM) Client VM (build 1.3.0beta-b03, mixed mode)
      $ java -hotspot test
      [debugger: starting child: /.automount/novo48/root/export/home1/jdk1.3/linux/jre/bin/java -classic -Xdebug -Djava.compiler=NONE -Xbootclasspath/a:/.automount/novo48/root/export/home1/jdk1.3/linux/jre/../lib/tools.jar sun.tools.agent.EmptyApp]
      [debugger: password returned: 3kdrht]
      [debugger: connected]
      [debugger: loading classes ...]
      [debugger: close(true)]
      ======================================================================

          The following tests from regression testsuite are failed due to this bug:
      sun/tools/debug/ArrayTest.java
      sun/tools/debug/ClassLoad.java
      sun/tools/debug/Fields.java
      sun/tools/debug/LongName.java
      sun/tools/debug/GC.java
      sun/tools/debug/SetFieldTest.java
      sun/tools/debug/AccessStaticFields.java
      sun/tools/debug/ManyThreadsAndGroups.java
      sun/tools/debug/StepUp.java
      sun/tools/debug/CallStackLength.java
      sun/tools/debug/GetMethodLineNumber.java
      sun/tools/debug/PrintInheritedMembers.java
      sun/tools/debug/RemoteStackVariableTest.java
      sun/tools/debug/AccessLocalInHighSlot.java
      sun/tools/debug/RemoteThreadTest.java
      sun/tools/debug/PassBreakOnInvokeStatic.java
      sun/tools/debug/RemoteDebuggerTest.java
      sun/tools/debug/RemoteStackFrameTest.java
      sun/tools/debug/RemoteArrayTest.java
      sun/tools/debug/RemoteClassTest.java
      sun/tools/debug/StepPastReturnToNative.java
      sun/tools/debug/RemoteClassTest02.java
      sun/tools/debug/StepOverDoubleException.java
      sun/tools/debug/AllowClassObjectGC.java
      sun/tools/debug/ThreadDeathEvent.java
      sun/tools/debug/ArrayAsObject.java
      sun/tools/debug/BreakStatus.java

      ======================================================================

      Attachments

        Issue Links

          Activity

            People

              caustinsunw Calvin Austin (Inactive)
              alssunw Als Als (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: