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

VM crashes while executing resumed thread after popping a frame

XMLWordPrintable

    • generic
    • generic



      Name: egR10015 Date: 02/12/2001



      HotSpot 1.4.0beta-b51 fails to pass the test

      nsk/jvmdi/PopFrame/popframe004

      from testbase_nsk on all platforms. The VM crashes with the error ID
      4F530E43505002C3 (os.cpp, 707).

      The test checks that a method's frame can be popped by the JVMDI function
      PopFrame() from a thread, which is different than a tested thread.
      The tested thread executes the inner class popFrameCls (see the source file
      popframe004.java). In that thread the Java method run() calls the native method
      nativeMeth(), the native method nativeMeth() calls another one native method
      nativeMeth2(), which finally calls the Java method activeMethod().
      This activeMethod()'s frame the test from another thread tries to pop.
      The frame is successfully popped, but when the test resumes the tested thread,
      the VM crashes with the error mentioned above.

      To reproduce the bug run
      doit.ksh <jdk root directory>
      in
      /net/sqesvr/export/vsn/GammaBase/Bugs/<this bug number>

      --------------------- output from Solsparc ------------------------
      $ doit.ksh /home/eug/hotspot/jdk1.4/solsparc
      java version "1.4.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b51)
      Java HotSpot(TM) Client VM (build 1.4beta-B51, mixed mode)
      nativeMeth(): calling the native nativeMeth2()
      nativeMeth2(): calling the Java activeMethod()
      popFrameCls (Thread[Thread-0,5,main]): inside the activeMethod()
      Going to pop the frame...
      >>>>>>>> Invoke SuspendThread()
      <<<<<<<< SuspendThread() is successfully done
      >>>>>>>> Invoke PopFrame()
      Check #1 PASSED: PopFrame() is successfully done
      Check #2 PASSED: No JVMDI events were generated by the function PopFrame()
      >>>>>>>> Invoke ResumeThread()
      <<<<<<<< ResumeThread() is successfully done
      =============== DEBUG MESSAGE: unimplemented bytecode ================

      =============== DEBUG MESSAGE: illegal bytecode sequence - method not verified
      ================


      Unexpected Signal : 4 occurred at PC=0xfac04f08
      Function name=(N/A)
      Library=(N/A)

      NOTE: We are unable to locate the function name symbol for the error
            just occurred. Please refer to release documentation for possible
            reason and solutions.



      Current Java thread:

      Dynamic libraries:
      0x10000 /home/eug/hotspot/jdk1.4/solsparc/bin/../bin/sparc/native_threads/java
      0xff360000 /usr/lib/libthread.so.1
      0xff3a0000 /usr/lib/libdl.so.1
      0xff280000 /usr/lib/libc.so.1
      0xff270000 /usr/platform/SUNW,Ultra-1/lib/libc_psr.so.1
      0xfe400000
      /export/ld50/java/dest/jdk1.4.0beta-b51/solsparc/jre/lib/sparc/client/libjvm.so
      0xff210000 /usr/lib/libCrun.so.1
      0xff1f0000 /usr/lib/libsocket.so.1
      0xff100000 /usr/lib/libnsl.so.1
      0xff0d0000 /usr/lib/libm.so.1
      0xff240000 /usr/lib/libw.so.1
      0xff0b0000 /usr/lib/libmp.so.2
      0xff090000
      /export/ld50/java/dest/jdk1.4.0beta-b51/solsparc/jre/lib/sparc/native_threads/libhpi.so
      0xff060000 /export/ld50/java/dest/jdk1.4.0beta-b51/solsparc/jre/lib/sparc/libverify.so
      0xff020000 /export/ld50/java/dest/jdk1.4.0beta-b51/solsparc/jre/lib/sparc/libjava.so
      0xfe7e0000 /export/ld50/java/dest/jdk1.4.0beta-b51/solsparc/jre/lib/sparc/libzip.so
      0xfcfe0000 /export/ld24/java/eug/evaluation/GammaBase/fug2file/sparc/libpopframe004.so

      Local Time = Mon Feb 12 20:39:30 2001
      Elapsed Time = 2
      #
      # HotSpot Virtual Machine Error : 4
      # 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 interpreted mode)
      #
      # An error report file has been saved as hs_err_pid13527.log.
      # Please refer to the file for further information.
      #
      doit.ksh[44]: 13527 Abort
      $
      --------------------------------------------------------------------------------

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

      Name: egR10015 Date: 02/14/2001


      This bug also affects the following test from testbase_nsk:

      nsk/jvmdi/PopFrame/popframe005

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

            rfield Robert Field (Inactive)
            eugsunw Eug Eug (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: