JDK-6425368 : Crash on Solaris in RescaleOp.filter();
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.4.2
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2006-05-12
  • Updated: 2011-01-19
  • Resolved: 2006-12-10
Related Reports
Duplicate :  
Description
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

Comments
EVALUATION This problem is particular case of the general problem described by 4886506: the lookup table with single lookup array is used to perform the rescale operation. So, this is a duplicate of 4886506.
10-12-2006