Java version: 1.7.0-b124 and b126 pit build
Platform: Solaris-Sparc 11 SNV_155
Problem, when revify the bug 6983028 during the pit testing, the test FontPrivilege.java crashed, it is not just crashed in pit build, it also crashed in jdk7 promotion build b124 as well.
Here is the core dump log file and test.
/*
* @test
* @bug 5010310 6319835
* @summary test fonts can be created in the presence of a security manager
* @run main/othervm FontPrivilege
*/
import java.awt.Font;
public class FontPrivilege {
public static void main(String[] args) throws Exception {
System.setSecurityManager(new java.lang.SecurityManager());
new Font("Helvetica", Font.PLAIN, 12).getFamily();
new Font("foo bar", Font.PLAIN, 12).getFamily();
}
}
log file:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xfe61f73c, pid=6730, tid=2
#
# JRE version: 7.0
# Java VM: Java HotSpot(TM) Server VM (20.0-b05 mixed mode solaris-sparc )
# Problematic frame:
# V [libjvm.so+0x21f73c] jni_CallStaticVoidMethod+0x170
#
# 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 (0x00026000): JavaThread "main" [_thread_in_vm, id=2, stack(0xfe300000,0xfe380000)]
siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x00000000
Registers:
G1=0x00000000 G2=0x00040c54 G3=0x00000000 G4=0x0003a35c
G5=0x0003a300 G6=0x00000000 G7=0xfe390240 Y=0x00000000
O0=0xfe37ed7c O1=0x00026000 O2=0xfeebc35c O3=0x0003a000
O4=0x0000000e O5=0xfeec2c58 O6=0xfe37ec60 O7=0x00000000
L0=0xfee82000 L1=0x00000000 L2=0x00000005 L3=0x00043c00
L4=0xfeebc300 L5=0xfe37ed7c L6=0x00040c58 L7=0x00000000
I0=0x00026118 I1=0x0003a000 I2=0x00000000 I3=0xfeec5e6c
I4=0x00026000 I5=0x00043e6c I6=0xfe37edb8 I7=0xfe0337d8
PC=0xfe61f73c nPC=0xfe61f740
Top of Stack: (sp=0xfe37ec60)
0xfe37ec60: fee82000 00000000 00000005 00043c00
0xfe37ec70: feebc300 fe37ed7c 00040c58 00000000
0xfe37ec80: 00026118 0003a000 00000000 feec5e6c
0xfe37ec90: 00026000 00043e6c fe37edb8 fe0337d8
0xfe37eca0: fe2813e0 00000001 fe37ecd0 fe033d2c
0xfe37ecb0: 00000003 fe017165 002c7a70 ff19dce0
0xfe37ecc0: 00000000 00000000 00000000 00000000
0xfe37ecd0: ff2ece44 00000000 00000000 00000001
Instructions: (pc=0xfe61f73c)
0xfe61f71c: 88 1a e3 5c 90 07 bf c4 94 04 00 04 8a 1e 63 00
0xfe61f72c: aa 10 00 08 a8 04 00 05 92 10 00 1c d4 27 bf c4
0xfe61f73c: c6 06 a0 00 e2 00 e0 08 e6 00 e0 0c fa 14 60 2a
0xfe61f74c: ae 04 e0 28 b7 2f 60 02 d4 05 c0 1b 7f fd 83 5c
Register to memory mapping:
G1=0x00000000 is an unknown value
G2=0x00040c54 is an unknown value
G3=0x00000000 is an unknown value
G4=0x0003a35c is an unknown value
G5=0x0003a300 is an unknown value
G6=0x00000000 is an unknown value
G7=0xfe390240 is an unknown value
O0=0xfe37ed7c is pointing into the stack for thread: 0x00026000
O1=0x00026000 is a thread
O2=0xfeebc35c: __1cJCodeCacheF_heap_+0xcd90 in /net/sqenfs-1/export1/comp/2d/zhang/pit/solaris_sparc/jre/lib/sparc/server/libjvm.so at 0xfe400000
O3=0x0003a000 is an unknown value
O4=0x0000000e is an unknown value
O5=0xfeec2c58: __1cHnmethodG__vtbl_+0xd90 in /net/sqenfs-1/export1/comp/2d/zhang/pit/solaris_sparc/jre/lib/sparc/server/libjvm.so at 0xfe400000
O6=0xfe37ec60 is pointing into the stack for thread: 0x00026000
O7=0x00000000 is an unknown value
L0=0xfee82000: _GLOBAL_OFFSET_TABLE_+0 in /net/sqenfs-1/export1/comp/2d/zhang/pit/solaris_sparc/jre/lib/sparc/server/libjvm.so at 0xfe400000
L1=0x00000000 is an unknown value
L2=0x00000005 is an unknown value
L3=0x00043c00 is an unknown value
L4=0xfeebc300: __1cJCodeCacheF_heap_+0xcd34 in /net/sqenfs-1/export1/comp/2d/zhang/pit/solaris_sparc/jre/lib/sparc/server/libjvm.so at 0xfe400000
L5=0xfe37ed7c is pointing into the stack for thread: 0x00026000
L6=0x00040c58 is an unknown value
L7=0x00000000 is an unknown value
I0=0x00026118 is an unknown value
I1=0x0003a000 is an unknown value
I2=0x00000000 is an unknown value
I3=0xfeec5e6c: __1cHnmethodG__vtbl_+0x3fa4 in /net/sqenfs-1/export1/comp/2d/zhang/pit/solaris_sparc/jre/lib/sparc/server/libjvm.so at 0xfe400000
I4=0x00026000 is a thread
I5=0x00043e6c is an unknown value
I6=0xfe37edb8 is pointing into the stack for thread: 0x00026000
I7=0xfe0337d8: AWTDrawGlyphList+0xc5c in /net/sqenfs-1/export1/comp/2d/zhang/pit/solaris_sparc/jre/lib/sparc/xawt/libmawt.so at 0xfe010000
Stack: [0xfe300000,0xfe380000], sp=0xfe37ec60, free space=507k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x21f73c] jni_CallStaticVoidMethod+0x170
C [libmawt.so+0x237e0] getPlatformFontPathChars+0x64
C [libmawt.so+0x23920] Java_sun_awt_X11FontManager_getFontPath+0x3c
j sun.awt.X11FontManager.getFontPath(Z)Ljava/lang/String;+673132824
j sun.awt.X11FontManager.getFontPath(Z)Ljava/lang/String;+0
j sun.font.SunFontManager.getPlatformFontPath(Z)Ljava/lang/String;+10
j sun.font.SunFontManager$10.run()Ljava/lang/Object;+21
v ~StubRoutines::call_stub
V [libjvm.so+0x16fb5c] void JavaCalls::call_helper(JavaValue*,methodHandle*,JavaCallArguments*,Thread*)+0x2a0
V [libjvm.so+0x1ce658] JVM_DoPrivileged+0x95c
C [libjava.so+0x80f8] Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x1c
j java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;+32
j java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;+0
j sun.font.SunFontManager.loadFonts()V+42
j sun.awt.X11FontManager.loadFonts()V+1
j sun.font.SunFontManager.findFont2D(Ljava/lang/String;II)Lsun/font/Font2D;+871
j sun.font.SunFontManager.findFont2D(Ljava/lang/String;II)Lsun/font/Font2D;+636
j java.awt.Font.getFont2D()Lsun/font/Font2D;+86
j java.awt.Font.getFamily(Ljava/util/Locale;)Ljava/lang/String;+15
j java.awt.Font.getFamily_NoClientCode()Ljava/lang/String;+4
j java.awt.Font.getFamily()Ljava/lang/String;+1
j FontPrivilege.main([Ljava/lang/String;)V+22
v ~StubRoutines::call_stub
V [libjvm.so+0x16fb5c] void JavaCalls::call_helper(JavaValue*,methodHandle*,JavaCallArguments*,Thread*)+0x2a0
V [libjvm.so+0x21fa60] jni_CallStaticVoidMethod+0x494
C [libjli.so+0x1a44] JavaMain+0x7ac
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j sun.awt.X11FontManager.getFontPath(Z)Ljava/lang/String;+0
j sun.font.SunFontManager.getPlatformFontPath(Z)Ljava/lang/String;+10
j sun.font.SunFontManager$10.run()Ljava/lang/Object;+21
v ~StubRoutines::call_stub
j java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;+0
j sun.font.SunFontManager.loadFonts()V+42
j sun.awt.X11FontManager.loadFonts()V+1
j sun.font.SunFontManager.findFont2D(Ljava/lang/String;II)Lsun/font/Font2D;+871
j sun.font.SunFontManager.findFont2D(Ljava/lang/String;II)Lsun/font/Font2D;+636
j java.awt.Font.getFont2D()Lsun/font/Font2D;+86
j java.awt.Font.getFamily(Ljava/util/Locale;)Ljava/lang/String;+15
j java.awt.Font.getFamily_NoClientCode()Ljava/lang/String;+4
j java.awt.Font.getFamily()Ljava/lang/String;+1
j FontPrivilege.main([Ljava/lang/String;)V+22
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x001d8000 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=13, stack(0xd6e80000,0xd6f00000)]
0x00131400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=11, stack(0xd7300000,0xd7380000)]
0x0012f000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=10, stack(0xd7400000,0xd7480000)]
0x0012cc00 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=9, stack(0xd7500000,0xd7580000)]
0x0012b400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=8, stack(0xd7600000,0xd7680000)]
0x00119800 JavaThread "Finalizer" daemon [_thread_blocked, id=7, stack(0xd7700000,0xd7780000)]
0x00114c00 JavaThread "Reference Handler" daemon [_thread_blocked, id=6, stack(0xd7800000,0xd7880000)]
=>0x00026000 JavaThread "main" [_thread_in_vm, id=2, stack(0xfe300000,0xfe380000)]
Other Threads:
0x00112800 VMThread [stack: 0xd7900000,0xd7980000] [id=5]
0x0013b400 WatcherThread [stack: 0xd7200000,0xd7280000] [id=12]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
PSYoungGen total 9536K, used 2059K [0xf1160000, 0xf1c00000, 0xfbc00000)
eden space 8192K, 25% used [0xf1160000,0xf1362d88,0xf1960000)
from space 1344K, 0% used [0xf1ab0000,0xf1ab0000,0xf1c00000)
to space 1344K, 0% used [0xf1960000,0xf1960000,0xf1ab0000)
PSOldGen total 21888K, used 0K [0xdbc00000, 0xdd160000, 0xf1160000)
object space 21888K, 0% used [0xdbc00000,0xdbc00000,0xdd160000)
PSPermGen total 16384K, used 3219K [0xd7c00000, 0xd8c00000, 0xdbc00000)
object space 16384K, 19% used [0xd7c00000,0xd7f24fa8,0xd8c00000)
Code Cache [0xfc000000, 0xfc180000, 0xfe000000)
total_blobs=161 nmethods=14 adapters=89 free_code_cache=33180736
Dynamic libraries:
0x00010000 ../solaris_sparc/bin/java
0xff368000 /lib/libthread.so.1
0xff330000 /net/sqenfs-1/export1/comp/2d/zhang/pit/solaris_sparc/bin/../jre/lib/sparc/jli/libjli.so
0xff350000 /lib/libdl.so.1
0xff180000 /lib/libc.so.1
0xfe400000 /net/sqenfs-1/export1/comp/2d/zhang/pit/solaris_sparc/jre/lib/sparc/server/libjvm.so
0xff150000 /lib/libsocket.so.1
0xff3fc000 /usr/lib/libsched.so.1
0xff130000 /lib/libm.so.1
0xff100000 /usr/lib/libCrun.so.1
0xff3f8000 /lib/libdoor.so.1
0xff0b0000 /usr/lib/libdemangle.so.1
0xfef80000 /lib/libm.so.2
0xfef00000 /lib/libnsl.so.1
0xff080000 /lib/libmd.so.1
0xff060000 /lib/libmp.so.2
0xfe2d0000 /net/sqenfs-1/export1/comp/2d/zhang/pit/solaris_sparc/jre/lib/sparc/libverify.so
0xfe290000 /net/sqenfs-1/export1/comp/2d/zhang/pit/solaris_sparc/jre/lib/sparc/libjava.so
0xfe220000 /net/sqenfs-1/export1/comp/2d/zhang/pit/solaris_sparc/jre/lib/sparc/libzip.so
0xd7100000 /net/sqenfs-1/export1/comp/2d/zhang/pit/solaris_sparc/jre/lib/sparc/libawt.so
0xfe010000 /net/sqenfs-1/export1/comp/2d/zhang/pit/solaris_sparc/jre/lib/sparc/xawt/libmawt.so
0xfbfd0000 /usr/lib/libXext.so.0
0xd6f80000 /usr/lib/libX11.so.4
0xfbe60000 /usr/lib/libXrender.so.1
0xfbe40000 /usr/lib/libXtst.so.1
0xfbe20000 /usr/lib/libXi.so.5
0xfbd30000 /net/sqenfs-1/export1/comp/2d/zhang/pit/solaris_sparc/jre/lib/sparc/libfontmanager.so
0xfbc50000 /usr/lib/libxcb.so.1
0xfbc30000 /usr/lib/libXau.so.6
0xfbc10000 /usr/lib/libXdmcp.so.6
0xd7bb0000 /net/sqenfs-1/export1/comp/2d/zhang/pit/solaris_sparc/jre/lib/sparc/libnet.so
0xd79a0000 /net/sqenfs-1/export1/comp/2d/zhang/pit/solaris_sparc/jre/lib/sparc/libnio.so
0xff3e8000 /lib/librt.so.1
0xd78e0000 /usr/lib/libsendfile.so.1
VM Arguments:
java_command: FontPrivilege
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=/usr/bin
USERNAME=dtftest
SHELL=/bin/sh
DISPLAY=::1:0.0
Signal Handlers:
SIGSEGV: [libjvm.so+0x93b678], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGBUS: [libjvm.so+0x93b678], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGFPE: [libjvm.so+0x1deb00], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGPIPE: [libjvm.so+0x1deb00], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGXFSZ: [libjvm.so+0x1deb00], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGILL: [libjvm.so+0x1deb00], 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+0x800104], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGHUP: [libjvm.so+0x800104], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGINT: [libjvm.so+0x800104], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGTERM: [libjvm.so+0x800104], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIG39: [libjvm.so+0x803a14], sa_mask[0]=0x00000000, sa_flags=0x00000008
SIG40: [libjvm.so+0x1deb00], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
--------------- S Y S T E M ---------------
OS: Oracle Solaris 11 Express snv_155 SPARC
Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
Assembled 20 December 2010
uname:SunOS 5.11 snv_155 sun4u (T2 libthread)
rlimit: STACK 8192k, CORE infinity, NOFILE 65536, AS infinity
load average:0.21 0.18 0.16
CPU:total 2 has_v8, has_v9, has_vis1, has_vis2, is_ultra3
Memory: 8k page, physical 2097152k(104272k free)
vm_info: Java HotSpot(TM) Server VM (20.0-b05) for solaris-sparc JRE (1.7.0-internal-201101070208.ss145989.tl-pit-2d-awt-swin-b00), built on Jan 6 2011 18:43:38 by "jprtadm" with Sun Studio 12u1
time: Wed Jan 12 13:12:52 2011
elapsed time: 1 seconds