The javasoft.sqe.tests.api.java.awt.Image.BufferedImage.GetSetRGBTests JCK test class crashes JVM when running with JCov agent to gather the JCK method coverage. The problem has appeared since JDK 7 b74.
The problem is reproducible on nexus.sfbay (solaris10-sparc) as well as on zenit.russia (solaris_10-x64). Here is the script to run and its output on nexus:
ag153348@nexus$ cd /home/ag153348/tmp/jcov
ag153348@nexus$ cat go.sh
WD=/home/ag153348/tmp/jcov
JCK=/java/re/jck/7/promoted/ea/b26/binaries/JCK-runtime-7
JDK=/java/re/jdk/7/promoted/ea/b75/binaries/solaris-sparc
JCOV=/java/re/jcov/1.3/snapshot/fcs/b07/binaries/lib/jcov.jar
DISPLAY=jessika:1 $JDK/bin/java -showversion -javaagent:$JCOV=format=legacy,field=off,abstract=on,type=method,file=$WD/a.jcov,merge=gensuff -Xss1m -Xms32m -Xmx256m -Djava.ext.dirs=$JCK/lib/extensions:$JDK/jre/lib/ext -Xfuture -cp $JCK/classes -Djava.security.policy=$JCK/lib/jck.policy javasoft.sqe.tests.api.java.awt.Image.BufferedImage.GetSetRGBTests -TestCaseID ALL
WD=/home/ag153348/work/jcov/crash
JCK=/net/archer.russia/export5/re/jck/7/qac/b27-2009-11-11/binaries/JCK-runtime-7
JDK=/net/jse-st01.russia/export4/java/re/jdk/7/promoted/ea/b75/binaries/solaris-x64
JCOV=/set/java/re/jcov/1.3/snapshot/fcs/b07/binaries/lib/jcov.jar
DISPLAY=jessika:1 $JDK/bin/java -showversion -javaagent:$JCOV=format=legacy,field=off,abstract=on,type=method,file=$WD/a.jcov,merge=gensuff -Xss1m -Xms32m -Xmx256m -Djava.ext.dirs=$JCK/lib/extensions:$JDK/jre/lib/ext -Xfuture -cp $JCK/classes -Djava.security.policy=$JCK/lib/jck.policy javasoft.sqe.tests.api.java.awt.Image.BufferedImage.GetSetRGBTests -TestCaseID ALL
ag153348@nexus$ ./go.sh
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b75)
Java HotSpot(TM) Server VM (build 17.0-b04, mixed mode)
BufferedImage2029: Passed. OKAY
BufferedImage0001: Passed. OKAY
BufferedImage0002: Passed. OKAY
BufferedImage2030: Passed. OKAY
BufferedImage0003: Passed. OKAY
BufferedImage2031: Passed. OKAY
STATUS:Passed.test cases: 6; all passed
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xfea82ce0, pid=11839, tid=14
#
# JRE version: 7.0-b75
# Java VM: Java HotSpot(TM) Server VM (17.0-b04 mixed mode solaris-sparc )
# Problematic frame:
# V [libjvm.so+0x682ce0]
#
# An error report file with more information is saved as:
# /home/ag153348/tmp/jcov/hs_err_pid11839.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
./go.sh: line 6: 11839 Abort (core dumped) DISPLAY=jessika:1 $JDK/bin/java -showversion -javaagent:$JCOV=format=legacy,field=off,abstract=on,type=method,file=$WD/a.jcov,merge=gensuff -Xss1m -Xms32m -Xmx256m -Djava.ext.dirs=$JCK/lib/extensions:$JDK/jre/lib/ext -Xfuture -cp $JCK/classes -Djava.security.policy=$JCK/lib/jck.policy javasoft.sqe.tests.api.java.awt.Image.BufferedImage.GetSetRGBTests -TestCaseID ALL
ag153348@nexus$ cat /home/ag153348/tmp/jcov/hs_err_pid11839.log
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xfea82ce0, pid=11839, tid=14
#
# JRE version: 7.0-b75
# Java VM: Java HotSpot(TM) Server VM (17.0-b04 mixed mode solaris-sparc )
# Problematic frame:
# V [libjvm.so+0x682ce0]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
--------------- T H R E A D ---------------
Current thread (0x00add000): JavaThread "CompilerThread1" daemon [_thread_in_native, id=14, stack(0xe6a80000,0xe6b00000)]
siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x00000004
Registers:
O0=0x01c972a8 O1=0x00002000 O2=0x010ca578 O3=0x000000e6
O4=0x00002000 O5=0x010ca578 O6=0xe6afdb48 O7=0x00000000
G1=0x00bfb928 G2=0x00000000 G3=0x010ca578 G4=0x010ca578
G5=0x00000000 G6=0x00000000 G7=0xfee76200 Y=0x00000000
PC=0xfea82ce0 nPC=0xfea82ce4
Top of Stack: (sp=0xe6afdb48)
0xe6afdb48: 0125eb20 e6afea90 01c972a8 00000000
0xe6afdb58: 00000000 01c972a8 01c972a8 00000398
0xe6afdb68: e6afea80 010ca578 00000000 0125f078
0xe6afdb78: 02016220 00000000 e6afdba8 fea80598
0xe6afdb88: fede3c58 fedffee8 febcc748 006bf888
0xe6afdb98: fee027b4 00ad97c0 00000100 02016658
0xe6afdba8: e6afdd58 e6afdd78 e6afea90 e6afed30
0xe6afdbb8: e6afdd48 fedbe000 00000001 00000001
Instructions: (pc=0xfea82ce0)
0xfea82cd0: de 02 20 1c c2 06 22 d0 85 2b e0 02 de 00 40 02
0xfea82ce0: ee 03 e0 04 c6 05 e0 00 80 a0 e0 00 32 40 00 11
Stack: [0xe6a80000,0xe6b00000], sp=0xe6afdb48, free space=1f6fea82ce0k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x682ce0]
V [libjvm.so+0x6805a0]
V [libjvm.so+0x1bf9e4]
V [libjvm.so+0x3e97d4]
V [libjvm.so+0x1ba75c]
V [libjvm.so+0x1bb114]
V [libjvm.so+0x22b05c]
V [libjvm.so+0x7bf864]
V [libjvm.so+0x6fabd4]
Current CompileTask:
C2: 3% javasoft.sqe.tests.api.java.awt.Image.BufferedImage.GetSetRGBTests.BufferedImage2030()Ljavasoft/sqe/javatest/Status; @ 556 (1159 bytes)
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x0125d400 JavaThread "Thread-0" [_thread_in_vm, id=17, stack(0xe6400000,0xe6500000)]
0x00ade000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=15, stack(0xe6900000,0xe6a00000)]
=>0x00add000 JavaThread "CompilerThread1" daemon [_thread_in_native, id=14, stack(0xe6a80000,0xe6b00000)]
0x00ae1800 JavaThread "CompilerThread0" daemon [_thread_in_native, id=13, stack(0xe6b80000,0xe6c00000)]
0x00184c00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=12, stack(0xe6c80000,0xe6d80000)]
0x00173000 JavaThread "Finalizer" daemon [_thread_blocked, id=11, stack(0xe6e00000,0xe6f00000)]
0x0016e400 JavaThread "Reference Handler" daemon [_thread_blocked, id=10, stack(0xe6f80000,0xe7080000)]
0x00028000 JavaThread "main" [_thread_blocked, id=2, stack(0xfe280000,0xfe380000)]
Other Threads:
0x00169800 VMThread [stack: 0xe7100000,0xe7180000] [id=9]
0x00b29c00 WatcherThread [stack: 0xe6800000,0xe6880000] [id=16]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
PSYoungGen total 27328K, used 11759K [0xf6400000, 0xf8400000, 0xfbc00000)
eden space 23424K, 38% used [0xf6400000,0xf6cb19f0,0xf7ae0000)
from space 3904K, 73% used [0xf8030000,0xf82fa580,0xf8400000)
to space 4160K, 0% used [0xf7be0000,0xf7be0000,0xf7ff0000)
PSOldGen total 36864K, used 17434K [0xeb800000, 0xedc00000, 0xf6400000)
object space 36864K, 47% used [0xeb800000,0xec906bb8,0xedc00000)
PSPermGen total 16384K, used 7976K [0xe7800000, 0xe8800000, 0xeb800000)
object space 16384K, 48% used [0xe7800000,0xe7fca368,0xe8800000)
Dynamic libraries:
0x00010000 /net/jre.sfbay/p/v32/jdk/7/ea/b75/binaries/solaris-sparc/bin/java
0xff3a0000 /lib/libthread.so.1
0xff360000 /net/jre.sfbay/p/v32/jdk/7/ea/b75/binaries/solaris-sparc/bin/../jre/lib/sparc/jli/libjli.so
0xff340000 /lib/libdl.so.1
0xff200000 /lib/libc.so.1
0xff390000 /platform/SUNW,Sun-Fire-880/lib/libc_psr.so.1
0xfe400000 /net/jre.sfbay/p/v32/jdk/7/ea/b75/binaries/solaris-sparc/jre/lib/sparc/server/libjvm.so
0xff1c0000 /lib/libsocket.so.1
0xff1e0000 /usr/lib/libsched.so.1
0xff1a0000 /lib/libm.so.1
0xff170000 /usr/lib/libCrun.so.1
0xff150000 /lib/libdoor.so.1
0xff080000 /lib/libnsl.so.1
0xfef80000 /lib/libm.so.2
0xff050000 /lib/libscf.so.1
0xfef60000 /lib/libuutil.so.1
0xfef40000 /lib/libgen.so.1
0xfef10000 /lib/libmd.so.1
0xfeef0000 /platform/SUNW,Sun-Fire-880/lib/libmd_psr.so.1
0xfeed0000 /lib/libmp.so.2
0xfee50000 /net/jre.sfbay/p/v32/jdk/7/ea/b75/binaries/solaris-sparc/jre/lib/sparc/libverify.so
0xfe3c0000 /net/jre.sfbay/p/v32/jdk/7/ea/b75/binaries/solaris-sparc/jre/lib/sparc/libjava.so
0xfee30000 /net/jre.sfbay/p/v32/jdk/7/ea/b75/binaries/solaris-sparc/jre/lib/sparc/native_threads/libhpi.so
0xfe3a0000 /net/jre.sfbay/p/v32/jdk/7/ea/b75/binaries/solaris-sparc/jre/lib/sparc/libinstrument.so
0xfe260000 /usr/lib/locale/en_US.ISO8859-1/en_US.ISO8859-1.so.3
0xfe240000 /usr/lib/iconv/UTF-8%8859-1.so
0xfe220000 /usr/lib/iconv/8859-1%UTF-8.so
0xfe1c0000 /net/jre.sfbay/p/v32/jdk/7/ea/b75/binaries/solaris-sparc/jre/lib/sparc/libzip.so
0xe6700000 /net/jre.sfbay/p/v32/jdk/7/ea/b75/binaries/solaris-sparc/jre/lib/sparc/libawt.so
0xfe010000 /net/jre.sfbay/p/v32/jdk/7/ea/b75/binaries/solaris-sparc/jre/lib/sparc/xawt/libmawt.so
0xfbfc0000 /usr/openwin/lib/libXext.so.0
0xe6580000 /usr/openwin/lib/libX11.so.4
0xfe190000 /usr/openwin/lib/libXtst.so.1
0xfbed0000 /usr/openwin/lib/libXi.so.5
VM Arguments:
jvm_args: -javaagent:/java/re/jcov/1.3/snapshot/fcs/b07/binaries/lib/jcov.jar=format=legacy,field=off,abstract=on,type=method,file=/home/ag153348/tmp/jcov/a.jcov,merge=gensuff -Xss1m -Xms32m -Xmx256m -Djava.ext.dirs=/java/re/jck/7/promoted/ea/b26/binaries/JCK-runtime-7/lib/extensions:/java/re/jdk/7/promoted/ea/b75/binaries/solaris-sparc/jre/lib/ext -Xverify:all -Djava.security.policy=/java/re/jck/7/promoted/ea/b26/binaries/JCK-runtime-7/lib/jck.policy
java_command: javasoft.sqe.tests.api.java.awt.Image.BufferedImage.GetSetRGBTests -TestCaseID ALL
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=/java/re/jdk/6/latest/binaries/solaris-sparc/
PATH=/home/ag153348/bin:/usr/sfw/bin:/java/re/jdk/6/latest/binaries/solaris-sparc//bin:/usr/bin:/net/ipcsdist/export1/patches/nozomi_patch/dist/sparc-S2/bin:/home/ag153348/bin:/usr/local/bin:/usr/dist/local/exe:/usr/dist/exe:/usr/ccs/bin:/usr/bin:/usr/sbin:/usr/dt/bin:/usr/openwin/bin:/usr/ucb:/net/ipcsdist/export1/patches/nozomi_patch/dist/sparc-S2/bin
LD_LIBRARY_PATH=/net/jre.sfbay/p/v32/jdk/7/ea/b75/binaries/solaris-sparc/jre/lib/sparc/server:/net/jre.sfbay/p/v32/jdk/7/ea/b75/binaries/solaris-sparc/jre/lib/sparc:/net/jre.sfbay/p/v32/jdk/7/ea/b75/binaries/solaris-sparc/jre/../lib/sparc
SHELL=/bin/bash
DISPLAY=jessika:1
Signal Handlers:
SIGSEGV: [libjvm.so+0x8143d4], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGBUS: [libjvm.so+0x8143d4], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGFPE: [libjvm.so+0x1b8acc], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGPIPE: [libjvm.so+0x1b8acc], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGXFSZ: [libjvm.so+0x1b8acc], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGILL: [libjvm.so+0x1b8acc], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGQUIT: [libjvm.so+0x6fd670], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGHUP: [libjvm.so+0x6fd670], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGINT: [libjvm.so+0x6fd670], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGTERM: [libjvm.so+0x6fd670], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIG39: [libjvm.so+0x7012d8], sa_mask[0]=0x00000000, sa_flags=0x00000008
SIG40: [libjvm.so+0x1b8acc], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
--------------- S Y S T E M ---------------
OS: Solaris 10 10/09 s10s_u8wos_08a SPARC
Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 16 September 2009
uname:SunOS 5.10 Generic_141444-09 sun4u (T2 libthread)
rlimit: STACK 8192k, CORE infinity, NOFILE 65536, AS infinity
load average:1.32 0.44 0.18
CPU:total 6 has_v8, has_v9, has_vis1, has_vis2, is_ultra3
Memory: 8k page, physical 25165824k(21631224k free)
vm_info: Java HotSpot(TM) Server VM (17.0-b04) for solaris-sparc JRE (1.7.0-ea-b75), built on Oct 30 2009 03:41:24 by "" with Workshop 5.9
time: Wed Nov 18 01:31:52 2009
elapsed time: 28 seconds