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

-Xrunhprof crashed jvm or got program run to hang

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      beta3
    • CPU:
      generic, sparc
    • OS:
      generic, solaris_7, solaris_8
    • Verification:
      Verified

      Description


      I ran -Xrunhprof options:
        -Xrunhprof:heap=dump
        -Xrunhprof:heap=all
        -Xrunhprof:cpu=times
        -Xrunhprof:cpu=samples

      with a few benchmark programs(totally 3 programs) against jdk1.4 b74, only -Xrunhprof:cpu=samples worked ok for all programs, the other three either
      crashed jvm or got the run to hang(and ignored cltr-C signal).

      To reproduce:

      % uname -a
      SunOS vispro 5.7 Generic_106541-16 sun4u sparc SUNW,Ultra-30

      % jdk1.4/bin/java -version
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta_refresh-b74)
      Java HotSpot(TM) Client VM (build 1.4.0-beta_refresh-b74, mixed mode)

      % cd /home/zzhang/bugs/footprint
      % jdk1.4/bin/java -Xrunhprof:cpu=times -cp jmol-0.2/jars/jmol.jar -Djmol.home=jmol-0.2 jmol.Jmol
      HPROF ERROR: thread local table NULL in method exit a00dc
      HPROF ERROR: thread local table NULL in method exit a00dc
      HPROF ERROR: thread local table NULL in method exit a0a8c
      HPROF ERROR : stack underflow in method exit
      HPROF ERROR : stack underflow in method exit

      Unexpected Signal : 11 occurred at PC=0xFE59C8A4
      Function=JVM_IsInterrupted+0xC30
      Library=/net/vispro/export/home2/zzhang/sugarland/java/jdk1.4_b74/jre/lib/sparc/client/libjvm.so


      Dynamic libraries:
      0x10000 /net/vispro/export/home2/zzhang/sugarland/java/jdk1.4/bin/java
      0xff360000 /usr/lib/libthread.so.1
      0xff3a0000 /usr/lib/libdl.so.1
      0xff280000 /usr/lib/libc.so.1
      0xff260000 /usr/platform/SUNW,Ultra-30/lib/libc_psr.so.1
      0xfe400000 /net/vispro/export/home2/zzhang/sugarland/java/jdk1.4_b74/jre/lib/sparc/client/libjvm.so
      0xff210000 /usr/lib/libCrun.so.1
      0xff1f0000 /usr/lib/libsocket.so.1
      0xff100000 /usr/lib/libnsl.so.1
      0xff1c0000 /usr/lib/libm.so.1
      0xff240000 /usr/lib/libw.so.1
      0xff0e0000 /usr/lib/libmp.so.2
      0xff090000 /net/vispro/export/home2/zzhang/sugarland/java/jdk1.4_b74/jre/lib/sparc/native_threads/libhpi.so
      0xff060000 /net/vispro/export/home2/zzhang/sugarland/java/jdk1.4_b74/jre/lib/sparc/libverify.so
      0xff030000 /net/vispro/export/home2/zzhang/sugarland/java/jdk1.4_b74/jre/lib/sparc/libjava.so
      0xfe7e0000 /net/vispro/export/home2/zzhang/sugarland/java/jdk1.4_b74/jre/lib/sparc/libzip.so
      0xfe200000 /net/vispro/export/home2/zzhang/sugarland/java/jdk1.4_b74/jre/lib/sparc/libhprof.so
      0xf3f00000 /net/vispro/export/home2/zzhang/sugarland/java/jdk1.4_b74/jre/lib/sparc/libawt.so
      0xfa480000 /net/vispro/export/home2/zzhang/sugarland/java/jdk1.4_b74/jre/lib/sparc/libmlib_image.so
      0xfc920000 /net/vispro/export/home2/zzhang/sugarland/java/jdk1.4_b74/jre/lib/sparc/motif21/libmawt.so
      0xf3c80000 /usr/dt/lib/libXm.so.4
      0xfc810000 /usr/openwin/lib/libXt.so.4
      0xfa7d0000 /usr/openwin/lib/libXext.so.0
      0xfe150000 /usr/openwin/lib/libXtst.so.1
      0xf3b80000 /usr/openwin/lib/libX11.so.4
      0xfa6a0000 /usr/openwin/lib/libdps.so.5
      0xfa7b0000 /usr/openwin/lib/libSM.so.6
      0xfa5d0000 /usr/openwin/lib/libICE.so.6
      0xf3a80000 /net/vispro/export/home2/zzhang/sugarland/java/jdk1.4_b74/jre/lib/sparc/libfontmanager.so
      0xfa790000 /net/vispro/export/home2/zzhang/sugarland/java/jdk1.4_b74/jre/lib/sparc/libnio.so
      0xfa5b0000 /usr/lib/libposix4.so.1
      0xfa450000 /net/vispro/export/home2/zzhang/sugarland/java/jdk1.4_b74/jre/lib/sparc/libnet.so
      0xfa590000 /usr/lib/libaio.so.1

      Local Time = Tue Aug 7 16:19:05 2001
      Elapsed Time = 10
      #
      # HotSpot Virtual Machine Error : 11
      # Error ID : 4F530E43505002D7 01
      # Please report this error at
      # http://java.sun.com/cgi-bin/bugreport.cgi
      #
      # Java VM: Java HotSpot(TM) Client VM (1.4.0-beta_refresh-b74 mixed mode)
      #
      # An error report file has been saved as hs_err_pid9941.log.
      # Please refer to the file for further information.
      #
      Abort


      % jdk1.4/bin/java -Xrunhprof:heap=all -cp jmol-0.2/jars/jmol.jar -Djmol.home=jmol-0.2 jmol.Jmol

      the run would hang there.

      to run the other two programs, under the same directory:

      % jdk1.4/bin/java -cp TeaTimeJ/teatime.jar mm.project.teatime

      % cd mailpuccino
      % jdk1.4/bin/java -cp mailpuccino.jar Mailpuccino


      jdk1.3.1 seemed to work file with all these.

      Name: rmT116609 Date: 09/14/2001


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


      -Xrunhprof:cpu=times dumps core in jdk1.4beta2.

      -Xrunhprof:cpu=old dumps core in jdk1.4beta2.

      -Xrunhprof:monitor=y sometimes dumps core (more often than in
       jdk1.2 and jdk1.3 (I wonder what happened to that bug report)).

      -Xrunhprof:cpu=samples seems to work.

      % cat hello.java
      public class hello
      {
          public static void main(String args[])
          {
              System.out.println("hello world");
          }
      }
      % /usr/java1.4/bin/javac hello.java
      % /usr/java1.4/bin/java hello
      hello world
      % /usr/java1.4/bin/java -Xrunhprof:cpu=times hello
      HPROF ERROR: thread local table NULL in method exit 9ef44
      HPROF ERROR: thread local table NULL in method exit 9ef44
      HPROF ERROR: thread local table NULL in method exit 9f8f4
      HPROF ERROR : stack underflow in method exit
      HPROF ERROR : stack underflow in method exit

      Unexpected Signal : 11 occurred at PC=0xFE550710
      Function=JVM_IsSupportedJNIVersion+0x30B30
      Library=/usr/java1.4/jre/lib/sparc/client/libjvm.so

      Current Java thread:

      Dynamic libraries:
      0x10000 /usr/java1.4/bin/java
      0xff360000 /usr/lib/libthread.so.1
      0xff3a0000 /usr/lib/libdl.so.1
      0xff200000 /usr/lib/libc.so.1
      0xff330000 /usr/platform/SUNW,UltraSPARC-IIi-cEngine/lib/libc_psr.so.1
      0xfe400000 /usr/java1.4/jre/lib/sparc/client/libjvm.so
      0xff2e0000 /usr/lib/libCrun.so.1
      0xff1e0000 /usr/lib/libsocket.so.1
      0xff100000 /usr/lib/libnsl.so.1
      0xff0d0000 /usr/lib/libm.so.1
      0xff310000 /usr/lib/libw.so.1
      0xff0b0000 /usr/lib/libmp.so.2
      0xff080000 /usr/java1.4/jre/lib/sparc/native_threads/libhpi.so
      0xff050000 /usr/java1.4/jre/lib/sparc/libverify.so
      0xff020000 /usr/java1.4/jre/lib/sparc/libjava.so
      0xfe7e0000 /usr/java1.4/jre/lib/sparc/libzip.so
      0xfe1d0000 /usr/java1.4/jre/lib/sparc/libhprof.so

      Local Time = Fri Sep 14 11:31:32 2001
      Elapsed Time = 1
      #
      # HotSpot Virtual Machine Error : 11
      # Error ID : 4F530E43505002D7 01
      # Please report this error at
      # http://java.sun.com/cgi-bin/bugreport.cgi
      #
      # Java VM: Java HotSpot(TM) Client VM (1.4.0-beta2-b77 mixed mode)
      #
      # An error report file has been saved as hs_err_pid8575.log.
      # Please refer to the file for further information.
      #
      Abort (core dumped)
      (134)
      % /usr/java1.4/bin/java -Xrunhprof:cpu=old hello
      HPROF ERROR: thread local table NULL in method exit 9ef54
      HPROF ERROR: thread local table NULL in method exit 9ef54
      HPROF ERROR: thread local table NULL in method exit 9f904
      HPROF ERROR : stack underflow in method exit
      HPROF ERROR : stack underflow in method exit

      Unexpected Signal : 11 occurred at PC=0xFE550710
      Function=JVM_IsSupportedJNIVersion+0x30B30
      Library=/usr/java1.4/jre/lib/sparc/client/libjvm.so

      Current Java thread:

      Dynamic libraries:
      0x10000 /usr/java1.4/bin/java
      0xff360000 /usr/lib/libthread.so.1
      0xff3a0000 /usr/lib/libdl.so.1
      0xff200000 /usr/lib/libc.so.1
      0xff330000 /usr/platform/SUNW,UltraSPARC-IIi-cEngine/lib/libc_psr.so.1
      0xfe400000 /usr/java1.4/jre/lib/sparc/client/libjvm.so
      0xff2e0000 /usr/lib/libCrun.so.1
      0xff1e0000 /usr/lib/libsocket.so.1
      0xff100000 /usr/lib/libnsl.so.1
      0xff0d0000 /usr/lib/libm.so.1
      0xff310000 /usr/lib/libw.so.1
      0xff0b0000 /usr/lib/libmp.so.2
      0xff080000 /usr/java1.4/jre/lib/sparc/native_threads/libhpi.so
      0xff050000 /usr/java1.4/jre/lib/sparc/libverify.so
      0xff020000 /usr/java1.4/jre/lib/sparc/libjava.so
      0xfe7e0000 /usr/java1.4/jre/lib/sparc/libzip.so
      0xfe1d0000 /usr/java1.4/jre/lib/sparc/libhprof.so

      Local Time = Fri Sep 14 11:31:36 2001
      Elapsed Time = 1
      #
      # HotSpot Virtual Machine Error : 11
      # Error ID : 4F530E43505002D7 01
      # Please report this error at
      # http://java.sun.com/cgi-bin/bugreport.cgi
      #
      # Java VM: Java HotSpot(TM) Client VM (1.4.0-beta2-b77 mixed mode)
      #
      # An error report file has been saved as hs_err_pid8578.log.
      # Please refer to the file for further information.
      #
      Abort (core dumped)
      (134)
      % /usr/java1.4/bin/java -Xrunhprof:monitor=y hello
      hello world
      Dumping contended monitor usage ... done.
      % /usr/java1.4/bin/java -Xrunhprof:monitor=y hello
      hello world
      Dumping contended monitor usage ... done.
      % /usr/java1.4/bin/java -Xrunhprof:monitor=y hello
      hello world
      Dumping contended monitor usage ... done.
      % /usr/java1.4/bin/java -Xrunhprof:monitor=y hello
      Segmentation fault (core dumped)
      (139)
      %
      (Review ID: 131918)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mchung Mandy Chung
              Reporter:
              duke J. Duke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: