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

invocation of URL(null) crashes VM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.2.2
    • 1.2.2
    • hotspot
    • 1.2.2
    • x86
    • linux
    • Verified



      Name: kaC94536 Date: 11/19/99



      The following test crashes Linux VM when JIT is used:

      ----------------------------- test.java ------------------------

      import java.net.*;

      public class test {

          public static void main(String argv[]) {
         
             try {
                  new URL(null);
             } catch(Exception e) {
             }
             System.out.println("Ok");
          }
      }

      -------------------------------- output --------------------------

      $ java -fullversion
      java full version "1.2.2-D"
      $ java -Djava.compiler=no test
      Ok
      $ java -Djava.compiler=javacomp test
      Segmentation fault (core dumped)
      $

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

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

            hongzh Hong Zhang
            kanisimosunw Konstantin Anisimov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: