United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6515916 server crash/hang with -XX:+ExtendedDTraceProbes
JDK-6515916 : server crash/hang with -XX:+ExtendedDTraceProbes

Details
Type:
Bug
Submit Date:
2007-01-22
Status:
Resolved
Updated Date:
2012-02-01
Project Name:
JDK
Resolved Date:
2007-06-20
Component:
hotspot
OS:
solaris,solaris_10
Sub-Component:
compiler
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u2,7
Fixed Versions:
hs10 (b14)

Related Reports
Backport:
Backport:
Duplicate:

Sub Tasks

Description
See synopsis.  Details below:


Keith McGuigan wrote:
> Hi John,
>
> I think your putback, 20061012181105.jrose.dolphin-cleanups, to c2_baseline back in b02, is causing problems with -XX:+ExtendedDTraceProbes.  The server libjvm.so of the previous putback to c2_baseline, 20061012073853.nips.bug6480445, appears to work fine, but with your binary I get crashes and/or hangs:
>
>
> km88527@dumber:~/tests/volano25> java -server -Xcomp -showversion -XX:+ExtendedDTraceProbes -cp ~/tests Hello
> java version "1.7.0-ea"
> Java(TM) SE Runtime Environment (build 1.7.0-ea-b02)
> Java HotSpot(TM) Server VM (build 20061012073853.nips.bug6480445, compiled mode)
>
> Hello, world!
> km88527@dumber:~/tests/volano25> cp /net/prt-archiver.sfbay/data/archived_workspaces/main/c2_baseline/2006/20061012181105.jrose.dolphin-cleanups/solaris_sparc_compiler2/product/libjvm.so.gz /home/km88527/tests/volano25/testjdk_b02/solaris-sparc//jre/lib/sparc/server
> km88527@dumber:~/tests/volano25> gunzip -f /home/km88527/tests/volano25/testjdk_b02/solaris-sparc//jre/lib/sparc/server/libjvm.so.gz
> km88527@dumber:~/tests/volano25> java -server -Xcomp -showversion -XX:+ExtendedDTraceProbes -cp ~/tests Hello
> <hang>
>
> Volano server crashes:
>
> km88527@dumber:~/tests/volano25> java -server -XX:+ExtendedDTraceProbes -Dinstall.root=. -Dcatalina.home=. -cp ".:lib/bootstrap.jar:lib/catalina.jar:lib/naming-common.jar:lib/naming-resources.jar:lib/servlet.jar:lib/servlets-common.jar:lib/servlets-default.jar:lib/volanochat-server.jar:lib/xerces.jar" COM.volano.Main
> #
> # An unexpected error has been detected by Java Runtime Environment:
> #
> #  SIGSEGV (0xb) at pc=0xfe8ba108, pid=8811, tid=24
> #
> # Java VM: Java HotSpot(TM) Server VM (20061012181105.jrose.dolphin-cleanups mixed mode)
> # Problematic frame:
> # V  [libjvm.so+0xba108]
> #
> # An error report file with more information is saved as hs_err_pid8811.log
> VolanoChat(TM) Server Version 2.5.0.9
> Copyright (C) 1996-2002 Volano LLC.  All rights reserved.
> Loading server properties from "/java/east/u3/km88527/tests/volano25/conf/properties.txt".
> #
> # If you would like to submit a bug report, please visit:
> #   http://java.sun.com/webapps/bugreport/crash.jsp
> #
> Abort
>
> I've attached the partially decoded hs_err file.
>
> If you'd like any other info, just let me know.
>
> Thanks!
>
> -- 
> - Keith
>
>
> ------------------------------------------------------------------------
>
> #
> # An unexpected error has been detected by Java Runtime Environment:
> #
> #  SIGSEGV (0xb) at pc=0xfe8ba108, pid=8811, tid=24
> #
> # Java VM: Java HotSpot(TM) Server VM (20061012181105.jrose.dolphin-cleanups mixed mode)
> # Problematic frame:
> # V  [libjvm.so+0xba108]
> #
> # 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 (0x0021a800):  JavaThread "CompilerThread1" daemon [_thread_in_native, id=24]
>
> siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x00000008
> ;; si_signo=11    SIGSEGV
> ;; si_code=1    SEGV_MAPERR /* Address not mapped to object.  */
>
> Registers:
>  O0=0x002aaf10 O1=0x00000003 O2=0x002ab1b8 O3=0x00000003
>  O4=0x000000a2 O5=0x00000000 O6=0xb647eb50 O7=0xfeb6e840
>  G1=0x000bc820 G2=0xb647f54c G3=0x002ab1e8 G4=0x002aaf3c
>  G5=0x002a5e10 G6=0x00000000 G7=0xfc165400 Y=0x00000000
>  PC=0xfe8ba108 nPC=0xfe8ba10c
>
>
> Top of Stack: (sp=0xb647eb50)
> 0xb647eb50:   feb6e468 fefbe000 002a94c0 fefd8330
> 0xb647eb60:   00000001 002acd78 00000001 00000000
> 0xb647eb70:   b647ee8c fef404f1 00000001 fede8694
> 0xb647eb80:   00000000 000bc820 b647ebb8 fedb0abc
> 0xb647eb90:   fefe8768 00000000 0021b220 0021b224
> 0xb647eba0:   00000012 00000007 00000000 000c6980
> 0xb647ebb0:   00000000 00000010 002ab180 0005f3a0
> 0xb647ebc0:   000bc820 fef404f1 fede8694 002a94c0
> Instructions: (pc=0xfe8ba108)
> 0xfe8ba0f8:   da 01 00 05 10 80 00 04 d4 03 60 08 da 01 20 04
> 0xfe8ba108:   d4 03 60 08 80 a2 a0 00 22 48 00 02 da 01 20 08
> Stack: [0xb6400000,0xb6480000),  sp=0xb647eb50,  free space=506k
> Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
> V  [libjvm.so+0xba108] ;; Node*MergeMemNode::memory_at(unsigned)const+0x24
> V  [libjvm.so+0x5b0ac4] ;; void GraphKit::make_dtrace_method_entry_exit(ciMethod*,bool)+0x42c
> V  [libjvm.so+0xe5e2c] ;; void Parse::return_current(Node*)+0xf0
> V  [libjvm.so+0xcc798] ;; void Parse::do_one_block()+0x264
> V  [libjvm.so+0x5aa404] ;; void Parse::do_all_blocks()+0xa8
> V  [libjvm.so+0xeb9e4] ;; Parse::Parse(JVMState*,ciMethod*,float)+0x90c
> V  [libjvm.so+0xe9914] ;; JVMState*ParseGenerator::generate(JVMState*)+0xa4
> V  [libjvm.so+0x2f70ac] ;; Compile::Compile(ciEnv*,C2Compiler*,ciMethod*,int,bool)+0x908
> V  [libjvm.so+0x15da74] ;; void C2Compiler::compile_method(ciEnv*,ciMethod*,int)+0x6c
> V  [libjvm.so+0x15e59c] ;; void CompileBroker::invoke_compiler_on_method(CompileTask*)+0x784
> V  [libjvm.so+0x1dd814] ;; void CompileBroker::compiler_thread_loop()+0x5d0
> V  [libjvm.so+0x62ba34] ;; void JavaThread::thread_main_inner()+0x50
> V  [libjvm.so+0x597ad0] ;; java_start+0x140
>
>
> Current CompileTask:
> C2:  2      java.lang.String.indexOf(II)I (151 bytes)
>
>
> ---------------  P R O C E S S  ---------------
>
> Java Threads: ( => current thread )
>   0x0021cc00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=25]
> =>0x0021a800 JavaThread "CompilerThread1" daemon [_thread_in_native, id=24]
>   0x00219800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=23]
>   0x00218800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=22]
>   0x00206800 JavaThread "Finalizer" daemon [_thread_blocked, id=21]
>   0x00202c00 JavaThread "Reference Handler" daemon [_thread_blocked, id=20]
>   0x00030800 JavaThread "main" [_thread_in_Java, id=2]
>
> Other Threads:
>   0x00200400 VMThread [id=19]
>   0x0021e400 WatcherThread [id=26]
>
> VM state:not at safepoint (normal execution)
>
> VM Mutex/Monitor currently owned by a thread: None
>
> Heap
>  PSYoungGen      total 154112K, used 2641K [0xe6800000, 0xf1400000, 0xfc000000)
>   eden space 132096K, 2% used [0xe6800000,0xe6a947c0,0xee900000)
>   from space 22016K, 0% used [0xefe80000,0xefe80000,0xf1400000)
>   to   space 22016K, 0% used [0xee900000,0xee900000,0xefe80000)
>  PSOldGen        total 352256K, used 0K [0xbbc00000, 0xd1400000, 0xe6800000)
>   object space 352256K, 0% used [0xbbc00000,0xbbc00000,0xd1400000)
>  PSPermGen       total 16384K, used 2221K [0xb7c00000, 0xb8c00000, 0xbbc00000)
>   object space 16384K, 13% used [0xb7c00000,0xb7e2b648,0xb8c00000)
>
> Dynamic libraries:
> 0x00010000     /java/east/u3/km88527/tests/volano25/testjdk_b02/solaris-sparc/bin/java
> 0xff3f8000     /lib/libthread.so.1
> 0xff380000     /java/east/u3/km88527/tests/volano25/testjdk_b02/solaris-sparc/bin/../jre/lib/sparc/jli/libjli.so
> 0xff3a0000     /lib/libdl.so.1
> 0xff200000     /lib/libc.so.1
> 0xff350000     /platform/SUNW,Sun-Fire-V890/lib/libc_psr.so.1
> 0xfe800000     /java/east/u3/km88527/tests/volano25/testjdk_b02/solaris-sparc/jre/lib/sparc/server/libjvm.so
> 0xff310000     /lib/libsocket.so.1
> 0xff340000     /usr/lib/libsched.so.1
> 0xff1e0000     /lib/libm.so.1
> 0xff1a0000     /usr/lib/libCrun.so.1
> 0xff180000     /lib/libdoor.so.1
> 0xff080000     /lib/libnsl.so.1
> 0xfe700000     /lib/libm.so.2
> 0xff150000     /lib/libscf.so.1
> 0xff060000     /lib/libuutil.so.1
> 0xff040000     /lib/libmd5.so.1
> 0xff020000     /platform/SUNW,Sun-Fire-V890/lib/libmd5_psr.so.1
> 0xfe7e0000     /lib/libmp.so.2
> 0xfe5d0000     /java/east/u3/km88527/tests/volano25/testjdk_b02/solaris-sparc/jre/lib/sparc/native_threads/libhpi.so
> 0xfe5a0000     /java/east/u3/km88527/tests/volano25/testjdk_b02/solaris-sparc/jre/lib/sparc/libverify.so
> 0xfe550000     /java/east/u3/km88527/tests/volano25/testjdk_b02/solaris-sparc/jre/lib/sparc/libjava.so
> 0xfe530000     /java/east/u3/km88527/tests/volano25/testjdk_b02/solaris-sparc/jre/lib/sparc/libzip.so
> 0xfe510000     /usr/lib/locale/en_US.ISO8859-1/en_US.ISO8859-1.so.3
>
> VM Arguments:
> jvm_args: -XX:+ExtendedDTraceProbes -Dinstall.root=. -Dcatalina.home=.
> java_command: COM.volano.Main
> Launcher Type: SUN_STANDARD
>
> Environment Variables:
> JAVA_HOME=/home/km88527/tests/volano25/testjdk_b02/solaris-sparc/
> PATH=/home/km88527/tests/volano25/testjdk_b02/solaris-sparc//bin:/java/east/jdk/7/b03/solaris-sparc/bin:/java/east/jdk/7/b02/solaris-sparc/bin:/java/east/jdk/7/b01/solaris-sparc/bin:/java/east/jdk/7.0//bin:/bin:/java/east/jdk/7/latest/solaris-sparc/bin:/home/km88527/bin:/usr/local/bin:/java/east/u3/km88527/bin:/net/prt-web.east/prt/tdf:/java/east/u3/km88527/gnu/solaris-sparc/bin:/java/devtools/sparc/bin:/java/devtools/sparc/SUNWspro/SS11/bin:/java/devtools/sparc/SUNWspro/SS10/bin:/java/devtools/sparc/SUNWspro/SOS8/bin::/net/prt-web.east/prt/bin:/usr/ucb:/usr/sbin:/usr/ccs/bin:/usr/bin:/usr/dist/exe:/bin:/usr/openwin/bin:/usr/bin/X11:/java/svc/kto/Mercurial/binaries/solaris-sparc/bin
> LD_LIBRARY_PATH=/java/east/u3/km88527/tests/volano25/testjdk_b02/solaris-sparc/jre/lib/sparc/server:/java/east/u3/km88527/tests/volano25/testjdk_b02/solaris-sparc/jre/lib/sparc:/java/east/u3/km88527/tests/volano25/testjdk_b02/solaris-sparc/jre/../lib/sparc
> SHELL=/bin/bash
> ARCH=sparc
>
> Signal Handlers:
> SIGSEGV: [libjvm.so+0x675508], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
> SIGBUS: [libjvm.so+0x675508], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
> SIGFPE: [libjvm.so+0x15bb5c], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
> SIGPIPE: [libjvm.so+0x15bb5c], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
> SIGILL: [libjvm.so+0x15bb5c], 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+0x599898], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
> SIGINT: [libjvm.so+0x599898], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
> SIGQUIT: [libjvm.so+0x599898], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
> SIGTERM: [libjvm.so+0x599898], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
> SIGQUIT: [libjvm.so+0x599898], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
> SIGTERM: [libjvm.so+0x599898], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
> SIG39: [libjvm.so+0x59c590], sa_mask[0]=0x00000000, sa_flags=0x00000008
> SIG40: [libjvm.so+0x15bb5c], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
>
>
> ---------------  S Y S T E M  ---------------
>
> OS:                       Solaris 10 11/06 s10s_u3wos_09 SPARC
>            Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
>                         Use is subject to license terms.
>                            Assembled 01 November 2006
>
> uname:SunOS 5.10 Generic_118833-31 sun4u  (T2 libthread)
> rlimit: STACK 8192k, CORE 0k, NOFILE 65536, AS infinity
> load average:0.39 0.79 0.87
>
> CPU:total 16 has_v8, has_v9, has_vis1, has_vis2, is_ultra3
>
> Memory: 8k page, physical 33554432k(27241216k free)
>
> vm_info: Java HotSpot(TM) Server VM (20061012181105.jrose.dolphin-cleanups) for solaris-sparc, built on Oct 12 2006 19:28:05 by "PRT" with unknown Workshop:0x580
>

                                    

Comments
EVALUATION

Fix for 6470497 needlessly introduced some memory edge tweaks in make_dtrace_method_entry_exit.  The make_runtime_call subroutine handles it fine.  Solution is to remove the tweaks, which are probably leftovers from a partial refactoring.
                                     
2007-05-23



Hardware and Software, Engineered to Work Together