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

SA-JDI: SAPIDAttachingConnector.attach() throws IOEception on RH AS2.1

XMLWordPrintable

    • x86
    • linux

      Name: ipR10196 Date: 02/17/2004


      --------------------------------------
      Test : nsk/sajdi/SAPIDAttachingConnector/attach/attach001
      VM : ClientVM, ServerVM
      Mode : all
      Platform : x86
      OS : Redhat AS 2.1
      JDK : 1.5.0-b38
      ----------------------------------------

      Since the following bug

        4975660 SA-JDI: SAPIDAttachingConnector.attach() causes debugger VM crash on
      Linux

      was fixed in Tiger-b38 SA-JDI connectors do not crash on Linux.

      However, SAPIDAttachingConnector still fail on Linux intermittently.
      Sometimes it throws IOException with no description.
      I noticed this failure often on Redhat AS 2.1 and never on Redhat Linux 9.0.

      To reproduce the failure:
        cd /net/jano.sfbay/export/disk20/GammaBase/Bugs/<this bug number>
        sh build.sh $JAVA_HOME
        sh run.sh [-g] [-v] $JAVA_HOME [JAVA_OPTS]
      where
          -g - run test with java_g binaries
          -v - run test in verbose mode

      Here is test output:
      ------------------------------------------------------------------
      OS info:
      Red Hat Linux Advanced Server release 2.1AS/\m (Pensacola)
      Linux java10 2.4.9-e.3 #1 Fri May 3 17:02:43 EDT 2002 i686 unknown
      Run: nsk/sajdi/SAPIDAttachingConnector/attach/attach001

      script>
      script> Check if feature not implemented:
      sun.jvm.hotspot.jdi.SAPIDAttachingConnector
      script> Feature is implemented: sun.jvm.hotspot.jdi.SAPIDAttachingConnector
      script>
      script> Run SA-JDI test:
      script> DEBUGGER_CLASS: nsk/sajdi/SAPIDAttachingConnector/attach/attach001
      script> DEBUGGEE_CLASS: nsk/sajdi/SAPIDAttachingConnector/attach/attach001a
      script> TEST_OPTS: -arch=linux -waittime=1 -debugee.vmkind=java
      -connector=attaching_pid -debugee.vmkeys= -verbose
      script> CONNECTOR_NAME: sun.jvm.hotspot.jdi.SAPIDAttachingConnector
      script> DEBUGGER_JAVA: /export/ld24/java/hotspot/jdk1.5/linux/bin/java
      script> JAVA_OPTS:
      script> DEBUGGEE_JAVA: /export/ld24/java/hotspot/jdk1.5/linux/bin/java
      script> JAVA_OPTS:
      script>
      script> Check if generated files exist: debuggee.status DebugServer.status
      script> # WARNING: Delete existing file: debuggee.status
      script>
      script> Run debuggee: nsk/sajdi/SAPIDAttachingConnector/attach/attach001a
      script> Debuggee VM process started with pid: 31168
      script>
      script> Wait for debuggee class to become ready within timeout: 60 seconds
      script> - not ready: 0 seconds
      Debuggee class started
      Debuggee class ready for debugging
      DEBUGGEE_READY_FOR_DEBUGGING
      script> Debuggee VM got ready for debugging
      script>
      script> Run debugger: nsk/sajdi/SAPIDAttachingConnector/attach/attach001
      Check AttachingConnector.attach() with sa-jdi connector:
          connector: sun.jvm.hotspot.jdi.SAPIDAttachingConnector
          pid: 31168
      Find connector in VirtualMachineManager.attachingConnectors():
          name: com.sun.jdi.SocketAttach
          name: sun.jvm.hotspot.jdi.SACoreAttachingConnector
          name: sun.jvm.hotspot.jdi.SADebugServerAttachingConnector
          name: sun.jvm.hotspot.jdi.SAPIDAttachingConnector
      Found AttachingConnector:
          name: sun.jvm.hotspot.jdi.SAPIDAttachingConnector
          transport: null
          description: This connector allows you to attach to a Java process using the
      Serviceability Agent
      Set arguments for AttachingConnector:
          name: pid, value: 31168
      Attaching to target VM
      libsaproc WARNING: symbol table build failed for
      /.automount/novo109/root/export/home1/java/dest/jdk1.5.0-b38/linux-i586/jre/lib/i386/native_threads/libhpi.so
      libsaproc WARNING: symbol table build failed for
      /.automount/novo109/root/export/home1/java/dest/jdk1.5.0-b38/linux-i586/jre/lib/i386/libverify.so
      libsaproc WARNING: symbol table build failed for
      /.automount/novo109/root/export/home1/java/dest/jdk1.5.0-b38/linux-i586/jre/lib/i386/libjava.so
      libsaproc WARNING: symbol table build failed for
      /.automount/novo109/root/export/home1/java/dest/jdk1.5.0-b38/linux-i586/jre/lib/i386/libzip.so
      libsaproc WARNING: ptrace(PTRACE_PEEKDATA, ..) failed for 4 bytes @ 4002ee6c
      libsaproc WARNING: can't create libthread_db agent
      Target VM attached
      Check target VM readonly status
          canBeModified: false
      Dispose target VM
      Target VM disposed
      libsaproc DEBUG: lookup failed for symbol '__vt_10JavaThread' in obj 'libjvm.so'
      libsaproc DEBUG: lookup failed for symbol '__vt_10JavaThread' in obj
      'libjvm_g.so'
      libsaproc DEBUG: lookup failed for symbol '__vt_10JavaThread' in obj 'libjvm.so'
      libsaproc DEBUG: lookup failed for symbol '__vt_10JavaThread' in obj
      'libjvm_g.so'
      script> Debugger finished with exit status: 95
      script>
      script> Kill debuggee VM process for pid: 31168
      script> Wait for debuggee VM process terminated: 31168
      script> Debuggee VM terminated with exit status: 137
      script>
      script> Test exit status: 95
      Test exit status: 95

      script>
      script> Check if feature not implemented:
      sun.jvm.hotspot.jdi.SAPIDAttachingConnector
      script> Feature is implemented: sun.jvm.hotspot.jdi.SAPIDAttachingConnector
      script>
      script> Run SA-JDI test:
      script> DEBUGGER_CLASS: nsk/sajdi/SAPIDAttachingConnector/attach/attach001
      script> DEBUGGEE_CLASS: nsk/sajdi/SAPIDAttachingConnector/attach/attach001a
      script> TEST_OPTS: -arch=linux -waittime=1 -debugee.vmkind=java
      -connector=attaching_pid -debugee.vmkeys= -verbose
      script> CONNECTOR_NAME: sun.jvm.hotspot.jdi.SAPIDAttachingConnector
      script> DEBUGGER_JAVA: /export/ld24/java/hotspot/jdk1.5/linux/bin/java
      script> JAVA_OPTS:
      script> DEBUGGEE_JAVA: /export/ld24/java/hotspot/jdk1.5/linux/bin/java
      script> JAVA_OPTS:
      script>
      script> Check if generated files exist: debuggee.status DebugServer.status
      script> # WARNING: Delete existing file: debuggee.status
      script>
      script> Run debuggee: nsk/sajdi/SAPIDAttachingConnector/attach/attach001a
      script> Debuggee VM process started with pid: 31219
      script>
      script> Wait for debuggee class to become ready within timeout: 60 seconds
      script> - not ready: 0 seconds
      Debuggee class started
      Debuggee class ready for debugging
      DEBUGGEE_READY_FOR_DEBUGGING
      script> Debuggee VM got ready for debugging
      script>
      script> Run debugger: nsk/sajdi/SAPIDAttachingConnector/attach/attach001
      Check AttachingConnector.attach() with sa-jdi connector:
          connector: sun.jvm.hotspot.jdi.SAPIDAttachingConnector
          pid: 31219
      Find connector in VirtualMachineManager.attachingConnectors():
          name: com.sun.jdi.SocketAttach
          name: sun.jvm.hotspot.jdi.SACoreAttachingConnector
          name: sun.jvm.hotspot.jdi.SADebugServerAttachingConnector
          name: sun.jvm.hotspot.jdi.SAPIDAttachingConnector
      Found AttachingConnector:
          name: sun.jvm.hotspot.jdi.SAPIDAttachingConnector
          transport: null
          description: This connector allows you to attach to a Java process using the
      Serviceability Agent
      Set arguments for AttachingConnector:
          name: pid, value: 31219
      Attaching to target VM
      libsaproc WARNING: symbol table build failed for
      /.automount/novo109/root/export/home1/java/dest/jdk1.5.0-b38/linux-i586/jre/lib/i386/native_threads/libhpi.so
      libsaproc WARNING: symbol table build failed for
      /.automount/novo109/root/export/home1/java/dest/jdk1.5.0-b38/linux-i586/jre/lib/i386/libverify.so
      libsaproc WARNING: symbol table build failed for
      /.automount/novo109/root/export/home1/java/dest/jdk1.5.0-b38/linux-i586/jre/lib/i386/libjava.so
      libsaproc WARNING: symbol table build failed for
      /.automount/novo109/root/export/home1/java/dest/jdk1.5.0-b38/linux-i586/jre/lib/i386/libzip.so
      libsaproc WARNING: ptrace(PTRACE_PEEKDATA, ..) failed for 4 bytes @ 4002ee6c
      libsaproc WARNING: can't create libthread_db agent
      libsaproc WARNING: ptrace(PTRACE_PEEKDATA, ..) failed for 4096 bytes @ 4049c000
      # ERROR: IOException while attaching with
      sun.jvm.hotspot.jdi.SAPIDAttachingConnector:
      # ERROR: java.io.IOException
      java.io.IOException
              at
      sun.jvm.hotspot.jdi.SAPIDAttachingConnector.attach(SAPIDAttachingConnector.java:71)
              at
      nsk.sajdi.SAPIDAttachingConnector.attach.attach001.runIt(attach001.java:72)
              at
      nsk.sajdi.SAPIDAttachingConnector.attach.attach001.run(attach001.java:26)
              at
      nsk.sajdi.SAPIDAttachingConnector.attach.attach001.main(attach001.java:21)
      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:494)
              at
      sun.jvm.hotspot.jdi.SAPIDAttachingConnector.attach(SAPIDAttachingConnector.java:59)
              ... 3 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.linux.LinuxAddress.getCIntegerAt(LinuxAddress.java:51)
              at
      sun.jvm.hotspot.HotSpotTypeDataBase.getLongValueFromProcess(HotSpotTypeDataBase.java:385)
              at
      sun.jvm.hotspot.HotSpotTypeDataBase.readVMTypes(HotSpotTypeDataBase.java:79)
              at
      sun.jvm.hotspot.HotSpotTypeDataBase.<init>(HotSpotTypeDataBase.java:62)
              at sun.jvm.hotspot.HotSpotAgent.setupVM(HotSpotAgent.java:430)
              at sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:310)
              at sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:145)
              at
      sun.jvm.hotspot.jdi.VirtualMachineImpl.createVirtualMachineForPID(VirtualMachineImpl.java:209)
              ... 8 more
      #>
      #> SUMMARY: Following errors occured
      #> during test execution:
      #>
      # ERROR: IOException while attaching with
      sun.jvm.hotspot.jdi.SAPIDAttachingConnector:
      # ERROR: java.io.IOException
      libsaproc DEBUG: lookup failed for symbol '__vt_10JavaThread' in obj 'libjvm.so'
      libsaproc DEBUG: lookup failed for symbol '__vt_10JavaThread' in obj
      'libjvm_g.so'
      libsaproc DEBUG: lookup failed for symbol '__vt_10JavaThread' in obj 'libjvm.so'
      libsaproc DEBUG: lookup failed for symbol '__vt_10JavaThread' in obj
      'libjvm_g.so'
      script> Debugger finished with exit status: 97
      script> # ERROR: Debugger class returned fail status: 97
      script>
      script> Kill debuggee VM process for pid: 31219
      script> Wait for debuggee VM process terminated: 31219
      script> Debuggee VM terminated with exit status: 137
      script>
      script> Test exit status: 97
      Test exit status: 97
      ------------------------------------------------------------------

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

      Name: fh87463 Date: 04/26/2004


      Following tests also failed with the same reason.
      http://vmsqe.sfbay/pit/tiger/DTWS/results/20040422130132.azeem.baseline/ClientVM/LINUX-I586/mixed/VM/VM_QUICKLOOK5-PIT-VM-ClientVM-mixed-LINUX-I586-2004-04-26-12-50-32/analysis.html
      http://vmsqe.sfbay/pit/tiger/DTWS/results/20040422130132.azeem.baseline/ServerVM/LINUX-I586/mixed/VM/VM_QUICKLOOK5-PIT-VM-ServerVM-mixed-LINUX-I586-2004-04-22-17-56-46/analysis.html

      nsk/sajdi/Method/allLineLocations_ss/linelocs_ss001
      nsk/sajdi/ReferenceType/allLineLocations/linelocs001
      nsk/sajdi/ReferenceType/allLineLocations_ss/linelocs_ss001
      nsk/sajdi/ReferenceType/locationsOfLine_i/locofline_i001
      nsk/sajdi/ReferenceType/locationsOfLine_ssi/locofline_ssi001
      nsk/sajdi/ThreadGroupReference/threadGroups/thrdgrps001
      nsk/sajdi/ThreadReference/status/status001
      nsk/sajdi/VMCannotBeModifiedException/thrown/thrown002
      nsk/sajdi/Method/bytecodes/bytecodes001
      nsk/sajdi/Method/locationsOfLine_ssi/locofline_ssi001





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

      Name: fh87463 Date: 05/10/2004


      Following 3 bugs also failed with same reason.
      nsk/sajdi/Method/allLineLocations/linelocs001
      nsk/sajdi/Method/location/location001
      nsk/sajdi/Method/locationsOfLine_i/locofline_i001
      http://vmsqe.sfbay/pit/tiger/DTWS/results/20040506151601.azeem.baseline/ServerVM/LINUX-I586/mixed/VM/nsk.sajdi-PIT-VM-ServerVM-mixed-LINUX-I586-2004-05-07-03-12-22/analysis.html

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

            Unassigned Unassigned
            popovsunw Popov Popov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: