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

stack overflow problem with BasicStroke.createStrokedShape(huge cubic)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • None
    • 1.3.0
    • client-libs
    • 2d
    • x86, sparc
    • solaris_7, windows_nt

    Description



      Name: rlT66838 Date: 01/17/2000


      H:\tmp\java>java -version
      java version "1.3beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3beta-O)
      Java(TM) HotSpot Client VM (build 1.3beta-O, mixed mode)


      An example program that shows the problem is given below.
      These particular values seem to be tripping the intersects algorithm.

      The error message is as follows:
      H:\tmp\java>java Foobar
      #
      # HotSpot Virtual Machine Error, EXCEPTION_STACK_OVERFLOW
      #
      # Error ID: 4F533F57494E13120E43505002B0
      #

      abnormal program termination

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

      public class Foobar {
          public static void main(String[] args) {
      CubicCurve2D ccurve = new CubicCurve2D.Float(798049, 1219070,
      797937, 1219280,
      798047, 1219070,
      797997, 1219180);
          
      Rectangle2D rect = new Rectangle2D.Float(796411, 1222113, 455, 753);
      if(intersectsOutline(ccurve, rect, new BasicStroke()))
      System.out.println("Intersects!!");
          }
          public static boolean intersectsOutline(Shape shape, Rectangle2D rect,
      Stroke stroke) {
      Shape stShape = stroke.createStrokedShape(shape);
      return stShape.intersects(rect);
          }
      }
      (Review ID: 99992)
      ======================================================================

      Name: elR10090 Date: 04/28/2001


      This bug causes failure of the following testbase_nsk tests:

          nsk/regression/b4305163

      Such record containing full test names allows to automatically
      generate the following list of known test failures (we maintain
      it updated every working day):

          /net/sqesvr.eng/export/vsn/VM/testbase/nsk_stuff/buglist_nsk/nsk.knownbugs

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

      Attachments

        Issue Links

          Activity

            People

              flar Jim Graham
              rlewis Roger Lewis (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: