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

Throwable.printStackTrace crashes if you GC in the middle

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.2.0
    • 1.2.0
    • hotspot
    • 1.2beta4
    • sparc
    • solaris_2.6
    • Verified

      Using Java Plugin with Netscape 4.05 on Solaris 2.6 with JDK-1.2beta4-J, it's very easy to get the vm to crash. One of the easiest ways is to simply view 3 different pages in succession, or reload the same page 2 or 3 times. Eventually the vm will crash. The only error message given is in a Netscape window. There are some of these saved as gifs and attached to this bug report.

      Steps to reproduce:
      0) Install Netscape 4.05 by going to the Netscape website.
      1) Install the latest Java Plugin (1.1.1) from their external website.
      2) Turn off all Netscape security restrictions.
      3) Have Plugin point to JDK-1.2beta4-J.
      4) Load this page:
      http://javaweb.eng.sun.com/~mukundm/BrowserTesting/BT1.2/Suite/LLhtml/24/1.html#
      5) Once the page has loaded, reload it.
      6) Reload the page again.
      7) If it still hasn't crashed, click on the "Next" button in the top right corner.
      RESULT: Eventually vm will crash, and Netscape will show a window with an error message that reads:
      SIGSEGV 11* segmentation violation (etc...). See gifs enclosed for the full error message.

      -----------------------------------------------

      I was able to reproduce an apparantly similar crash using Netscape 4.02
      from /usr/dist/exe/netscape. I didn't need to disable security.

      The Java trace of the current thread was:

          "AWT-EventQueue-0" (TID:0xeb88cc08, sys_thread_t:0x2df7d8, state:R) prio=6 *current thread*
              at java.lang.Throwable.printStackTrace0(Native Method)
              at java.lang.Throwable.printStackTrace(Compiled Code)
              at java.awt.EventDispatchThread.run(Compiled Code)

      and DBX gave the C stacktrace as:

          (dbx) where
      =>[1] is_instance_of(0x384, 0xeb898118, 0x2df758, 0xef5b4f80, 0x0, 0x4000), at 0xef550174
        [2] JVM_PrintStackTrace(0x2df758, 0xef5b4f80, 0xef5ba800, 0xec052be0, 0x2df758, 0xec052c28), at 0xef56e2f8
        [3] sysInvokeNative(0x2df758, 0xef4c2d94, 0x2e05ac, 0x8fde2, 0x2, 0x0), at 0xef59a498
        [4] invokeJNINativeMethod(0x2e05b4, 0x96860, 0x2e05ac, 0x2df758, 0x0, 0x2e0584), at 0xef54287c
        [5] JITNativeJNIStub(0xeb85f4f8, 0xeb88be90, 0x2df7d8, 0x3ad8cd8b, 0xb, 0x2df758), at 0xeed1e684
        [6] 0x8371a0(0xeb85f4f8, 0xeb88ca70, 0xeb898130, 0xeb898600, 0xeb85f4b8, 0x2df758), at 0x83719f
        [7] 0x2e7024(0xeb8a3020, 0x2e2164, 0x2e0548, 0xeec91b1a, 0x1, 0x0), at 0x2e7023
        [8] JITInvokeCompiledMethod(0xeb8a3020, 0x2e2164, 0x1, 0x2df758, 0xef5423fc, 0xeec91e0c), at 0xeed1e404
        [9] callmethod_1(0xeec91e24, 0x2df758, 0x2e057c, 0x682, 0xeec91e0c, 0x2e0548), at 0xef59ad88
        [10] do_execute_java_method_vararg(0x4a218, 0x0, 0x0, 0x0, 0x2e0548, 0xef5b5015), at 0xef54fe60
        [11] execute_java_dynamic_method(0x2df758, 0xeb8a3020, 0xef5b5010, 0xef5b5014, 0x0, 0x0), at 0xef54f6f8
        [12] saveStackBase(0xef5ba800, 0xeb8a3020, 0xeb8a3020, 0xef5b8800, 0xef5ba800, 0xef56fa7c), at 0xef5808e4
        [13] start_func(0xef580874, 0xefffd9f0, 0x0, 0x0, 0x0, 0x0), at 0xef7895a8
      (dbx) x/20X

      graham.hamilton@Eng 1998-06-18

            apalanissunw Anand Palaniswamy (Inactive)
            nschorrsunw Nancy Schorr (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: