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

SEGV if you call Integer.TYPE.getDeclaredClasses().toString();

XMLWordPrintable

    • 1.2.2
    • generic, x86
    • generic, windows_nt



      Name: ap32198 Date: 10/29/98


      The following test results in a crash:

      class Test {
              public static void main(String[] args) {
                      System.out.println(" getDeclaredClasses() "
                              + Integer.TYPE.getDeclaredClasses());
              }
      }

      This test worked on JDK1.2beta2 on Solaris but
      crashes on JDK1.2beta4-J on Solaris (native threads, sunwjit)
      and JDK1.2beta4-K on Windows NT (native threads, symcjit).

      The Solaris thread dump follows.

      % java Test
      SIGSEGV 11* segmentation violation
          si_signo [11]: SIGSEGV 11* segmentation violation
          si_errno [0]: Error 0
          si_code [1]: SEGV_MAPERR [addr: 0x0]

      stackpointer=EFFFE904

      Full thread dump:
          "Finalizer" (TID:0xeb0983a0, sys_thread_t:0x61160, state:CW, thread_t: t@6, sp:0xeec07728, stack_bottom:0xeec08000, stack_size:0x100000) prio=8
      at java.lang.Object.wait(Native Method)
      at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:113)
      at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:128)
      at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:128)
          "Reference Handler" (TID:0xeb098430, sys_thread_t:0x5f850, state:CW, thread_t: t@5, sp:0xeed09728, stack_bottom:0xeed0a000, stack_size:0x100000) prio=10
      at java.lang.Object.wait(Native Method)
      at java.lang.Object.wait(Object.java:303)
      at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:209)
          "Signal dispatcher" (TID:0xeb0982e8, sys_thread_t:0x5e588, state:CW, thread_t: t@4, sp:0xeee0ba70, stack_bottom:0xeee0c000, stack_size:0x100000) prio=10
          "main" (TID:0xeb098260, sys_thread_t:0x275f0, state:R, thread_t: t@1, sp:0xefffef28, stack_bottom:0xf0000000, stack_size:0x800000) prio=5 *current thread*
      at java.lang.Object.getClass(Native Method)
      at java.lang.Object.toString(Compiled Code)
      at java.lang.String.valueOf(Compiled Code)
      at java.lang.StringBuffer.append(Compiled Code)
      at Test.main(Compiled Code)
      Monitor Cache Dump:
          java.lang.StringBuffer@EB0C1090/EB1A8948: owner "main" (0x275f0, 1 entry)
          java.lang.ref.ReferenceQueue$Lock@EB0983B8/EB0CDA70: <unowned>
      Waiting to be notified:
      "Finalizer" (0x61160)
          java.lang.ref.Reference$Lock@EB098180/EB0CD580: <unowned>
      Waiting to be notified:
      "Reference Handler" (0x5f850)
      Registered Monitor Dump:
          PCMap lock: <unowned>
          utf8 hash table: <unowned>
          JNI pinning lock: <unowned>
          JNI global reference lock: <unowned>
          BinClass lock: <unowned>
          Class linking lock: <unowned>
          System class loader lock: <unowned>
          Code rewrite lock: <unowned>
          Heap lock: <unowned>
          Thread queue lock: <unowned>
          Monitor registry: owner "main" (0x275f0, 1 entry)
      Segmentation Fault (core dumped)
      (Review ID: 38838)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: