JDK-6840239 : JVM crashes if the number of bound CPUs changed during runtime
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 6u13
  • Priority: P2
  • Status: Closed
  • Resolution: Won't Fix
  • OS: solaris_10
  • CPU: sparc
  • Submitted: 2009-05-12
  • Updated: 2017-06-13
  • Resolved: 2010-04-21
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 7 Other
7u161Fixed hs25Fixed
Related Reports
Relates :  
Description
This is from IBIS case 70982706.
jdk 6u13 64bit
Solaris 10 amd64

Here is decoded hs_err:

Warning: Can't find "/apps/jre1.6.0_13/lib/amd64/server/libjvm.so"; using "/java/re/jdk/1.6.0_13/promoted/fcs/b03/binaries/solaris-amd64/jre/lib/amd64/server/libjvm.so"
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xfffffd7ffec5dc8a, pid=4562, tid=17
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode solaris-amd64)
# Problematic frame:
# V  [libjvm.so+0x65dc8a]
#
# 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 (0x0000000000543000):  JavaThread "Thread-6" [_thread_in_vm, id=17, stack(0xfffffd7fef650000,0xfffffd7fef750000)]

siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x0000000000000021

Registers:
RAX=0x0000000000000020, RBX=0x0000000000000000, RCX=0x0000000000000291, RDX=0xfffffd7fef74f568
RSP=0xfffffd7fef74f480, RBP=0xfffffd7fef74f480, RSI=0xfffffd7fef74f570, RDI=0x0000000000000001
, R8=0x0000000000000020, R9=0x0000000000000000, R10=0xfffffd7ffb00ebc5, R11=0xfffffd7ffeeae340, R12=0x0000000000543000, R13=0xfffffd7fef74f568, R14=0xfffffd7fff1094ec, R15=0xfffffd7fff103d04
RIP=0xfffffd7ffec5dc8a, RFLAGS=0x0000000000010202

Top of Stack: (sp=0xfffffd7fef74f480)
0xfffffd7fef74f480:   fffffd7fef74f4e0 fffffd7ffef2ca26
0xfffffd7fef74f490:   0000000000543000 fffffd7fef74f570
0xfffffd7fef74f4a0:   fffffd7ff5b1b178 0000000000000101
0xfffffd7fef74f4b0:   fffffd7ff5b1b178 0000000000543100
0xfffffd7fef74f4c0:   fffffd7fef74f520 fffffd7ffb06031e
0xfffffd7fef74f4d0:   fffffd7ff281c3e8 fffffd7ff0965e00
0xfffffd7fef74f4e0:   fffffd7fef74f548 fffffd7ffb00ebf2
0xfffffd7fef74f4f0:   0000000000543000 fffffd7ff0965e38
0xfffffd7fef74f500:   fffffd7fef74f550 fffffd7fef74f508
0xfffffd7fef74f510:   0000000000000000 fffffd7fef74f570
0xfffffd7fef74f520:   fffffd7ff5b1b768 0000000000000000
0xfffffd7fef74f530:   fffffd7ff5b1b178 0000000000000000
0xfffffd7fef74f540:   fffffd7fef74f568 fffffd7fef74f5b8
0xfffffd7fef74f550:   fffffd7ffb003322 0000000000000000
0xfffffd7fef74f560:   fffffd7ffb00b358 0000000000000001
0xfffffd7fef74f570:   fffffd7ff281c3e8 fffffd7fef74f578
0xfffffd7fef74f580:   fffffd7ff5c88d70 fffffd7fef74f5c8
0xfffffd7fef74f590:   fffffd7ff5c897a0 0000000000000000
0xfffffd7fef74f5a0:   fffffd7ff5c88d78 fffffd7fef74f568
0xfffffd7fef74f5b0:   fffffd7fef74f5c8 fffffd7fef74f610
0xfffffd7fef74f5c0:   fffffd7ffb003322 0000000000000001
0xfffffd7fef74f5d0:   fffffd7fef74f5d0 fffffd7ff5c01af8
0xfffffd7fef74f5e0:   fffffd7fef74f638 fffffd7ff5c05fa0
0xfffffd7fef74f5f0:   0000000000000000 fffffd7ff5c01b00
0xfffffd7fef74f600:   fffffd7fef74f5c8 fffffd7fef74f630
0xfffffd7fef74f610:   fffffd7fef74f680 fffffd7ffb003322
0xfffffd7fef74f620:   0000000000000000 fffffd7ff0951c08
0xfffffd7fef74f630:   fffffd7ff0965e38 fffffd7ff2823680
0xfffffd7fef74f640:   fffffd7fef74f640 fffffd7ff5c02f22
0xfffffd7fef74f650:   fffffd7fef74f6a0 fffffd7ff5c05fa0
0xfffffd7fef74f660:   fffffd7ff5c8c088 fffffd7ff5c02f30
0xfffffd7fef74f670:   fffffd7fef74f630 fffffd7fef74f698

Instructions: (pc=0xfffffd7ffec5dc8a)
0xfffffd7ffec5dc7a:   00 41 8b 00 85 c0 7f 05 48 33 c0 eb 07 4c 63 c0
0xfffffd7ffec5dc8a:   4a 8b 04 07 c9 c3 55 48 8b ec 4c 8b 05 1d ca 43
fffffd7ffec5dc7a 00 41 8b                add    %al,0xffffffffffffff8b(%rcx)
fffffd7ffec5dc7d 00 85 c0 7f 05 48       add    %al,0x48057fc0(%rbp)
fffffd7ffec5dc83 33 c0                   xor    %eax,%eax
fffffd7ffec5dc85 eb 07                   jmp    0xfffffffffec5dc8e
fffffd7ffec5dc87 4c 63 c0                movslq %eax,%r8
---------------
fffffd7ffec5dc8a 4a 8b 04 07             mov    (%rdi,%r8,1),%rax
fffffd7ffec5dc8e c9                      leaveq
fffffd7ffec5dc8f c3                      retq   
fffffd7ffec5dc90 55                      push   %rbp
fffffd7ffec5dc91 48 8b ec                mov    %rsp,%rbp
fffffd7ffec5dc94 4c 8b 05 1d ca 43 ff    mov    -12334563(%rip),%r8        # 0xfffffffffe09a6b8

Stack: [0xfffffd7fef650000,0xfffffd7fef750000],  sp=0xfffffd7fef74f480,  free space=1021k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x65dc8a] __1cQjava_lang_ThreadKpark_event6FpnHoopDesc__x_+0x1a
V  [libjvm.so+0x92ca26] Unsafe_Unpark+0xe6
j  sun.misc.Unsafe.unpark(Ljava/lang/Object;)V+0
j  java.util.concurrent.locks.LockSupport.unpark(Ljava/lang/Thread;)V+8
j  java.util.concurrent.locks.AbstractQueuedSynchronizer.unparkSuccessor(Ljava/util/concurrent/locks/AbstractQueuedSynchronizer$Node;)V+64
j  java.util.concurrent.locks.AbstractQueuedSynchronizer.release(I)Z+26
j  java.util.concurrent.locks.ReentrantLock.unlock()V+5
j  java.util.concurrent.ArrayBlockingQueue.put(Ljava/lang/Object;)V+70
j  ConcurrentErrorGeneration.run()V+72
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub
V  [libjvm.so+0x35a82a] __1cJJavaCallsLcall_helper6FpnJJavaValue_pnMmethodHandle_pnRJavaCallArguments_pnGThread__v_+0x22a
V  [libjvm.so+0x35a518] __1cCosUos_exception_wrapper6FpFpnJJavaValue_pnMmethodHandle_pnRJavaCallArguments_pnGThread__v2468_v_+0x18
V  [libjvm.so+0x41679c] __1cJJavaCallsMcall_virtual6FpnJJavaValue_nGHandle_nLKlassHandle_nMsymbolHandle_5pnGThread__v_+0x1bc
V  [libjvm.so+0x42a9bb] __1cMthread_entry6FpnKJavaThread_pnGThread__v_+0x10b
V  [libjvm.so+0x42612d] __1cKJavaThreadRthread_main_inner6M_v_+0x4d
V  [libjvm.so+0x425eda] __1cKJavaThreadDrun6M_v_+0x10a
V  [libjvm.so+0x85c8c9] java_start+0x219
C  [libc.so.1+0xd0edb]  _thr_slot_offset+0x31b _etext+0x21143
C  [libc.so.1+0xd1110]  _thr_slot_offset+0x550 _etext+0x21378

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  sun.misc.Unsafe.unpark(Ljava/lang/Object;)V+0
j  java.util.concurrent.locks.LockSupport.unpark(Ljava/lang/Thread;)V+8
j  java.util.concurrent.locks.AbstractQueuedSynchronizer.unparkSuccessor(Ljava/util/concurrent/locks/AbstractQueuedSynchronizer$Node;)V+64
j  java.util.concurrent.locks.AbstractQueuedSynchronizer.release(I)Z+26
j  java.util.concurrent.locks.ReentrantLock.unlock()V+5
j  java.util.concurrent.ArrayBlockingQueue.put(Ljava/lang/Object;)V+70
j  ConcurrentErrorGeneration.run()V+72
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
  0x0000000000560000 JavaThread "Thread-20" [_thread_blocked, id=31, stack(0xfffffd7fee834000,0xfffffd7fee934000)]
  0x000000000055e800 JavaThread "Thread-19" [_thread_blocked, id=30, stack(0xfffffd7fee936000,0xfffffd7feea36000)]
  0x000000000055d400 JavaThread "Thread-18" [_thread_blocked, id=29, stack(0xfffffd7feea38000,0xfffffd7feeb38000)]
  0x000000000055bc00 JavaThread "Thread-17" [_thread_blocked, id=28, stack(0xfffffd7feeb3a000,0xfffffd7feec3a000)]
  0x000000000055a000 JavaThread "Thread-16" [_thread_blocked, id=27, stack(0xfffffd7feec3c000,0xfffffd7feed3c000)]
  0x0000000000558800 JavaThread "Thread-15" [_thread_blocked, id=26, stack(0xfffffd7feed3e000,0xfffffd7feee3e000)]
  0x0000000000557000 JavaThread "Thread-14" [_thread_blocked, id=25, stack(0xfffffd7feee40000,0xfffffd7feef40000)]
  0x0000000000555c00 JavaThread "Thread-13" [_thread_blocked, id=24, stack(0xfffffd7feef42000,0xfffffd7fef042000)]
  0x000000000054c000 JavaThread "Thread-12" [_thread_blocked, id=23, stack(0xfffffd7fef044000,0xfffffd7fef144000)]
  0x000000000054a800 JavaThread "Thread-11" [_thread_blocked, id=22, stack(0xfffffd7fef146000,0xfffffd7fef246000)]
  0x0000000000549000 JavaThread "Thread-10" [_thread_blocked, id=21, stack(0xfffffd7fef248000,0xfffffd7fef348000)]
  0x0000000000547800 JavaThread "Thread-9" [_thread_blocked, id=20, stack(0xfffffd7fef34a000,0xfffffd7fef44a000)]
  0x0000000000546000 JavaThread "Thread-8" [_thread_blocked, id=19, stack(0xfffffd7fef44c000,0xfffffd7fef54c000)]
  0x0000000000544800 JavaThread "Thread-7" [_thread_blocked, id=18, stack(0xfffffd7fef54e000,0xfffffd7fef64e000)]
=>0x0000000000543000 JavaThread "Thread-6" [_thread_in_vm, id=17, stack(0xfffffd7fef650000,0xfffffd7fef750000)]
  0x0000000000541800 JavaThread "Thread-5" [_thread_blocked, id=16, stack(0xfffffd7fef752000,0xfffffd7fef852000)]
  0x0000000000540000 JavaThread "Thread-4" [_thread_blocked, id=15, stack(0xfffffd7fef854000,0xfffffd7fef954000)]
  0x000000000053e800 JavaThread "Thread-3" [_thread_blocked, id=14, stack(0xfffffd7fef956000,0xfffffd7fefa56000)]
  0x000000000053cc00 JavaThread "Thread-2" [_thread_blocked, id=13, stack(0xfffffd7fefa58000,0xfffffd7fefb58000)]
  0x000000000052c000 JavaThread "Thread-1" [_thread_blocked, id=12, stack(0xfffffd7fefb5a000,0xfffffd7fefc5a000)]
  0x0000000000527400 JavaThread "Thread-0" [_thread_blocked, id=11, stack(0xfffffd7fefc5c000,0xfffffd7fefd5c000)]
  0x0000000000512000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=9, stack(0xfffffd7fefe60000,0xfffffd7feff60000)]
  0x0000000000510c00 JavaThread "CompilerThread1" daemon [_thread_blocked, id=8, stack(0xfffffd7feff62000,0xfffffd7ff0062000)]
  0x0000000000507800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=7, stack(0xfffffd7ff0064000,0xfffffd7ff0164000)]
  0x0000000000506400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=6, stack(0xfffffd7ff0166000,0xfffffd7ff0266000)]
  0x00000000004e4400 JavaThread "Finalizer" daemon [_thread_blocked, id=5, stack(0xfffffd7ff0268000,0xfffffd7ff0368000)]
  0x00000000004e2c00 JavaThread "Reference Handler" daemon [_thread_blocked, id=4, stack(0xfffffd7ff036a000,0xfffffd7ff046a000)]
  0x0000000000427800 JavaThread "main" [_thread_in_Java, id=2, stack(0xfffffd7ffe29c000,0xfffffd7ffe39c000)]

Other Threads:
  0x00000000004d9400 VMThread [stack: 0xfffffd7ffae7a000,0xfffffd7ffaf7a000] [id=3]
  0x0000000000513c00 WatcherThread [stack: 0xfffffd7fefd5e000,0xfffffd7fefe5e000] [id=10]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
def new generation   total 10496K, used 3490K [0xfffffd7ff0600000, 0xfffffd7ff11b0000, 0xfffffd7ff2200000)
  eden space 9024K,  38% used [0xfffffd7ff0600000, 0xfffffd7ff09688c8, 0xfffffd7ff0ed0000)
  from space 1472K,   0% used [0xfffffd7ff0ed0000, 0xfffffd7ff0ed0000, 0xfffffd7ff1040000)
  to   space 1472K,   0% used [0xfffffd7ff1040000, 0xfffffd7ff1040000, 0xfffffd7ff11b0000)
tenured generation   total 23688K, used 14212K [0xfffffd7ff2200000, 0xfffffd7ff3922000, 0xfffffd7ff5a00000)
   the space 23688K,  59% used [0xfffffd7ff2200000, 0xfffffd7ff2fe1218, 0xfffffd7ff2fe1400, 0xfffffd7ff3922000)
compacting perm gen  total 21248K, used 2622K [0xfffffd7ff5a00000, 0xfffffd7ff6ec0000, 0xfffffd7ffae00000)
   the space 21248K,  12% used [0xfffffd7ff5a00000, 0xfffffd7ff5c8f860, 0xfffffd7ff5c8fa00, 0xfffffd7ff6ec0000)
No shared spaces configured.

Dynamic libraries:
0x0000000000400000  /apps/jre1.6.0_13/bin/amd64/java
0xfffffd7fff390000  /lib/64/libthread.so.1
0xfffffd7fff360000  /apps/jre1.6.0_13/bin/amd64/../../lib/amd64/jli/libjli.so
0xfffffd7fff340000  /lib/64/libdl.so.1
0xfffffd7fff220000  /lib/64/libc.so.1
0xfffffd7ffe600000  /apps/jre1.6.0_13/lib/amd64/server/libjvm.so
0xfffffd7fff1d0000  /lib/64/libsocket.so.1
0xfffffd7fff200000  /usr/lib/64/libsched.so.1
0xfffffd7fff190000  /lib/64/libm.so.1
0xfffffd7fff150000  /usr/lib/64/libCrun.so.1
0xfffffd7ffe5e0000  /lib/64/libdoor.so.1
0xfffffd7ffe510000  /lib/64/libnsl.so.1
0xfffffd7ffe4a0000  /lib/64/libm.so.2
0xfffffd7ffe460000  /lib/64/libscf.so.1
0xfffffd7ffe430000  /lib/64/libuutil.so.1
0xfffffd7ffe410000  /lib/64/libgen.so.1
0xfffffd7ffe3e0000  /lib/64/libmd.so.1
0xfffffd7ffe3c0000  /lib/64/libmp.so.2
0xfffffd7ffe230000  /apps/jre1.6.0_13/lib/amd64/native_threads/libhpi.so
0xfffffd7ffe190000  /apps/jre1.6.0_13/lib/amd64/libverify.so
0xfffffd7ffe130000  /apps/jre1.6.0_13/lib/amd64/libjava.so
0xfffffd7ffe0f0000  /apps/jre1.6.0_13/lib/amd64/libzip.so
0xfffffd7ffae60000  /usr/lib/locale/en_US/amd64/en_US.so.3

VM Arguments:
jvm_args: -XX:+PrintCommandLineFlags
java_command: ConcurrentErrorGeneration 20 10000000 1000000
Launcher Type: SUN_STANDARD

Environment Variables:
PATH=/usr/sbin:/usr/bin:/sbin:/fisc/local/bin:/usr/openwin/bin:/opt/ZoneDesktop/bin
LD_LIBRARY_PATH=/apps/jre1.6.0_13/lib/amd64/server:/apps/jre1.6.0_13/lib/amd64:/apps/jre1.6.0_13/../lib/amd64
SHELL=/usr/bin/ksh

Signal Handlers:
SIGSEGV: [libjvm.so+0x95f100], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGBUS: [libjvm.so+0x95f100], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGFPE: [libjvm.so+0x34ef20], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGPIPE: [libjvm.so+0x34ef20], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGXFSZ: [libjvm.so+0x34ef20], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGILL: [libjvm.so+0x34ef20], 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+0x85e5c0], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGHUP: [libjvm.so+0x85e5c0], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGINT: [libjvm.so+0x85e5c0], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGTERM: [libjvm.so+0x85e5c0], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIG39: [libjvm.so+0x861130], sa_mask[0]=0x00000000, sa_flags=0x00000008
SIG40: [libjvm.so+0x34ef20], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c


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

OS:                        Solaris 10 8/07 s10x_u4wos_12b X86
           Copyright 2007 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                            Assembled 16 August 2007

uname:SunOS 5.10 Generic_120012-14 i86pc  (T2 libthread)
rlimit: STACK 10240k, CORE infinity, NOFILE 65536, AS infinity
load average:0.12 0.07 0.07

CPU:total 1 (2 cores per cpu, 1 threads per core) family 15 model 65 stepping 3, cmov, cx8, fxsr, mmx, sse, sse2, sse3, mmxext, 3dnow, 3dnowext

Memory: 4k page, physical 265403948k(204079344k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (11.3-b02) for solaris-amd64 JRE (1.6.0_13-b03), built on Mar  9 2009 01:14:10 by "" with Workshop 5.8

time: Mon May 11 16:15:35 2009
elapsed time: 0 seconds

Comments
EVALUATION JVM doesn't generate lock prefixes for x86 instructions if at time of start JVM was locked to a single processors, so if you later assign more processors to JVM it crashes,
21-05-2009