JDK-6721083 : Exception access violation with RescaleOp
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 6u10
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2008-07-01
  • Updated: 2011-02-16
  • Resolved: 2009-05-29
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
C:\Documents and Settings\Knute Johnson>java -version
java version "1.6.0_10-beta"
Java(TM) SE Runtime Environment (build 1.6.0_10-beta-b25)
Java HotSpot(TM) Client VM (build 11.0-b12, mixed mode, sharing)

FULL OS VERSION :
Microsoft Windows XP [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
The following below crashes the VM and generates the error log to follow that.  This is not expected behavior.  I tried this on Fedora 9 and OpenJDK and did not get the error.

THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Yes

THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Yes

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Compile and run the program below on Windows XP.

EXPECTED VERSUS ACTUAL BEHAVIOR :
It shouldn't crash.

ERROR MESSAGES/STACK TRACES THAT OCCUR :
Attached seperatly


REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import java.awt.image.*;
import java.io.*;
import javax.imageio.*;

public class test {
    public static void main(String[] args) throws IOException {
        BufferedImage bi = ImageIO.read(new File("kittens.jpg"));
        RescaleOp op = new RescaleOp(0.5f,0.0f,null);
        bi = op.filter(bi,null);
    }
}



---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
None found.

Comments
EVALUATION This problem was fixed as a pert of fix for 4886506.
29-05-2009

EVALUATION The crash happens in medialib lookup procedure. Not reproducible with jdk7, it looks like the fix for 4886506 needs to be backported to jdk6 update release.
02-07-2008