Hello,
I use LZF librery to compress and uncompress file, no problem with Windows, Linux, Solaris 11 ( x86 ), but when i use Solaris 11 on sparc i have JVM FATAL error
this FATAL error occured in readLine method when i use BufferedReader :
BufferedReader brBufferedReader = new BufferedReader( new InputStreamReader( new LZFInputStream(
new FileInputStream( fToUnCompress ), true ) ) );
String sLine = brBufferedReader.readLine();
NOTE : this work when i use VanillaChunkDecoder in ChunkDecoderFactory class.
Can you please help me about this issue.
JVM Logs
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGBUS (0xa) at pc=0xffffffff76de06d4, pid=20352, tid=2
#
# JRE version: 7.0_04-b20
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.0-b21 mixed mode solaris-sparc compressed oops)
# Problematic frame:
# V [libjvm.so+0xae06d4] Unsafe_GetLong+0x154
#
# Core dump written. Default location: /opt/mycom/shell/support/test15/core or core.20352
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
#
--------------- T H R E A D ---------------
Current thread (0x00000001001b6800): JavaThread "main" [_thread_in_vm, id=2, stack(0xffffffff7e000000,0xffffffff7e100000)]
siginfo:si_signo=SIGBUS: si_errno=0, si_code=1 (BUS_ADRALN), si_addr=0x00000007d6700a93
Registers:
G1=0xffffffff77136870 G2=0xffffffff77136878 G3=0x0000000000084870 G4=0x0000000000084878
G5=0x0000000000084800 G6=0x0000000000000000 G7=0xffffffff7df00240 Y=0x0000000000000000
O0=0x000000001001b680 O1=0x0000000000000000 O2=0x0000000000000000 O3=0x0000000000000000
O4=0x000000000008a400 O5=0x0000000000000000 O6=0xffffffff7e0fdd31 O7=0x0000000000000000
L0=0xffffffff7713c508 L1=0x0000000000000000 L2=0x0000000000000000 L3=0x0000000030000000
L4=0x0000000000000006 L5=0x00000007d6700a80 L6=0x0000000000001ffc L7=0xffffffff770b2000
I0=0x000000000008a508 I1=0xffffffff7e0ffb00 I2=0xffffffff7e0fe890 I3=0x0000000000000013
I4=0xffffffff77136888 I5=0x00000001001b6800 I6=0xffffffff7e0fdde1 I7=0xffffffff71c10844
PC=0xffffffff76de06d4 nPC=0xffffffff76de06d8
Top of Stack: (sp=0xffffffff7e0fe530)
0xffffffff7e0fe530: ffffffff7713c508 0000000000000000
0xffffffff7e0fe540: 0000000000000000 0000000030000000
0xffffffff7e0fe550: 0000000000000006 00000007d6700a80
0xffffffff7e0fe560: 0000000000001ffc ffffffff770b2000
0xffffffff7e0fe570: 000000000008a508 ffffffff7e0ffb00
0xffffffff7e0fe580: ffffffff7e0fe890 0000000000000013
0xffffffff7e0fe590: ffffffff77136888 00000001001b6800
0xffffffff7e0fe5a0: ffffffff7e0fdde1 ffffffff71c10844
0xffffffff7e0fe5b0: 0000000000000000 ffffffff77118b88
0xffffffff7e0fe5c0: 0000000100195580 0000001500000000
0xffffffff7e0fe5d0: ffffffff71c05410 0000000000014d36
0xffffffff7e0fe5e0: 0000000000000000 0000000000000000
0xffffffff7e0fe5f0: 000000077e0f7ac0 ffffffff7e0fe898
0xffffffff7e0fe600: 0000000000000000 ffffffff71c0d1ac
0xffffffff7e0fe610: ffffffff7e0fe790 00000001001b6800
0xffffffff7e0fe620: 00000001001b6800 ffffffff7e0fe898
Instructions: (pc=0xffffffff76de06d4)
0xffffffff76de06b4: 90 10 00 1d a8 10 20 06 e8 27 62 50 0a c6 80 04
0xffffffff76de06c4: f2 5f 60 48 10 80 00 04 f0 5e e0 00 ea 5e a0 00
0xffffffff76de06d4: f0 5d 40 1b d0 5e 60 10 ec 5e 60 08 f4 5a 20 00
0xffffffff76de06e4: 02 c6 80 05 b6 10 20 07 7f dc 1e 43 01 00 00 00
Register to memory mapping:
G1=0xffffffff77136870: _1cTMaskFillerForNativeG__vtbl+0xad0 in /usr/jdk/instances/jdk1.7.0/jre/lib/sparcv9/server/libjvm.so at 0xffffffff76300000
G2=0xffffffff77136878: _1cTMaskFillerForNativeG__vtbl+0xad8 in /usr/jdk/instances/jdk1.7.0/jre/lib/sparcv9/server/libjvm.so at 0xffffffff76300000
G3=0x0000000000084870 is an unknown value
G4=0x0000000000084878 is an unknown value
G5=0x0000000000084800 is an unknown value
G6=0x0000000000000000 is an unknown value
G7=0xffffffff7df00240 is an unknown value
O0=0x000000001001b680 is an unknown value
O1=0x0000000000000000 is an unknown value
O2=0x0000000000000000 is an unknown value
O3=0x0000000000000000 is an unknown value
O4=0x000000000008a400 is an unknown value
O5=0x0000000000000000 is an unknown value
O6=0xffffffff7e0fdd31 is pointing into the stack for thread: 0x00000001001b6800
O7=0x0000000000000000 is an unknown value
L0=0xffffffff7713c508: _1cRDeoptimizedRFrameG__vtbl+0x1c0 in /usr/jdk/instances/jdk1.7.0/jre/lib/sparcv9/server/libjvm.so at 0xffffffff76300000
L1=0x0000000000000000 is an unknown value
L2=0x0000000000000000 is an unknown value
L3=0x0000000030000000 is an unknown value
L4=0x0000000000000006 is an unknown value
L5=0x00000007d6700a80 is an oop
[B
- klass: {type array byte}
- length: 65535
L6=0x0000000000001ffc is an unknown value
L7=0xffffffff770b2000: GLOBAL_OFFSET_TABLE+0 in /usr/jdk/instances/jdk1.7.0/jre/lib/sparcv9/server/libjvm.so at 0xffffffff76300000
I0=0x000000000008a508 is an unknown value
I1=0xffffffff7e0ffb00 is pointing into the stack for thread: 0x00000001001b6800
I2=0xffffffff7e0fe890 is pointing into the stack for thread: 0x00000001001b6800
I3=0x0000000000000013 is an unknown value
I4=0xffffffff77136888: _1cTMaskFillerForNativeG__vtbl+0xae8 in /usr/jdk/instances/jdk1.7.0/jre/lib/sparcv9/server/libjvm.so at 0xffffffff76300000
I5=0x00000001001b6800 is a thread
I6=0xffffffff7e0fdde1 is pointing into the stack for thread: 0x00000001001b6800
I7=0xffffffff71c10844 is an Interpreter codelet
method entry point (kind = native) [0xffffffff71c106a0, 0xffffffff71c10a20] 896 bytes
Stack: [0xffffffff7e000000,0xffffffff7e100000], sp=0xffffffff7e0fe530, free space=1017k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0xae06d4] Unsafe_GetLong+0x154
j sun.misc.Unsafe.getLong(Ljava/lang/Object;J)J+0
j sun.misc.Unsafe.getLong(Ljava/lang/Object;J)J+0
j com.ning.compress.lzf.impl.UnsafeChunkDecoder.copyUpTo32([BI[BII)V+318
j com.ning.compress.lzf.impl.UnsafeChunkDecoder.decodeChunk([BI[BII)V+26
j com.ning.compress.lzf.impl.UnsafeChunkDecoder.decodeChunk(Ljava/io/InputStream;[B[B)I+104
j com.ning.compress.lzf.LZFInputStream.readyBuffer()Z+39
j com.ning.compress.lzf.LZFInputStream.read([BII)I+8
j sun.nio.cs.StreamDecoder.readBytes()I+135
j sun.nio.cs.StreamDecoder.implRead([CII)I+112
j sun.nio.cs.StreamDecoder.read([CII)I+180
j java.io.InputStreamReader.read([CII)I+7
j java.io.BufferedReader.fill()V+145
j java.io.BufferedReader.readLine(Z)Ljava/lang/String;+44
j java.io.BufferedReader.readLine()Ljava/lang/String;+2
j com.ning.CompressUncompressNing.UnCompress(Ljava/io/File;)V+198
j com.ning.CompressUncompressNing.Start(Ljava/lang/String;Ljava/io/File;)V+28
j com.ning.CompressUncompressNing.main([Ljava/lang/String;)V+26
v ~StubRoutines::call_stub
V [libjvm.so+0x21c26c] void JavaCalls::call_helper(JavaValue_,methodHandle_,JavaCallArguments_,Thread_)+0x304
V [libjvm.so+0x228f54] void JavaCalls::call(JavaValue_,methodHandle,JavaCallArguments_,Thread*)+0x44
V [libjvm.so+0x2cca74] jni_CallStaticVoidMethod+0x618
C [libjli.so+0x23f8] JavaMain+0x7c8
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j sun.misc.Unsafe.getLong(Ljava/lang/Object;J)J+0
j com.ning.compress.lzf.impl.UnsafeChunkDecoder.copyUpTo32([BI[BII)V+318
j com.ning.compress.lzf.impl.UnsafeChunkDecoder.decodeChunk([BI[BII)V+26
j com.ning.compress.lzf.impl.UnsafeChunkDecoder.decodeChunk(Ljava/io/InputStream;[B[B)I+104
j com.ning.compress.lzf.LZFInputStream.readyBuffer()Z+39
j com.ning.compress.lzf.LZFInputStream.read([BII)I+8
j sun.nio.cs.StreamDecoder.readBytes()I+135
j sun.nio.cs.StreamDecoder.implRead([CII)I+112
j sun.nio.cs.StreamDecoder.read([CII)I+180
j java.io.InputStreamReader.read([CII)I+7
j java.io.BufferedReader.fill()V+145
j java.io.BufferedReader.readLine(Z)Ljava/lang/String;+44
j java.io.BufferedReader.readLine()Ljava/lang/String;+2
j com.ning.CompressUncompressNing.UnCompress(Ljava/io/File;)V+198
j com.ning.CompressUncompressNing.Start(Ljava/lang/String;Ljava/io/File;)V+28
j com.ning.CompressUncompressNing.main([Ljava/lang/String;)V+26
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x0000000105414000 JavaThread "Service Thread" daemon [_thread_blocked, id=34, stack(0xffffffff78200000,0xffffffff78300000)]
0x0000000105407000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=33, stack(0xffffffff78400000,0xffffffff78500000)]
0x0000000105404800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=32, stack(0xffffffff78800000,0xffffffff78900000)]
0x0000000105402800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=31, stack(0xffffffff78a00000,0xffffffff78b00000)]
0x00000001053ac000 JavaThread "Finalizer" daemon [_thread_blocked, id=30, stack(0xffffffff78d00000,0xffffffff78e00000)]
0x00000001053a5000 JavaThread "Reference Handler" daemon [_thread_blocked, id=29, stack(0xffffffff78f00000,0xffffffff79000000)]
=>0x00000001001b6800 JavaThread "main" [_thread_in_vm, id=2, stack(0xffffffff7e000000,0xffffffff7e100000)]
Other Threads:
0x000000010539c800 VMThread [stack: 0xffffffff79100000,0xffffffff79200000] [id=28]
0x000000010541e000 WatcherThread [stack: 0xffffffff77f00000,0xffffffff78000000] [id=35]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
PSYoungGen total 301056K, used 5161K [0x00000007d6400000, 0x00000007eb400000, 0x0000000800000000)
eden space 258048K, 2% used [0x00000007d6400000,0x00000007d690a440,0x00000007e6000000)
from space 43008K, 0% used [0x00000007e8a00000,0x00000007e8a00000,0x00000007eb400000)
to space 43008K, 0% used [0x00000007e6000000,0x00000007e6000000,0x00000007e8a00000)
ParOldGen total 684032K, used 0K [0x0000000783000000, 0x00000007acc00000, 0x00000007d6400000)
object space 684032K, 0% used [0x0000000783000000,0x0000000783000000,0x00000007acc00000)
PSPermGen total 24576K, used 2754K [0x000000077e000000, 0x000000077f800000, 0x0000000783000000)
object space 24576K, 11% used [0x000000077e000000,0x000000077e2b09d0,0x000000077f800000)
Code Cache [0xffffffff71c00000, 0xffffffff72000000, 0xffffffff74c00000)
total_blobs=197 nmethods=16 adapters=135 free_code_cache=48728Kb largest_free_block=49869952
Compilation events (10 events):
Event: 3.678 Thread 0x0000000105404800 nmethod 11 0xffffffff71c649d0 code [0xffffffff71c64b20, 0xffffffff71c64d50]
Event: 3.983 Thread 0x0000000105407000 nmethod 7 0xffffffff71c6af90 code [0xffffffff71c6b220, 0xffffffff71c6c448]
Event: 4.245 Thread 0x0000000105404800 12 java.lang.Object:: (1 bytes)
Event: 4.267 Thread 0x0000000105404800 nmethod 12 0xffffffff71c64510 code [0xffffffff71c64640, 0xffffffff71c64730]
Event: 4.274 Thread 0x0000000105407000 13 java.lang.String::lastIndexOf (68 bytes)
Event: 4.294 Thread 0x0000000105407000 nmethod 13 0xffffffff71c64050 code [0xffffffff71c641a0, 0xffffffff71c64410]
Event: 4.904 Thread 0x0000000105404800 14 java.io.UnixFileSystem::normalize (75 bytes)
Event: 5.010 Thread 0x0000000105404800 nmethod 14 0xffffffff71c66110 code [0xffffffff71c66260, 0xffffffff71c665b8]
Event: 5.630 Thread 0x0000000105407000 15 sun.nio.cs.UTF_8$Encoder::encode (361 bytes)
Event: 5.841 Thread 0x0000000105407000 nmethod 15 0xffffffff71c65410 code [0xffffffff71c65580, 0xffffffff71c65bf8]
GC Heap History (0 events):
No events
Deoptimization events (1 events):
Event: 4.078 Thread 0x00000001001b6800 Uncommon trap -12 fr.pc 0xffffffff71c6c138
Internal exceptions (10 events):
Event: 3.455 Thread 0x00000001001b6800 Threw 0x00000007d65ef430 at /HUDSON/workspace/jdk7u4-2-build-solaris-sparcv9-product/jdk7u4/hotspot/src/share/vm/prims/jvm.cpp:1166
Event: 4.078 Thread 0x00000001001b6800 Implicit null exception at 0xffffffff71c6b328 to 0xffffffff71c6c12c
Event: 4.090 Thread 0x00000001001b6800 Threw 0x00000007d662bc18 at /HUDSON/workspace/jdk7u4-2-build-solaris-sparcv9-product/jdk7u4/hotspot/src/share/vm/prims/jvm.cpp:1166
Event: 4.090 Thread 0x00000001001b6800 Threw 0x00000007d662bd40 at /HUDSON/workspace/jdk7u4-2-build-solaris-sparcv9-product/jdk7u4/hotspot/src/share/vm/prims/jvm.cpp:1166
Event: 4.269 Thread 0x00000001001b6800 Threw 0x00000007d663eba0 at /HUDSON/workspace/jdk7u4-2-build-solaris-sparcv9-product/jdk7u4/hotspot/src/share/vm/prims/jvm.cpp:1166
Event: 4.269 Thread 0x00000001001b6800 Threw 0x00000007d663ecc8 at /HUDSON/workspace/jdk7u4-2-build-solaris-sparcv9-product/jdk7u4/hotspot/src/share/vm/prims/jvm.cpp:1166
Event: 4.487 Thread 0x00000001001b6800 Threw 0x00000007d664cad0 at /HUDSON/workspace/jdk7u4-2-build-solaris-sparcv9-product/jdk7u4/hotspot/src/share/vm/prims/jvm.cpp:1166
Event: 4.487 Thread 0x00000001001b6800 Threw 0x00000007d664cbf8 at /HUDSON/workspace/jdk7u4-2-build-solaris-sparcv9-product/jdk7u4/hotspot/src/share/vm/prims/jvm.cpp:1166
Event: 4.489 Thread 0x00000001001b6800 Threw 0x00000007d664dae0 at /HUDSON/workspace/jdk7u4-2-build-solaris-sparcv9-product/jdk7u4/hotspot/src/share/vm/prims/jvm.cpp:1166
Event: 4.489 Thread 0x00000001001b6800 Threw 0x00000007d664dc08 at /HUDSON/workspace/jdk7u4-2-build-solaris-sparcv9-product/jdk7u4/hotspot/src/share/vm/prims/jvm.cpp:1166
Events (10 events):
Event: 5.717 loading class 0x0000000100188c20 done
Event: 5.717 loading class 0x00000001001aa440 done
Event: 5.721 loading class 0x000000010024b960
Event: 5.722 loading class 0x000000010024b960 done
Event: 5.722 loading class 0x000000010563ead0
Event: 5.723 loading class 0x0000000105786970
Event: 5.723 loading class 0x0000000105786970 done
Event: 5.723 loading class 0x000000010563ead0 done
Event: 5.726 loading class 0x000000010578a900
Event: 5.726 loading class 0x000000010578a900 done
Dynamic libraries:
0x0000000100000000 /usr/jdk/instances/jdk1.7.0/jre/bin/sparcv9/java
0xffffffff7d2f4000 /lib/64/libthread.so.1
0xffffffff77200000 /usr/jdk/instances/jdk1.7.0/jre/bin/sparcv9/../../lib/sparcv9/jli/libjli.so
0xffffffff7d2fe000 /lib/64/libdl.so.1
0xffffffff7ee00000 /lib/64/libc.so.1
0xffffffff76300000 /usr/jdk/instances/jdk1.7.0/jre/lib/sparcv9/server/libjvm.so
0xffffffff7a100000 /lib/64/libsocket.so.1
0xffffffff7d2fc000 /usr/lib/64/libsched.so.1
0xffffffff76100000 /lib/64/libm.so.1
0xffffffff75f00000 /usr/lib/64/libCrun.so.1
0xffffffff785fe000 /lib/64/libdoor.so.1
0xffffffff75d00000 /usr/lib/64/libdemangle.so.1
0xffffffff7a300000 /lib/64/libkstat.so.1
0xffffffff7e600000 /lib/64/libm.so.2
0xffffffff7d900000 /lib/64/libnsl.so.1
0xffffffff75b00000 /lib/64/libmd.so.1
0xffffffff75900000 /lib/64/libmp.so.2
0xffffffff75700000 /usr/jdk/instances/jdk1.7.0/jre/lib/sparcv9/libverify.so
0xffffffff75500000 /usr/jdk/instances/jdk1.7.0/jre/lib/sparcv9/libjava.so
0xffffffff75300000 /lib/64/libscf.so.1
0xffffffff75100000 /lib/64/libuutil.so.1
0xffffffff79d00000 /lib/64/libgen.so.1
0xffffffff7db00000 /lib/64/libnvpair.so.1
0xffffffff74f00000 /usr/jdk/instances/jdk1.7.0/jre/lib/sparcv9/libzip.so
VM Arguments:
jvm_args: -Detl-writ -Xms1000m -Xmx2000m -Djava.ext.dirs=/opt/mycom/shell/support/test15/jar -Djava.io.tmpdir=/opt/mycom/data/tmp
java_command: com.ning.CompressUncompressNing Server.HomeDir=/opt/mycom/config -d /opt/mycom/shell/support/test15/1338304562-34176-11839086-Id.mis.lzf
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=/opt/mycom/3rd_party/oracle/app/oracle/products/11.2.0/bin:/usr/bin:/bin:/usr/openwin/bin:/usr/ccs/bin:/usr/local/bin
LD_LIBRARY_PATH=/opt/mycom/lib:/usr/local/lib:/opt/mycom/3rd_party/oracle/app/oracle/products/11.2.0/lib
SHELL=/usr/bin/bash
DISPLAY=localhost:19.0
Signal Handlers:
SIGSEGV: [libjvm.so+0xb16b18], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGBUS: [libjvm.so+0xb16b18], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGFPE: [libjvm.so+0x2891d8], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGPIPE: [libjvm.so+0x2891d8], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGXFSZ: [libjvm.so+0x2891d8], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGILL: [libjvm.so+0x2891d8], 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+0x9b97e8], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGHUP: [libjvm.so+0x9b97e8], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGINT: [libjvm.so+0x9b97e8], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGTERM: [libjvm.so+0x9b97e8], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIG39: [libjvm.so+0x9bd6c8], sa_mask[0]=0x00000000, sa_flags=0x00000008
SIG40: [libjvm.so+0x2891d8], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
--------------- S Y S T E M ---------------
OS: Oracle Solaris 11 11/11 SPARC
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
Assembled 18 October 2011
uname:SunOS 5.11 11.0 sun4v (T2 libthread)
rlimit: STACK 8192k, CORE infinity, NOFILE 65536, AS infinity
load average:68.38 72.81 64.03
CPU:total 64 v9, popc, vis1, vis2, vis3, blk_init, cbcond, sun4v, niagara_plus
Memory: 8k page, physical 267911168k(158934736k free)
vm_info: Java HotSpot(TM) 64-Bit Server VM (23.0-b21) for solaris-sparc JRE (1.7.0_04-b20), built on Apr 12 2012 02:23:35 by "" with Sun Studio 12u1
time: Fri Jun 1 03:37:59 2012
elapsed time: 7 seconds
Thanks.