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

invocation of URL(null) crashes VM

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.2.2
    • Fix Version/s: 1.2.2
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.2.2
    • CPU:
      x86
    • OS:
      linux
    • Verification:
      Verified

      Description



      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)
      $

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

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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: