-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
1.3.0
-
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
----------------------------------------------------------------
======================================================================
- duplicates
-
JDK-4305163 stack overflow problem with BasicStroke.createStrokedShape(huge cubic)
- Closed
- relates to
-
JDK-4306933 the createStrokedShape() method crashes the HotSpot Server VM on Solaris
- Closed