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

Hotspot crashes running DrawIMGPerf with hprof on Solaris

XMLWordPrintable

    • beta2
    • sparc
    • solaris_7
    • Not verified

      The bug is reproducible at least on Merlin builds 51 and 50 on
      Solaris 2.7 (appropriately patched).

      I was trying to profile an OutOfMemoryError when I bumped into
      this bug.

      Compile and run DrawIMGPerf test from
      <merlin ws>/src/share/test/java2d

      java -Xrunhprof DrawIMGPerf scale

      When it throws OutOfMemoryError (happens after about 10 min on my Ultra 60),
      hit Ctrl-C to exit the application.
      Hotspot crashes with the following stack trace:

      Unexpected Signal : 10 occurred at PC=0xfe63e16c
      Function name=JVM_RaiseSignal
      Library=/usr/local/java/jdk1.4/solsparc/jre/lib/sparc/client/libjvm.so

      Current Java thread:
              at java.lang.Shutdown.halt(Native Method)
              at java.lang.Shutdown.exit(Shutdown.java:214)
              at java.lang.Terminator$1.handle(Terminator.java:38)
              at sun.misc.Signal$1.run(Signal.java:198)
              at java.lang.Thread.run(Thread.java:579)

      Dynamic libraries:
      0x10000 /usr/local/java/jdk1.4/solsparc/bin/../bin/sparc/native_threads/java
      0xff350000 /usr/lib/libthread.so.1
      0xff390000 /usr/lib/libdl.so.1
      0xff280000 /usr/lib/libc.so.1
      0xff270000 /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1
      0xfe400000 /usr/local/java/jdk1.4/solsparc/jre/lib/sparc/client/libjvm.so
      0xff200000 /usr/lib/libCrun.so.1
      0xff1e0000 /usr/lib/libsocket.so.1
      0xff100000 /usr/lib/libnsl.so.1
      0xff0d0000 /usr/lib/libm.so.1
      0xff230000 /usr/lib/libw.so.1
      0xff0b0000 /usr/lib/libmp.so.2
      0xff090000 /usr/local/java/jdk1.4/solsparc/jre/lib/sparc/native_threads/libhpi.so
      0xff060000 /usr/local/java/jdk1.4/solsparc/jre/lib/sparc/libverify.so
      0xff020000 /usr/local/java/jdk1.4/solsparc/jre/lib/sparc/libjava.so
      0xfe7e0000 /usr/local/java/jdk1.4/solsparc/jre/lib/sparc/libzip.so
      0xfcfd0000 /usr/local/java/jdk1.4/solsparc/jre/lib/sparc/libhprof.so
      0xfaab0000 /usr/local/java/jdk1.4/solsparc/jre/lib/sparc/libawt.so
      0xf4300000 /usr/local/java/jdk1.4/solsparc/jre/lib/sparc/motif21/libmawt.so
      0xfa990000 /usr/local/java/jdk1.4/solsparc/bin/../jre/lib/sparc/libmlib_image.so
      0xf4080000 /usr/lib/libXm.so.4
      0xfa890000 /usr/openwin/lib/libXt.so.4
      0xfa860000 /usr/openwin/lib/libXext.so.0
      0xfa840000 /usr/openwin/lib/libXtst.so.1
      0xf3f80000 /usr/openwin/lib/libX11.so.4
      0xfa820000 /usr/openwin/lib/libSM.so.6
      0xf47d0000 /usr/openwin/lib/libICE.so.6
      0xf3e80000 /usr/local/java/jdk1.4/solsparc/jre/lib/sparc/libfontmanager.so
      0xf46e0000 /usr/local/java/jdk1.4/solsparc/bin/../jre/lib/sparc/libsunwjdga.so
      0xf46b0000 /usr/openwin/lib/libdga.so.1
      0xf3a00000 /usr/local/java/jdk1.4/solsparc/bin/../jre/lib/sparc/libmlib_image_v.so
      0xf4590000 /usr/local/java/jdk1.4/solsparc/bin/../jre/lib/sparc/libjdgaSUNWffb.so

      Local Time = Tue Feb 13 15:03:03 2001
      Elapsed Time = 2267
      #
      # HotSpot Virtual Machine Error : 10
      # Error ID : 4F530E43505002C3 01
      # Please report this error at
      # http://java.sun.com/cgi-bin/bugreport.cgi
      #
      # Java VM: Java HotSpot(TM) Client VM (1.4beta-B51 mixed mode)
      #

      ErrorID shows that is crashed in
      os.cpp, 707

      It does create a dump but it doesn't seem to be complete:
      the ROOT section is incompete
      HEAP DUMP, SITES, CPU SAMPLES|TIME and MONITOR DUMP|TIME records are generated
      at program exit. They can also be obtained during program execution by typing
      Ctrl-\ (on Solaris) or by typing Ctrl-Break (on Win32).

      --------

      THREAD START (obj=eb1f8, id = 1, name="Finalizer", group="system")
      THREAD START (obj=eb038, id = 2, name="Reference Handler", group="system")
      THREAD START (obj=6f2e0, id = 3, name="main", group="main")
      THREAD START (obj=157d38, id = 4, name="Signal Dispatcher", group="system")
      THREAD START (obj=157eb8, id = 5, name="CompileThread0", group="system")
      THREAD START (obj=483a48, id = 6, name="AWT-Shutdown", group="main")
      THREAD START (obj=4bf090, id = 7, name="AWT-Motif", group="main")
      THREAD END (id = 6)
      THREAD START (obj=269ee8, id = 8, name="AWT-Shutdown", group="main")
      THREAD START (obj=2e9218, id = 9, name="AWT-EventQueue-0", group="main")
      THREAD START (obj=616c00, id = 10, name="SIGINT handler", group="system")
      THREAD START (obj=4bf210, id = 11, name="Shutdown-Thread", group="system")
      THREAD END (id = 11)
      TRACE 3434:
      sun.reflect.AccessorGenerator.emitBoxingContantPoolEntries(AccessorGenerator.java:275)
      sun.reflect.FieldAccessorGenerator.generate(FieldAccessorGenerator.java:348)
      sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:110)
      java.lang.reflect.Field.generateFieldAccessor(Field.java:663)
      ...
      ...
      TRACE 657:
      java.lang.StringBuffer.<init>(StringBuffer.java:118)
      java.lang.StringBuffer.<init>(StringBuffer.java:106)
      java.awt.Cursor.<clinit>(Cursor.java:154)
      java.awt.Window.init(Window.java:203)
      TRACE 597:
      DrawIMGPerf.main(DrawIMGPerf.java:127)
      HEAP DUMP BEGIN (21276 objects, 15002882 bytes) Tue Feb 13 13:46:28 2001
      ...
      ...
      ROOT 259300 (kind=<unknown>)
      ROOT 2590e0 (kind=<unknown>)
      ROOT 24df28 (kind=<unknown>)
      ROOT 24ddc8 (kind=<unknown>)
      ROOT 24d8e8 (kind=<unknown>)
      ROOT 24d888 (kind=<unknown>)
      ROOT 24d848 (kind=<unknown>)
      ROOT 24d828 (kind=<unknown>)
      ROOT 24d808 (kind=<unknown>)
      ROOT 239ff0 (kind=<unknown>)
      ROOT 4c3290 (kind=<unknown>)
      ROOT 4c0c40 (kind=<unknown>)

      and that's it.

      dmitri.trembovetski@eng 2001-02-13


      -----------------------------------------
      On a related note, I get this output when I run with -Xrunhprof:cpu=samples on Merlin b52:

      >
      > HPROF ERROR: thread local table NULL for env_id = 007CCB54,cannot bill cost
      > HPROF ERROR: thread local table NULL for env_id = 007655F4,cannot bill cost
      > HPROF ERROR: thread local table NULL for env_id = 007669A4,cannot bill cost
      > HPROF ERROR: thread local table NULL for env_id = 00769924,cannot bill cost
      > HPROF ERROR: thread local table NULL for env_id = 007CC154,cannot bill cost
      > HPROF ERROR: thread local table NULL for env_id = 0084D9F4,cannot bill cost
      > HPROF ERROR: thread local table NULL for env_id = 008509B4,cannot bill cost
      > HPROF ERROR: thread local table NULL for env_id = 00761A04,cannot bill cost
      > HPROF ERROR: thread local table NULL for env_id = 007CCB54,cannot bill cost
      > HPROF ERROR: thread local table NULL for env_id = 007655F4,cannot bill cost
      > HPROF ERROR: thread local table NULL for env_id = 007669A4,cannot bill cost
      > HPROF ERROR: thread local table NULL for env_id = 00769924,cannot bill cost
      > HPROF ERROR: thread local table NULL for env_id = 007CC154,cannot bill cost
      > HPROF ERROR: thread local table NULL for env_id = 0084D9F4,cannot bill cost
      > HPROF ERROR: thread local table NULL for env_id = 008509B4,cannot bill cost

      steve.wilson@Eng 2001-02-19

            mchung Mandy Chung (Inactive)
            tdv Dmitri Trembovetski (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: