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

Crash on Solaris in RescaleOp.filter();

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.2
    • client-libs
    • None
    • 2d
    • generic
    • generic

      The following small program (utilising the attached image) crashes for me on
      Solaris SPARC with (at least) JDK 1.4.2, 1.5 and JDK 6 :

      import javax.imageio.*;
      import java.awt.image.*;

      public class FilterCrash {

          public static void main(String s[]) throws Exception {

              BufferedImage bi = ImageIO.read(new java.io.File("bld.jpg"));
              int iw = bi.getWidth(null);
              int ih = bi.getHeight(null);
              BufferedImage bo = new BufferedImage(iw, ih, bi.getType());
              RescaleOp rop = new RescaleOp(1.1f, 20.0f, null);
              rop.filter(bi, bo);
          }
      }

      /java/re/jdk/1.6.0/latest/binaries/solaris-sparc/bin/java FilterCrash
      #
      # An unexpected error has been detected by Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0xd6a6a9f8, pid=17002, tid=2
      #
      # Java VM: Java HotSpot(TM) Server VM (1.6.0-beta2-b84 mixed mode)
      # Problematic frame:
      # C [libmlib_image_v.so+0xea9f8]
      #
      # An error report file with more information is saved as hs_err_pid17002.log
      #
      # If you would like to submit a bug report, please visit:
      # http://java.sun.com/webapps/bugreport/crash.jsp
      #
      Abort

            bae Andrew Brygin
            prr Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: