-
Bug
-
Resolution: Fixed
-
P4
-
5.0
-
b44
-
generic
-
solaris_8
The following regression test fails with fastdebug or fastdebug1 builds
on Solaris :-
test/java/nio/channels/spi/SelectorProvider/inheritedChannel/run_tests.sh
Attached is a sample hs_err file showing the crash. The crash stems from a
build issue with the mini-launcher used by the test. Specifically the
launcher is using fork to create launch the service under test and this
interrupts all threads leading to obscure failure modes. In product
mode assertions are disabled and hence the failure has not been observed
or reported.
Trivally fixed by re-compiling the launcher with __solaris__ defined.
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# Internal Error (/export/Users/alanb/ws/service_hs_baseline/src/os/solaris/vm/os_solaris.cpp, 1950 [ Patched ]), pid=8449, tid=7
#
# Java VM: Java HotSpot(TM) Server VM (1.5-internal-debug mixed mode)
#
# Error: assert(ret == 0,"sema_wait() failed")
--------------- T H R E A D ---------------
Current thread (0x0011dd38): JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=7]
Stack: [0xfa300000,0xfa380000), sp=0xfa37f798, free space=509k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0xba0c74]
V [libjvm.so+0x3e0d98]
V [libjvm.so+0x98c220]
V [libjvm.so+0x98321c]
V [libjvm.so+0xb15f3c]
V [libjvm.so+0x989390]
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x00123ab0 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=11]
0x00121c08 JavaThread "CompilerThread1" daemon [_thread_in_native, id=10]
0x00120780 JavaThread "CompilerThread0" daemon [_thread_in_native, id=9]
0x0011f160 JavaThread "AdapterThread" daemon [_thread_blocked, id=8]
=>0x0011dd38 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=7]
0x00110dd8 JavaThread "Finalizer" daemon [_thread_blocked, id=6]
0x0010fdb8 JavaThread "Reference Handler" daemon [_thread_blocked, id=5]
0x0004efb0 JavaThread "main" [_thread_in_native, id=1]
Other Threads:
0x0010aa20 VMThread [id=4]
0x001259f0 WatcherThread [id=12]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
PSYoungGen total 10752K, used 368K [0xef400000, 0xf0000000, 0xfa000000)
eden space 9216K, 4% used [0xef400000,0xef45c3d0,0xefd00000)
from space 1536K, 0% used [0xefe80000,0xefe80000,0xf0000000)
to space 1536K, 0% used [0xefd00000,0xefd00000,0xefe80000)
PSOldGen total 24576K, used 0K [0xd9c00000, 0xdb400000, 0xef400000)
object space 24576K, 0% used [0xd9c00000,0xd9c00000,0xdb400000)
PSPermGen total 16384K, used 1962K [0xd5c00000, 0xd6c00000, 0xd9c00000)
object space 16384K, 11% used [0xd5c00000,0xd5dea918,0xd6c00000)
Dynamic libraries:
0x00010000 java
0xff380000 /usr/lib/libthread.so.1
0xff3b0000 /usr/lib/libdl.so.1
0xff280000 /usr/lib/libc.so.1
0xff370000 /usr/platform/SUNW,Sun-Fire-V250/lib/libc_psr.so.1
0xfd800000 /export/disk4/Scratch/alanb/builds/solaris-sparc/lib/sparc/server/libjvm.so
0xff250000 /usr/lib/libsocket.so.1
0xff230000 /usr/lib/libsched.so.1
0xff200000 /usr/lib/libCrun.so.1
0xff1b0000 /usr/lib/libm.so.1
0xff080000 /usr/lib/libnsl.so.1
0xff270000 /usr/lib/libw.so.1
0xff170000 /usr/lib/libmp.so.2
0xfd7e0000 /export/disk4/Scratch/alanb/builds/solaris-sparc/lib/sparc/native_threads/libhpi.so
0xfd7b0000 /export/disk4/Scratch/alanb/builds/solaris-sparc/lib/sparc/libverify.so
0xfd760000 /export/disk4/Scratch/alanb/builds/solaris-sparc/lib/sparc/libjava.so
0xfd740000 /export/disk4/Scratch/alanb/builds/solaris-sparc/lib/sparc/libzip.so
0xfd420000 /export/disk2/Users/alanb/ws/service_sdk_baseline/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/lib/solaris-sparc/libLauncher.so
0xfcfd0000 /export/disk4/Scratch/alanb/builds/solaris-sparc/lib/sparc/libnet.so
0xfcde0000 /export/disk4/Scratch/alanb/builds/solaris-sparc/lib/sparc/libnio.so
0xfcdc0000 /usr/lib/librt.so.1
0xfcda0000 /usr/lib/libaio.so.1
0xfcce0000 /usr/lib/libmd5.so.1
VM Arguments:
java_command: EchoTest
Environment Variables:
JAVA_HOME=/export/Users/alanb/ws/service_sdk_baseline/build/solaris-sparc
PATH=/export/Users/alanb/ws/service_sdk_baseline/build/solaris-sparc/bin:/java/devtools/sparc/bin:/java/devtools/sparc/SUNWspro/SOS8/bin:/home/ab23780/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ccs/bin:/usr/bin:/usr/sbin:/sbin:/usr/ucb:/usr/dist/local/exe:/usr/dist/exe:/usr/lib/lp/postscript:.
LD_LIBRARY_PATH=/export/disk4/Scratch/alanb/builds/solaris-sparc/lib/sparc/server:/export/disk4/Scratch/alanb/builds/solaris-sparc/lib/sparc:/export/disk4/Scratch/alanb/builds/solaris-sparc/../lib/sparc:lib/solaris-sparc
SHELL=/bin/ksh
DISPLAY=mrbean:0.0
--------------- S Y S T E M ---------------
OS: Solaris 9 12/03 s9s_u5wos_08b SPARC
Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 21 November 2003
uname:SunOS 5.9 Generic_112233-10 sun4u (T2 libthread)
rlimit: STACK 8192k, CORE infinity, NOFILE 65536, AS infinity
load average:0.09 0.03 0.07
CPU:total 2 has_v8, has_v9, has_vis1, has_vis2, is_ultra3
Memory: 8k page, physical 2097152k(1492424k free)
vm_info: Java HotSpot(TM) Server VM (1.5-internal) for solaris-sparc, built on Mar 5 2004 11:14:00 by unknown with unknown Workshop:0x550