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

IA64: implicit null in vtable stub crashes the VM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 1.4.2
    • 1.4.2
    • hotspot
    • b18
    • itanium
    • generic


        Running the following test program with -Xcomp will crash the VM.
        This demonstrate a problem that can occur in real programs without
        -Xcomp.

        class Vbase {
            public void printer() {
              System.out.println("Vbase");
            }
        }
        class Vbase2 extends Vbase {
            public void printer() {
              System.out.println("Vbase2");
            }
        }
          class Vbase3 extends Vbase {
            public void printer() {
              System.out.println("Vbase3");
            }
        }
        class VtableNull {

          public static void doprint(Vbase it) {
            try {
              it.printer();
            } catch (NullPointerException e) {
              throw new NullPointerException();
            }
        }
           
          public static void main(String[] args) {
            Vbase2 vb_null = null;
            Vbase vb = new Vbase();
            Vbase2 vb2 = new Vbase2();
            Vbase3 vb3 = new Vbase3();
            doprint(vb);
            doprint(vb2);
            doprint(vb3);
            doprint(vb_null);
          }
        }

              sgoldman Steve Goldman (Inactive)
              sgoldman Steve Goldman (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: