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

the createStrokedShape() method causes Segmentation Fault on Solaris

XMLWordPrintable

    • 2d
    • sparc
    • solaris_7



      Name: dkC59003 Date: 01/24/2000


      The regression test (testbase_nsk) nsk/regression/b4305163 causes
      the Segmentation Fault under the HotSpot Client VM (build 1.3.0rc1-S)
      on Solaris.

      The test creates the CubicCurve2D object and then calls
      the createStrokedShape() method for this object.
      This call causes Segmentation Fault.

      See test source below.

      See log:

      % /export/java/jdk1.3/solaris/bin/java -version
      java version "1.3.0rc1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-T)
      Java HotSpot(TM) Client VM (build 1.3.0rc1-S, interpreted mode)

      % /export/java/jdk1.3/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!
      Segmentation Fault


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

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

            flar Jim Graham
            dkhukhrosunw Dmitry Khukhro (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: