JDK-4306935 : the createStrokedShape() method causes Segmentation Fault on Solaris
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.3.0
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_7
  • CPU: sparc
  • Submitted: 2000-01-25
  • Updated: 2000-07-25
  • Resolved: 2000-07-25
Related Reports
Duplicate :  
Relates :  
Description

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 

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

Comments
EVALUATION See comments section ===== The original bug for which the regression test was written, and the native stack trace, imply that this is a 2D bug. Reassigning. david.mendenhall@eng 2000-03-10
10-03-2000