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

thrinfo002 fails: GetThreadInfo with null pointers crashes HotSpot VM

XMLWordPrintable

    • hopper
    • generic
    • generic
    • Verified



      Name: elR10090 Date: 12/10/2001


      The following test from testbase_nsk crashes the Hotspot VM
      (build 1.4.0-rc-b89) on all platforms in all modes:

          nsk/jvmdi/GetThreadInfo/thrinfo002

      The test exercises JVMDI function GetThreadInfo(thread, infoPtr).
      The test checks if the function returns:
        - JVMDI_ERROR_INVALID_THREAD if a value of the thread is null
        - JVMDI_ERROR_NULL_POINTER if a value of the infoPtr is null

      To reproduce the bug run in GammaBase/Bugs/<this bug number> directory:

          sh doit.sh <JAVA_HOME>

      Running the test outputs:

      java version "1.4.0-rc"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b89)
      Java HotSpot(TM) Client VM (build 1.4.0-rc-b89, mixed mode)

      Unexpected Signal : 11 occurred at PC=0xFE293174
      Function=[Unknown. Nearest: JVM_RaiseSignal+0x10964]
      Library=/export/ld54/java/dest/jdk1.4.0beta-b89/solsparc/jre/lib/sparc/client/libjvm.so

      Current Java thread:
              at thrinfo002.check(Native Method)
              at thrinfo002.run(thrinfo002.java:30)
              at thrinfo002.main(thrinfo002.java:26)

      Dynamic libraries:
      0x10000 /home/vpn/merlin/solsparc/bin/java
      0xff350000 /usr/lib/libthread.so.1
      0xff390000 /usr/lib/libdl.so.1
      0xff200000 /usr/lib/libc.so.1
      0xff330000 /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1
      0xfe000000 /export/ld54/java/dest/jdk1.4.0beta-b89/solsparc/jre/lib/sparc/client/libjvm.so
      0xff2d0000 /usr/lib/libCrun.so.1
      0xff1e0000 /usr/lib/libsocket.so.1
      0xff100000 /usr/lib/libnsl.so.1
      0xff0d0000 /usr/lib/libm.so.1
      0xff300000 /usr/lib/libw.so.1
      0xff0b0000 /usr/lib/libmp.so.2
      0xff080000 /export/ld54/java/dest/jdk1.4.0beta-b89/solsparc/jre/lib/sparc/native_threads/libhpi.so
      0xff050000 /export/ld54/java/dest/jdk1.4.0beta-b89/solsparc/jre/lib/sparc/libverify.so
      0xff020000 /export/ld54/java/dest/jdk1.4.0beta-b89/solsparc/jre/lib/sparc/libjava.so
      0xfe7e0000 /export/ld54/java/dest/jdk1.4.0beta-b89/solsparc/jre/lib/sparc/libzip.so
      0xfe5b0000 ./sparc/libthrinfo002.so

      Local Time = Mon Dec 10 14:58:23 2001
      Elapsed Time = 0
      #
      # HotSpot Virtual Machine Error : 11
      # Error ID : 4F530E43505002D3 01
      # Please report this error at
      # http://java.sun.com/cgi-bin/bugreport.cgi
      #
      # Java VM: Java HotSpot(TM) Client VM (1.4.0-rc-b89 mixed mode)
      #
      # An error report file has been saved as hs_err_pid8488.log.
      # Please refer to the file for further information.
      #
      Abort
      Exit Code: 134

      (Error ID: os.cpp, 723)
      ======================================================================

            dcubed Daniel Daugherty
            latkinsunw Latkin Latkin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: