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

The code (blah instanceof <interface>[]) crashes 1.2beta3

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Duplicate
    • Affects Version/s: 1.2.0
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • CPU:
      generic
    • OS:
      solaris_2.5.1

      Description

      Compile and run the following program:

      ::::::::::::::
      bug.java
      ::::::::::::::
      interface Intf {
      }
       
      class C implements Intf {
      }
       
      public class bug {
          public static void main(String[] args) {
              Intf[] temp = new C[3];
       
              if (temp instanceof Intf[]) {
                  System.out.println("yes two");
              }
       
          }
      }
      ::::::::::::::

      invisible:~/bugs 184%> /usr/local/java/jdk1.2/solaris/bin/javac bug.java
      invisible:~/bugs 185%> /usr/local/java/jdk1.2/solaris/bin/java bug
      SIGSEGV 11* segmentation violation
          si_signo [11]: SIGSEGV 11* segmentation violation
          si_errno [0]: Error 0
          si_code [1]: SEGV_MAPERR [addr: 0x0]
       
              stackbase=F0000000, stackpointer=EFFFE158
       
      Full thread dump:
          "SoftReference sweeper" (TID:0xee3046c8, sys_thread_t:0x9cc78, state:CW) prio=9
              at java.lang.Object.wait(Native Method)
              at java.lang.Object.wait(Object.java:315)
              at java.lang.Runtime.waitForMemoryAdvice(Runtime.java:569)
              at java.lang.ref.SoftReference$Sweeper.run(SoftReference.java:524)
              at java.lang.Thread.run(Thread.java:490)
          "Finalizer" (TID:0xee300318, sys_thread_t:0x6d6e8, state:CW) prio=8
              at java.lang.Object.wait(Native Method)
              at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:107)
              at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:122)
              at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:127)
          "Reference handler" (TID:0xee3003c8, sys_thread_t:0x6b110, state:CW) prio=10
              at java.lang.Object.wait(Native Method)
              at java.lang.Object.wait(Object.java:315)
              at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:186)
          "Async Garbage Collector" (TID:0xee3001b0, sys_thread_t:0x66190, state:R) prio=1
          "Idle thread" (TID:0xee3001f8, sys_thread_t:0x5e3d8, state:R) prio=0
          "Clock" (TID:0xee3002d0, sys_thread_t:0x5e2b0, state:CW) prio=12
          "main" (TID:0xee300038, sys_thread_t:0x229c8, state:R) prio=5 *current thread*
              at bug.main(bug.java:9)
      Monitor Cache Dump:
      Registered Monitor Dump:
          utf8 hash table: <unowned>
          JNI pinning lock: <unowned>
          JNI global reference lock: <unowned>
          BinClass lock: <unowned>
          Class linking lock: Abort

      Note: this bug is causing jck tests conv08301 - conv08304 to fail on my
      machine.

      todd.turnidge@Eng 1998-02-12

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sliangsunw Sheng Liang (Inactive)
              Reporter:
              tturnidgsunw Todd Turnidge (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: