JDK-7150594 : VM crash in JCK api/java_awt/Image/ConvolveOp/ tests for 64 bit jdk8 on linux.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 8
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: linux,linux_oracle_6.0
  • CPU: generic,x86
  • Submitted: 2012-03-02
  • Updated: 2013-06-26
  • Resolved: 2012-09-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u40Fixed 8 b55Fixed
Related Reports
Duplicate :  
Duplicate :  
Description
2 JCK tests fails with VM chash starting from JDK8 b18 64 bit on linux x64.
api/java_awt/Image/ConvolveOp/index.html#FilterTesttestCase2
api/java_awt/Image/ConvolveOp/index.html#FilterTesttestCase1

java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b18)
Java HotSpot(TM) 64-Bit Server VM (build 23.0-b08, mixed mode)

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f422b90a8f8, pid=19260, tid=139922427627280
#
# JRE version: 8.0-b18
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.0-b08 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libmlib_image.so+0x18f8]  mlib_ImageSet+0x18
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /export/jdk/hs_err_pid19260.log
Phoning home... 
Using server: 10.161.186.18, port 4711
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

See more in comments:
The same problem with api/java_awt/Image/AffineTransformOp/index.html#FilterTest1 :

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fcf6c1188f8, pid=15529, tid=140528867383040
#
# JRE version: 8.0-b30
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.0-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libmlib_image.so+0x18f8]  mlib_ImageSet+0x18

Comments
Verified: jdk1.8.0b54/bin/java -jar ../JCK-runtime-8/lib/jtjck.jar -w:work -r:report api/java_awt/Image/ConvolveOp/index.html Test results: passed: 9; error: 2 jdk1.8.0b55/bin/java -jar ../JCK-runtime-8/lib/jtjck.jar -w:work -r:report api/java_awt/Image/ConvolveOp/index.html Test results: passed: 11
07-12-2012

SUGGESTED FIX http://cr.openjdk.java.net/~bae/7150594/8/webrev.00
02-08-2012

EVALUATION This problem is triggered by the fix for CR 7113017. In particular, this fix replaces the malloc.h with stddef.h in mlib_types.h. This change leads to compiling mlib_sys.c without forward declaration for memalign() routine, and cause following warnings: mlib_sys.c:96: warning: implicit declaration of function 'memalign' mlib_sys.c:96: warning: cast to pointer from integer of different size This cause the problem on systems where size of integer is less than size of pointers: the pointer value is clamped, and usage of the clamped pointer causes the observed crash. Proposed solution is to include malloc.h header directly to mlib_sys.c.
02-08-2012

EVALUATION api/java_awt/Image/AffineTransformOp/index.html#FilterTest1 also affected (see bug description). Maybe, it's reasonable to change bug Synopsis?
03-05-2012