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

TTY: Jdb should not try to get event request manager for read-only connectors

XMLWordPrintable

    • b49
    • generic
    • generic
    • Verified



      Name: tb29552 Date: 04/12/2004

      ###@###.### writes:

      >I think jdb needs a fix here. Jdb should not try to get event
      > request manager for read-only connectors.
      >
      >> root@localhost root]# jdb -connect
      >>
      sun.jvm.hotspot.jdi.SACoreAttachingConnector:javaExecutable=/usr/java/j2sdk1.5.0/bin/java

      >>
      >> java.io.IOException
      >> at
      >>
      sun.jvm.hotspot.jdi.SACoreAttachingConnector.attach(SACoreAttachingConnector.java:110)

      >>
      >> at
      >> com.sun.tools.example.debug.tty.VMConnection.attachTarget(VMConnection.java:357)
      >>
      >> at
      >> com.sun.tools.example.debug.tty.VMConnection.open(VMConnection.java:168)
      >> at com.sun.tools.example.debug.tty.Env.init(Env.java:63)
      >> at com.sun.tools.example.debug.tty.TTY.main(TTY.java:964)
      >> Caused by: java.lang.reflect.InvocationTargetException
      >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      >> at
      >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      >>
      >> at
      >>
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      >>
      >> at java.lang.reflect.Method.invoke(Method.java:495)
      >> at
      >>
      sun.jvm.hotspot.jdi.SACoreAttachingConnector.attach(SACoreAttachingConnector.java:97)

      >>
      >> ... 4 more
      >> Caused by: sun.jvm.hotspot.debugger.UnmappedAddressException
      >> at
      >> sun.jvm.hotspot.debugger.PageCache.checkPage(PageCache.java:191)
      >> at sun.jvm.hotspot.debugger.PageCache.getData(PageCache.java:46)
      >> at
      >> sun.jvm.hotspot.debugger.DebuggerBase.readBytes(DebuggerBase.java:188)
      >> at
      >>
      sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.readCInteger(LinuxDebuggerLocal.java:442)

      >>
      >> at
      >> sun.jvm.hotspot.debugger.DebuggerBase.readAddressValue(DebuggerBase.java:425)
      >>
      >> at
      >>
      sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.readOopHandle(LinuxDebuggerLocal.java:402)

      >>
      >> at
      >> sun.jvm.hotspot.debugger.linux.LinuxAddress.getOopHandleAt(LinuxAddress.java:97)
      >>
      >> at sun.jvm.hotspot.oops.Oop.getKlassForOopHandle(Oop.java:175)
      >> at sun.jvm.hotspot.oops.ObjectHeap.newOop(ObjectHeap.java:335)
      >> at
      >> sun.jvm.hotspot.utilities.HashtableEntry.literal(HashtableEntry.java:36)
      >> at sun.jvm.hotspot.memory.SymbolTable.probe(SymbolTable.java:71)
      >> at sun.jvm.hotspot.memory.SymbolTable.probe(SymbolTable.java:57)
      >> at
      >>
      sun.jvm.hotspot.jdi.VirtualMachineImpl.initClassNameSymbols(VirtualMachineImpl.java:156)

      >>
      >> at
      >> sun.jvm.hotspot.jdi.VirtualMachineImpl.init(VirtualMachineImpl.java:174)
      >> at
      >>
      sun.jvm.hotspot.jdi.VirtualMachineImpl.createVirtualMachineForCorefile(VirtualMachineImpl.java:192)

      >>
      >> ... 9 more
      >>

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

      Name: ipR10196 Date: 04/22/2004


      This bug affects the following SA-JDI tests of testbase_vm:

          nsk/sajdi/jdb/options/connect/connect001
          nsk/sajdi/jdb/options/connect/connect002
          nsk/sajdi/jdb/options/connect/connect003
          nsk/sajdi/jdb/options/connect/connect004

      These are new tests for SA-JDI connectors support in JDB,
      which will appear in the next r29 release of testbase_vm
      coming soon.


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

            tbell Tim Bell
            tbell Tim Bell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: