United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6332641 : CORBA product_rmijrmp_dgc:Test01 fails with exception

Details
Type:
Bug
Submit Date:
2005-10-04
Status:
Closed
Updated Date:
2011-03-18
Project Name:
JDK
Resolved Date:
2005-11-02
Component:
hotspot
OS:
generic
Sub-Component:
compiler
CPU:
x86,generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
1.4.2_12,5.0u6,6
Fixed Versions:

Related Reports
Backport:
Backport:
Duplicate:
Relates:

Sub Tasks

Description
JDK:		Mustang
Build:		FAIL - b53, b54
		PASS - b52
Location:	/net/koori/onestop/jdk/1.6.0/latest/bundles
Platform[s]:	Win2003AMD, Sol10AMD, Sol11AMD                
JVM flag:	-d64
Failing Test:	product_rmijrmp_dgc:Test01

It's a regression.

TestBase Location: 
===================
/net/cady/export/dtf/unified/knight-ws/suites/corba_test/CORBA_mustang

Test source location:
=======================
<TestBase Location>/tests/product/rmi-jrmp/Dgc

How to reproduce:
====================
1. cd to TestBase Location
2. export PATH=`pwd`/bin:$PATH
3. cd <Test source location>
4. rip-make -env mustang -jdk <jdk location> -hotspot "-d64" -workdir /tmp -v all

Test output:
==============
$ uname -a
SunOS sunfire004 5.11 snv_22 i86pc i386 i86pc

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0xfffffd7ffeac21a1, pid=25001, tid=8
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.6.0-ea-b54 mixed mode)
# Problematic frame:
# V  [libjvm.so+0x2c21a1]
#

---------------  T H R E A D  ---------------

Current thread (0x0000000000578c00):  JavaThread "CompilerThread0" daemon [_thread_in_native, id=8]

siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x0000000000000000

Registers:
RAX=0x0000000001000000, RBX=0xfffffd7fb6ae1800, RCX=0x0000000000000018, RDX=0x0000000000000020
RSP=0xfffffd7fb655a630, RBP=0xfffffd7fb655a6c0, RSI=0x0000000000000002, RDI=0x0000000000a6a370
, R8=0x0000000000000058, R9=0x0000000000a6be38, R10=0x0000000000a6b440, R11=0x0000000000000002, R12=0x0000000000000058, R13=0x0000000000a6a370, R14=0x000000000000005e, R15=0x0000000000000000
RIP=0xfffffd7ffeac21a1, RFLAGS=0x0000000000010206

Top of Stack: (sp=0xfffffd7fb655a630)
0xfffffd7fb655a630:   0000000000a89e78 0000000000a6c130
0xfffffd7fb655a640:   ffffffffffffffff 0000000000000008
0xfffffd7fb655a650:   fffffd7fb6ae1800 0000000000a89e78
0xfffffd7fb655a660:   fffffd7fb655ab38 0000000400000020
0xfffffd7fb655a670:   0000000000a6c150 0000000000a89e78
0xfffffd7fb655a680:   0000000000433ea0 fffffd7ffef8193a
0xfffffd7fb655a690:   fffffd7fff094818 fffffd7ffef818fd
0xfffffd7fb655a6a0:   fffffd7ffef818e1 00000000004d9ec0
0xfffffd7fb655a6b0:   0000000000000058 0000000000a6c130
0xfffffd7fb655a6c0:   fffffd7fb655a720 fffffd7ffeaaae1b
0xfffffd7fb655a6d0:   0000000000a6c130 000000000076aaf0
0xfffffd7fb655a6e0:   000000000000005e 0000000000a6b5c0
0xfffffd7fb655a6f0:   0000005e00000010 0000000000a67cd0
0xfffffd7fb655a700:   fffffd7fff0a4ac0 ffffffffffffffff
0xfffffd7fb655a710:   ffffffffffffffff fffffd7fb655ab38
0xfffffd7fb655a720:   fffffd7fb655a7a0 fffffd7ffeb4433f
0xfffffd7fb655a730:   0000000000755150 fffffd7fb655aac8
0xfffffd7fb655a740:   fffffd7fb655b158 00000000000000f5
0xfffffd7fb655a750:   fffffd7f00000080 0000000000a68d30
0xfffffd7fb655a760:   000000000056aea0 fffffd7f00000000
0xfffffd7fb655a770:   0000005eb655a7a0 000000000056aea0
0xfffffd7fb655a780:   0000000000a67cd0 fffffd7fb655aac8
0xfffffd7fb655a790:   fffffd7fb655b158 fffffd7fb655b158
0xfffffd7fb655a7a0:   fffffd7fb655a810 fffffd7ffeb414f5
0xfffffd7fb655a7b0:   fffffd7fb655aac8 fffffd7fb655acf0
0xfffffd7fb655a7c0:   fffffd7fb655b158 fffffd7fb655a860
0xfffffd7fb655a7d0:   fffffd7fb655b288 000000000087d0e8
0xfffffd7fb655a7e0:   0000000000a89658 0000000000a89658
0xfffffd7fb655a7f0:   fffffd7fff082940 fffffd7fff052798
0xfffffd7fb655a800:   fffffd7fb655ab10 01000001b655a860
0xfffffd7fb655a810:   fffffd7fb655ad30 fffffd7ffeb3da0e
0xfffffd7fb655a820:   00000000005033e0 00000000004fd1d0 

Instructions: (pc=0xfffffd7ffeac21a1)
0xfffffd7ffeac2191:   4c 89 45 f0 4c 8b 4d f8 4d 8b 49 08 4f 8b 3c c1
0xfffffd7ffeac21a1:   4d 8b 07 4d 8b 40 38 49 8b ff 33 c0 41 ff d0 48 

Stack: [0xfffffd7fb645c000,0xfffffd7fb655c000),  sp=0xfffffd7fb655a630,  free space=1017k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x2c21a1]
V  [libjvm.so+0x2aae1b]
V  [libjvm.so+0x34433f]
V  [libjvm.so+0x3414f5]
V  [libjvm.so+0x33da0e]
V  [libjvm.so+0x4cbaef]
V  [libjvm.so+0x356924]
V  [libjvm.so+0x35650d]
V  [libjvm.so+0x3d4bc9]
V  [libjvm.so+0x3d1aeb]
V  [libjvm.so+0x395302]
V  [libjvm.so+0x394eec]
V  [libjvm.so+0x6a36d8]
C  [libc.so.1+0xacb1b]  _thr_slot_offset+0x30b
C  [libc.so.1+0xace40]  _thr_slot_offset+0x630


Current CompileTask:
opto:136      java.lang.Class.getClassLoader()Ljava/lang/ClassLoader; (49 bytes)


---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x0000000000972800 JavaThread "WatchClients" daemon [_thread_blocked, id=22]
  0x0000000000973700 JavaThread "RMI RenewClean-[10.5.21.38:41794]" daemon [_thread_blocked, id=20]
  0x0000000000430600 JavaThread "DestroyJavaVM" [_thread_blocked, id=1]
  0x000000000080a600 JavaThread "RMI TCP Connection(4)-10.5.21.38" daemon [_thread_in_Java, id=19]
  0x000000000080a000 JavaThread "RMI RenewClean-[10.5.21.38:41597]" daemon [_thread_blocked, id=18]
  0x0000000000801400 JavaThread "RMI Scheduler(0)" daemon [_thread_blocked, id=17]
  0x0000000000687700 JavaThread "RMI TCP Connection(3)-127.0.0.1" daemon [_thread_in_native, id=16]
  0x00000000007c1a00 JavaThread "RMI TCP Accept-4050" daemon [_thread_in_native, id=15]
  0x0000000000818200 JavaThread "GC Daemon" daemon [_thread_blocked, id=14]
  0x00000000008ea100 JavaThread "RMI Reaper" [_thread_blocked, id=13]
  0x000000000072db00 JavaThread "RMI TCP Accept-0" daemon [_thread_in_native, id=12]
  0x000000000057ad00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=10]
  0x0000000000579d00 JavaThread "CompilerThread1" daemon [_thread_blocked, id=9]
=>0x0000000000578c00 JavaThread "CompilerThread0" daemon [_thread_in_native, id=8]
  0x0000000000563c00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=7]
  0x0000000000558900 JavaThread "Finalizer" daemon [_thread_blocked, id=6]
  0x0000000000558000 JavaThread "Reference Handler" daemon [_thread_blocked, id=5]

Other Threads:
  0x0000000000551300 VMThread [id=4]
  0x000000000043eb00 WatcherThread [id=11]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 PSYoungGen      total 19712K, used 1968K [0xfffffd7fe6200000, 0xfffffd7fe7800000, 0xfffffd7ffb200000)
  eden space 16896K, 11% used [0xfffffd7fe6200000,0xfffffd7fe63ec170,0xfffffd7fe7280000)
  from space 2816K, 0% used [0xfffffd7fe7280000,0xfffffd7fe7280000,0xfffffd7fe7540000)
  to   space 2816K, 0% used [0xfffffd7fe7540000,0xfffffd7fe7540000,0xfffffd7fe7800000)
 PSOldGen        total 43008K, used 2715K [0xfffffd7fbc200000, 0xfffffd7fbec00000, 0xfffffd7fe6200000)
  object space 43008K, 6% used [0xfffffd7fbc200000,0xfffffd7fbc4a6ec0,0xfffffd7fbec00000)
 PSPermGen       total 22528K, used 7427K [0xfffffd7fb7000000, 0xfffffd7fb8600000, 0xfffffd7fbc200000)
  object space 22528K, 32% used [0xfffffd7fb7000000,0xfffffd7fb7740f58,0xfffffd7fb8600000)

Dynamic libraries:
0x0000000000400000 	/export/jdk/b54/solaris-amd64/jdk1.6.0/bin/amd64/java
0xfffffd7fff380000 	/lib/64/libthread.so.1
0xfffffd7fff390000 	/lib/64/libdl.so.1
0xfffffd7fff260000 	/lib/64/libc.so.1
0xfffffd7ffe800000 	/export/jdk/b54/solaris-amd64/jdk1.6.0/jre/lib/amd64/server/libjvm.so
0xfffffd7fff210000 	/lib/64/libsocket.so.1
0xfffffd7fff240000 	/usr/lib/64/libsched.so.1
0xfffffd7fff1c0000 	/usr/lib/64/libCrun.so.1
0xfffffd7fff140000 	/lib/64/libm.so.2
0xfffffd7fff1f0000 	/lib/64/libdoor.so.1
0xfffffd7ffe730000 	/lib/64/libnsl.so.1
0xfffffd7fff0e0000 	/lib/64/libscf.so.1
0xfffffd7ffe710000 	/lib/64/libuutil.so.1
0xfffffd7ffe6e0000 	/lib/64/libmd5.so.1
0xfffffd7ffe6c0000 	/lib/64/libmp.so.2
0xfffffd7ffe660000 	/export/jdk/b54/solaris-amd64/jdk1.6.0/jre/lib/amd64/native_threads/libhpi.so
0xfffffd7ffe610000 	/export/jdk/b54/solaris-amd64/jdk1.6.0/jre/lib/amd64/libverify.so
0xfffffd7ffe5b0000 	/export/jdk/b54/solaris-amd64/jdk1.6.0/jre/lib/amd64/libjava.so
0xfffffd7ffe570000 	/export/jdk/b54/solaris-amd64/jdk1.6.0/jre/lib/amd64/libzip.so
0xfffffd7ffb280000 	/export/jdk/b54/solaris-amd64/jdk1.6.0/jre/lib/amd64/libj2pkcs11.so
0xfffffd7ffb240000 	/usr/lib/amd64/libpkcs11.so
0xfffffd7ffb210000 	/usr/lib/64/libcryptoutil.so.1
0xfffffd7fb6e60000 	/usr/lib/security/64/pkcs11_softtoken.so
0xfffffd7fb6ed0000 	/export/jdk/b54/solaris-amd64/jdk1.6.0/jre/lib/amd64/libnet.so
0xfffffd7fb6e30000 	/export/jdk/b54/solaris-amd64/jdk1.6.0/jre/lib/amd64/librmi.so

VM Arguments:
jvm_args: -Dcof.report=/net/cady/export5/results/mustang/b54/corba_test/corba_test-corba_test-Sol11AMD64_d64-2005-09-29-18-49-01-0308/logs/product/rmi-jrmp/Dgc.xml -Dorg.omg.CORBA.ORBInitialPort=4050 -Dorg.omg.CORBA.ORBInitialHost=localhost -Dorg.omg.CORBA.ORBClass=com.sun.corba.se.impl.orb.ORBImpl -Dorg.omg.CORBA.ORBSingletonClass=com.sun.corba.se.impl.orb.ORBSingleton -Djava.naming.factory.initial=com.sun.jndi.cosnaming.CNCtxFactory -Djava.naming.provider.url=iiop://localhost:4050 -Djava.naming.factory.initial= -Djava.naming.provider.url=iiop://localhost:4050 -Djava.security.policy=java.policy -Ddgc.report.dir=/tmp/workdir/mustang/product/rmijrmp/dgc/report
java_command: product.rmijrmp.dgc.DGCTestServer -p 4050
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=/export/jdk/b54/solaris-amd64/jdk1.6.0
CLASSPATH=/net/cady/export/dtf/unified/knight-ws/suites/corba_test/CORBA_mustang/lib/utils.jar:/tmp/workdir/mustang:/export/jdk/b54/solaris-amd64/jdk1.6.0/lib/tools.jar:/net/cady/export/dtf/unified/knight-ws/suites/corba_test/CORBA_mustang/lib/junit.jar
PATH=/export/jdk/b54/solaris-amd64/jdk1.6.0/bin:/net/cady/export//dtf/unified/knight-ws/suites/corba_test/CORBA_mustang/bin:/usr/bin:
LD_LIBRARY_PATH=/export/jdk/b54/solaris-amd64/jdk1.6.0/jre/lib/amd64/server:/export/jdk/b54/solaris-amd64/jdk1.6.0/jre/lib/amd64:/export/jdk/b54/solaris-amd64/jdk1.6.0/jre/../lib/amd64:/export/jdk/b54/solaris-amd64/jdk1.6.0/jre/lib/sparc:/usr/lib/mps:
SHELL=/bin/sh
DISPLAY=vmsqe:0.0
OS=solaris_ia

Signal Handlers:
SIGSEGV: [libjvm.so+0x748a00], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGBUS: [libjvm.so+0x748a00], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGFPE: [libjvm.so+0x2d7630], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGPIPE: [libjvm.so+0x2d7630], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGILL: [libjvm.so+0x2d7630], 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
SIGHUP: [libjvm.so+0x6a49e0], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGINT: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGQUIT: [libjvm.so+0x6a49e0], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGTERM: [libjvm.so+0x6a49e0], sa_mask[0]=0xffbffeff, sa_flags=0x00000004


---------------  S Y S T E M  ---------------

OS:                               Solaris 11 nv_22 X86
           Copyright 2005 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                            Assembled 29 August 2005

uname:SunOS 5.11 snv_22 i86pc  (T2 libthread)
rlimit: STACK 10240k, CORE infinity, NOFILE 65536, AS infinity
load average:0.20 0.12 0.10

CPU:total 2 amd64 3dnow

Memory: 4k page, physical 4127784k(3093288k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (1.6.0-ea-b54) for solaris-amd64, built on Sep 29 2005 00:32:29 by "" with unknown Workshop:0x570


==========================================================================================

$ uname -a
Windows_NT ALISAN 5 02 586


#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000000806a792, pid=1976, tid=752
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.6.0-ea-b54 mixed mode)
# Problematic frame:
# V  [jvm.dll+0x6a792]
#

hs_err_pid1976.log is attached for more datails.

                                    

Comments
SUGGESTED FIX

See PRT webrev:

http://analemma.sfbay.sun.com/net/prt-archiver.sfbay/data/archived_workspaces/main/c2_baseline/2005/20051021180329.rasbold.c2_baseline2/workspace/webrevs/webrev-2005.10.21/index.html
                                     
2005-10-22
EVALUATION

The build_oop_map phase is failing because the MachNodes have a def which does not dominate its use. This occurs because reg_split is spilling down at an implicit-null-check site and is forced to put the spill at the non-null successor block. In this bug's case, however, the implicit check does not cause an exception on null, but only the assignment of a value, and control flow later joins with the the non-null path.

The fix is to inhibit the implicit_null_check() function in lcm.cpp from creating
an implicit check if the non-null block does not dominate the memory op.
                                     
2005-10-18



Hardware and Software, Engineered to Work Together