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

the createStrokedShape() method crashes the HotSpot Server VM on Solaris

XMLWordPrintable

    • sparc
    • solaris_7



      Name: dkC59003 Date: 01/24/2000


      The regression test (testbase_nsk) nsk/regression/b4305163 crashes
      the HotSpot Server VM (2.0, build A) on Solaris.

      The test creates the CubicCurve2D object and then calls
      the createStrokedShape() method for this object.
      This call causes Unexpected Signal 11.

      See test source below.

      See log:

      % /export/java/jdk1.2.2/solaris/bin/java -version
      java version "1.2.2"
      Java(TM) HotSpot Server VM (2.0, mixed mode, build A)

      % /export/java/jdk1.2.2/solaris/bin/java b4305163
      ==> nsk/regression/b4305163 test LOG:
      ----> new CubicCurve2D object created!
      ----> CubicCurve2D object transformed into Shape object!
      ----> new Stroke object created!
      ----> createStrokedShape() - will be!
      An irrecoverable stack overflow has occurred.
      An irrecoverable stack overflow has occurred.
      #
      # HotSpot Virtual Machine Error, Unexpected Signal 11
      #
      # Error ID: 4F533F534F4C415249530E4350500791 01
      #
      (Error ID: os_solaris.cpp, 1937)


      --------------------- java source ------------------------------
      import java.awt.geom.*;
      import java.awt.*;

      public class b4305163 {
          static Stroke stroke_obj;
          static Shape shape_obj;
          static Shape stroked_shape_obj;

          public static int run(String argv[], java.io.PrintStream out) {
              System.out.println("==> nsk/regression/b4305163 test LOG:");
              CubicCurve2D ccurve = new CubicCurve2D.Float(798049, 1219070,
      797937, 1219280,
      798047, 1219070,
      797997, 1219180);
              System.out.println("----> new CubicCurve2D object created!");

              shape_obj = ccurve;
              System.out.println("----> CubicCurve2D object transformed into Shape object!");

              stroke_obj = new BasicStroke();
              System.out.println("----> new Stroke object created!");

              System.out.println("----> createStrokedShape() - will be!");
              stroked_shape_obj = stroke_obj.createStrokedShape(shape_obj);
              System.out.println("----> createStrokedShape() - done!");

              System.out.println("==> nsk/regression/b4305163 test PASSED" );

              return 0/*STATUS_PASSED*/;
          }

          public static void main(String argv[]) {
              System.exit(run(argv, System.out) + 95/*STATUS_TEMP*/);
          }

      } // end of b4305163 class

      ----------------------------------------------------------------
       
      ======================================================================

            jmasa Jon Masamitsu (Inactive)
            dkhukhrosunw Dmitry Khukhro (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: