JDK-6276921 : SIGBUS in Nightly testing on sparcv9
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_9
  • CPU: sparc
  • Submitted: 2005-05-27
  • Updated: 2010-07-30
  • Resolved: 2005-08-11
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 6
6Resolved
Related Reports
Duplicate :  
Relates :  
Description
Java2d test failed on sparcv9 during Nightly c2_baseline testing (05/25/05).
I wasn't able to reproduce it - this is why it is low priority.

minifridge% uname -a
SunOS minifridge 5.9 Generic sun4u sparc SUNW,Ultra-Enterprise
minifridge% cd /net/vmsqe/export/nightly/mantis/DTWS/results/05-25-05/ServerVM/64BITSOLSPARC/comp/C2_Baseline/RT_DEMO-NIGHTLY-C2_Baseline-ServerVM-comp-64BITSOLSPARC-2005-05-25-22-58-30

minifridge% hs_err hs_err_pid16930.log
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGBUS (0xa) at pc=0xffffffff7d2efe5c, pid=16930, tid=2
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20050524163142.nips.bug6206441-debug mixed mode)
# Problematic frame:
# V  [libjvm.so+0x6efe5c]
#

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

Current thread (0x000000010025d098):  VMThread [id=2]

siginfo:si_signo=10, si_errno=0, si_code=1, si_addr=0xabababababababc3

Registers:
 O0=0x00000001006a25c8 O1=0x0000000000000000 O2=0xffffffffbabababf O3=0xffffffff7ea97408
 O4=0x0000000000060118 O5=0x0000000000060000 O6=0xffffffff76dfdf31 O7=0xffffffff7d2efe04
 G1=0x0000000000055c00 G2=0x00000000abababab G3=0x00000000abababab G4=0x0000000000017c00
 G5=0x0000000000000000 G6=0x0000000000000000 G7=0xffffffff7ec00400 Y=0x0000000000000002
 PC=0xffffffff7d2efe5c nPC=0xffffffff7d2efe60


Top of Stack: (sp=0xffffffff76dfe730)
0xffffffff76dfe730:   abababababababab ffffffffbababab0
0xffffffff76dfe740:   0000000000000000 00000000016a3f64
0xffffffff76dfe750:   0000000000000000 0000000000000000
0xffffffff76dfe760:   0000000027af7260 ffffffff7ea49fb0
0xffffffff76dfe770:   ffffffffbababab0 ffffffffbababab0
0xffffffff76dfe780:   000000006cf4b7b0 000000000005a6c0
0xffffffff76dfe790:   000000000005a400 ffffffff7e993d68
0xffffffff76dfe7a0:   ffffffff76dfdfe1 ffffffff7d1e37d0
0xffffffff76dfe7b0:   ffffffff6e800000 ffffffff6e800000
0xffffffff76dfe7c0:   ffffffff6ee2a878 ffffffff6e800000
0xffffffff76dfe7d0:   ffffffff6b00a900 000000010025d098
0xffffffff76dfe7e0:   ffffffff7e993d68 0000000000016000
0xffffffff76dfe7f0:   0000000000000001 ffffffff6e800000
0xffffffff76dfe800:   ffffffff7da15bb8 ffffffff7ead4fa0
0xffffffff76dfe810:   ffffffff73800000 ffffffff7da15bb8
0xffffffff76dfe820:   000000010034a318 ffffffffabababab

Instructions: (pc=0xffffffff7d2efe5c)
0xffffffff7d2efe4c:   ee 5f 40 1b f4 5d e0 00 ac 06 80 19 ec 75 e0 00
0xffffffff7d2efe5c:   f4 5c 20 18 ea 5c 20 20 a8 06 80 19 80 a5 00 15

Stack: [0xffffffff76d00000,0xffffffff76e00000),  sp=0xffffffff76dfe730,  free space=1017k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x6efe5c] void*GenericGrowableArray::raw_allocate(int) + 0xf8
V  [libjvm.so+0x5e37d8] void GrowableArray<markOopDesc*>::grow(int) + 0xb8
V  [libjvm.so+0xcca1d0] void MarkSweep::preserve_mark(oop,markOopDesc*) + 0x150
V  [libjvm.so+0xcc9a10] void MarkSweep::_mark_and_push(oop*) + 0xd8
V  [libjvm.so+0xbfba88] void klassKlass::oop_follow_contents(oop) + 0x4c0
V  [libjvm.so+0x73976c] void instanceKlassKlass::oop_follow_contents(oop) + 0xe54
V  [libjvm.so+0xcca018] void MarkSweep::follow_stack() + 0x1c8
V  [libjvm.so+0xcc9e14] void MarkSweep::follow_root(oop*) + 0x344
V  [libjvm.so+0xfb7188] void Universe::oops_do(OopClosure*,int) + 0x38
V  [libjvm.so+0xebc520] void SharedHeap::process_strong_roots(int,SharedHeap::ClassScanningOption,OopClosure*,OopsInGenClosure*) + 0xb8
V  [libjvm.so+0x6af2bc] void GenCollectedHeap::gen_process_strong_roots(int,int,int,SharedHeap::ClassScanningOption,OopsInGenClosure*,OopsInGenClosure*) + 0x4c
V  [libjvm.so+0x6b4e20] void GenMarkSweep::mark_sweep_phase1(int,int) + 0x168
V  [libjvm.so+0x6b3bb8] void GenMarkSweep::invoke_at_safepoint(int,ReferenceProcessor*,int) + 0x238
V  [libjvm.so+0x6cc224] void OneContigSpaceCardGeneration::collect(int,int,unsigned long,int,int) + 0x44
V  [libjvm.so+0x6ae89c] void GenCollectedHeap::do_collection(int,int,unsigned long,int,int,int,int*) + 0xaf4
V  [libjvm.so+0x6b09f4] void GenCollectedHeap::do_full_collection(int,int,int*)
+ 0x84
V  [libjvm.so+0x106a2c4] void VM_GenCollectFull::doit() + 0x11c
V  [libjvm.so+0x108e170] void VM_Operation::evaluate() + 0x178
V  [libjvm.so+0x108cfe0] void VMThread::loop() + 0x6c8
V  [libjvm.so+0x108c3a0] void VMThread::run() + 0x108
V  [libjvm.so+0xd942f0] void*_start(void*) + 0x150

VM_Operation (0xffffffff67dfef48): full generation collection, mode: safepoint,
requested by thread 0x00000001004fcc18


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

Java Threads: ( => current thread )
  0x000000010058f598 JavaThread "Image Fetcher 0" daemon [_thread_in_native, id=27]
  0x00000001007f4b98 JavaThread "TimerQueue" daemon [_thread_blocked, id=19]
  0x0000000100a73568 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=18]
  0x00000001002df998 JavaThread "AWT-Shutdown" [_thread_blocked, id=17]
  0x0000000100525288 JavaThread "AWT-XAWT" daemon [_thread_blocked, id=16]
  0x000000010040ed98 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=15]
  0x0000000100533d78 JavaThread "Thread-2" [_thread_blocked, id=14]
  0x00000001004fcc18 JavaThread "Thread-1" [_thread_blocked, id=13]
  0x0000000100142cf8 JavaThread "DestroyJavaVM" [_thread_blocked, id=1]
  0x0000000100375418 JavaThread "Thread-0" [_thread_blocked, id=12]
  0x0000000100289738 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=9]
  0x0000000100287758 JavaThread "CompilerThread1" daemon [_thread_blocked, id=8]

  0x0000000100285da8 JavaThread "CompilerThread0" daemon [_thread_blocked, id=7]

  0x0000000100284338 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=6]
  0x0000000100282e08 JavaThread "Attach Listener" daemon [_thread_blocked, id=5]

  0x0000000100268c68 JavaThread "Finalizer" daemon [_thread_blocked, id=4]
  0x0000000100265ff8 JavaThread "Reference Handler" daemon [_thread_blocked, id=3]

Other Threads:
=>0x000000010025d098 VMThread [id=2]
  0x000000010028d768 WatcherThread [id=10]

VM state:at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
[0x0000000100140d78/0x0000000100140e28] Threads_lock - owner thread: 0x000000010025d098
[0x00000001001419b8/0x0000000100141a48] Heap_lock - owner thread: 0x00000001004fcc18

Heap
 def new generation   total 2752K, used 580K [0xffffffff69400000, 0xffffffff696c0000, 0xffffffff6b000000)
  eden space 2688K,  21% used [0xffffffff69400000, 0xffffffff694913f8, 0xffffffff696a0000)
  from space 64K,   0% used [0xffffffff696a0000, 0xffffffff696a0000, 0xffffffff696b0000)
  to   space 64K,   0% used [0xffffffff696b0000, 0xffffffff696b0000, 0xffffffff696c0000)
 tenured generation   total 2256K, used 1046K [0xffffffff6b000000, 0xffffffff6b234000, 0xffffffff6e800000)
   the space 2256K,  46% used [0xffffffff6b000000, 0xffffffff6b105ad8, 0xffffffff6b105c00, 0xffffffff6b234000)
 compacting perm gen  total 21248K, used 13911K [0xffffffff6e800000, 0xffffffff6fcc0000, 0xffffffff73800000)
   the space 21248K,  65% used [0xffffffff6e800000, 0xffffffff6f595c80, 0xffffffff6f595e00, 0xffffffff6fcc0000)
No shared spaces configured.

Dynamic libraries:
0x0000000100000000      /net/vmsqe.sfbay/export/weekly/mustang/JDK/c2_baseline/j
dk1.6/solaris-sparcv9/bin/sparcv9/java
0xffffffff7f200000      /usr/lib/64/libthread.so.1
0xffffffff7f100000      /usr/lib/64/libdl.so.1
0xffffffff7ef00000      /usr/lib/64/libc.so.1
0xffffffff7ed00000      /usr/platform/SUNW,Ultra-Enterprise/lib/sparcv9/libc_psr.so.1
0xffffffff7cc00000      /net/vmsqe.sfbay/export/weekly/mustang/JDK/c2_baseline/j
dk1.6/solaris-sparcv9/jre/lib/sparcv9/server/libjvm.so
0xffffffff7ca00000      /usr/lib/64/libsocket.so.1
0xffffffff7c700000      /usr/lib/64/libsched.so.1
0xffffffff7c500000      /usr/lib/64/libCrun.so.1
0xffffffff7c300000      /usr/lib/64/libm.so.1
0xffffffff7c100000      /usr/lib/64/libdoor.so.1
0xffffffff7be00000      /usr/lib/64/libnsl.so.1
0xffffffff7bc00000      /usr/lib/64/libmp.so.2
0xffffffff7ba00000      /usr/lib/64/librt.so.1
0xffffffff7b700000      /usr/lib/64/libaio.so.1
0xffffffff7b500000      /usr/lib/64/libmd5.so.1
0xffffffff7b300000      /usr/platform/SUNW,Ultra-Enterprise/lib/sparcv9/libmd5_psr.so.1
0xffffffff7ad00000      /net/vmsqe.sfbay/export/weekly/mustang/JDK/c2_baseline/jdk1.6/solaris-sparcv9/jre/lib/sparcv9/native_threads/libhpi.so
0xffffffff7aa00000      /net/vmsqe.sfbay/export/weekly/mustang/JDK/c2_baseline/jdk1.6/solaris-sparcv9/jre/lib/sparcv9/libverify.so
0xffffffff7a700000      /net/vmsqe.sfbay/export/weekly/mustang/JDK/c2_baseline/jdk1.6/solaris-sparcv9/jre/lib/sparcv9/libjava.so
0xffffffff7a500000      /net/vmsqe.sfbay/export/weekly/mustang/JDK/c2_baseline/jdk1.6/solaris-sparcv9/jre/lib/sparcv9/libzip.so
0xffffffff67700000      /net/vmsqe.sfbay/export/weekly/mustang/JDK/c2_baseline/jdk1.6/solaris-sparcv9/jre/lib/sparcv9/libawt.so
0xffffffff67400000      /net/vmsqe.sfbay/export/weekly/mustang/JDK/c2_baseline/jdk1.6/solaris-sparcv9/jre/lib/sparcv9/libmlib_image.so
0xffffffff67200000      /net/vmsqe.sfbay/export/weekly/mustang/JDK/c2_baseline/jdk1.6/solaris-sparcv9/jre/lib/sparcv9/xawt/libmawt.so
0xffffffff66f00000      /usr/lib/64/libXext.so.0
0xffffffff66d00000      /usr/lib/64/libX11.so.4
0xffffffff66900000      /net/vmsqe.sfbay/export/weekly/mustang/JDK/c2_baseline/jdk1.6/solaris-sparcv9/jre/lib/sparcv9/libfontmanager.so
0xffffffff65c00000      /net/vmsqe.sfbay/export/weekly/mustang/JDK/c2_baseline/jdk1.6/solaris-sparcv9/jre/lib/sparcv9/libnet.so
0xffffffff65a00000      /net/vmsqe.sfbay/export/weekly/mustang/JDK/c2_baseline/jdk1.6/solaris-sparcv9/jre/lib/sparcv9/libnio.so
0xffffffff65400000      /net/vmsqe.sfbay/export/weekly/mustang/JDK/c2_baseline/jdk1.6/solaris-sparcv9/jre/lib/sparcv9/libdcpr.so

VM Arguments:
jvm_args: -DHANGINGJAVA16693 -XX:-PrintVMOptions -XX:CompileThreshold=100
java_command: runThese -thread 1 -repeat 1 -iter 1 -D:gc=5 -D:TESTBASE=/net/vmsqe.sfbay/export/backup/UNIFIED-DTF/DTWS/suites/RT_DEMO/testbase/tests -runList runList.dat
Launcher Type: generic

Environment Variables:
JAVA_HOME=/net/vmsqe.sfbay/export/nightly/mantis/JDK/c2_baseline/jdk1.6/solaris-sparc
PATH=/net/vmsqe.sfbay/export/nightly/mantis/JDK/c2_baseline/jdk1.6/solaris-sparc/bin:/usr/ucb:/usr/bin:/bin:/usr/bin:/usr/local/bin:/usr/ucb:/usr/ccs/bin:/usr/sge/sge6/bin/sol-sparc64:/usr/bin::/usr/ucb:/net/vmsqe.sfbay/export/backup/UNIFIED-DTF/scripts/tools/solaris-sparc
LD_LIBRARY_PATH=/net/vmsqe.sfbay/export/weekly/mustang/JDK/c2_baseline/jdk1.6/solaris-sparcv9/jre/lib/sparcv9/server:/net/vmsqe.sfbay/export/weekly/mustang/JDK/c2_baseline/jdk1.6/solaris-sparcv9/jre/lib/sparcv9:/net/vmsqe.sfbay/export/weekly/mustang/JDK/c2_baseline/jdk1.6/solaris-sparcv9/jre/../lib/sparcv9:/import/pkg/local/lib
SHELL=/bin/ksh
DISPLAY=vmsqe.sfbay:0.0

Signal Handlers:
SIGSEGV: [libjvm.so+0x106958c], sa_mask[0]=0x7fbffeff, sa_flags=0x00000004
SIGBUS: [libjvm.so+0x106958c], sa_mask[0]=0x7fbffeff, sa_flags=0x00000004
SIGFPE: [libjvm.so+0xd9b958], sa_mask[0]=0x7fbffeff, sa_flags=0x0000000c
SIGPIPE: [libjvm.so+0xd9b958], sa_mask[0]=0x7fbffeff, sa_flags=0x0000000c
SIGILL: [libjvm.so+0xd9b958], sa_mask[0]=0x7fbffeff, sa_flags=0x0000000c
SIGUSR1: [libjvm.so+0xd9b988], sa_mask[0]=0x00000000, sa_flags=0x00000008
SIGUSR2: [libjvm.so+0xd9b958], sa_mask[0]=0x7fbffeff, sa_flags=0x0000000c
SIGHUP: [libjvm.so+0xd96e10], sa_mask[0]=0x7fbffeff, sa_flags=0x00000004
SIGINT: [libjvm.so+0xd96e10], sa_mask[0]=0x7fbffeff, sa_flags=0x00000004
SIGQUIT: [libjvm.so+0xd96e10], sa_mask[0]=0x7fbffeff, sa_flags=0x00000004
SIGTERM: [libjvm.so+0xd96e10], sa_mask[0]=0x7fbffeff, sa_flags=0x00000004


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

OS:                           Solaris 9 s9_58shwpl3 SPARC
           Copyright 2002 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                             Assembled 15 April 2002

uname:SunOS 5.9 Generic sun4u  (T2 libthread)
rlimit: STACK 8192k, CORE 50k, NOFILE 65536, AS infinity
load average:5.39 5.63 5.10

CPU:total 6 has_v8, has_v9, has_vis1

Memory: 8k page, physical 1572864k(719296k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (20050524163142.nips.bug6206441) for
solaris-sparc, built on May 24 2005 20:40:42 by PRT with unknown Workshop:0x570

The failure happens in the next instructions:
0xffffffff7ceefe50: raw_allocate+0x00ec:        ldx     [%l7], %i2
0xffffffff7ceefe54: raw_allocate+0x00f0:        add     %i2, %i1, %l6
0xffffffff7ceefe58: raw_allocate+0x00f4:        stx     %l6, [%l7]
0xffffffff7ceefe5c: raw_allocate+0x00f8:        ldx     [%l0 + 0x18], %i2
0xffffffff7ceefe60: raw_allocate+0x00fc:        ldx     [%l0 + 0x20], %l5
0xffffffff7ceefe64: raw_allocate+0x0100:        add     %i2, %i1, %l4
0xffffffff7ceefe68: raw_allocate+0x0104:        cmp     %l4, %l5

which corresponds to the next condition code in Arena::Amalloc(x) :
    NOT_PRODUCT(_bytes_allocated += x);
    if (_hwm + x > _max) {

l0 points to Arena and seems has incorrect value. 
Unfortunately doesn't provide the values on local registers.

###@###.### 2005-05-27 00:08:55 GMT

Comments
EVALUATION According to Ken 06/23/05 18:09: FYI, this is almost 100% certainly 6288902 which ###@###.### just put back to c2_baseline and which I'm pushing up to main/baseline now. See also 6257178. I reproduced this crash with b33, but cannot reproduce it with b44 (after the fix for that bug went in).
11-08-2005

EVALUATION Sending to runtime team for evaluation as this looks like a memory stomp. ###@###.### 2005-06-13 18:50:00 GMT
13-06-2005