xerial / snappy-java

Snappy compressor/decompressor for Java
Apache License 2.0
1.04k stars 232 forks source link

Snappy Java failed to during execution on raspberry-pi #37

Closed ackdom closed 9 years ago

ackdom commented 11 years ago

Hi When i was trying to use snappy-java on raspberry pi with cassandra.

I downloaded the latest version of your library where the binary for armhf are present and it crashes (I also tried to crosscompile it myself but with the same result)

A fatal error has been detected by the Java Runtime Environment:

SIGILL (0x4) at pc=0xa4e10254, pid=13720, tid=3058377840

JRE version: Java(TM) SE Runtime Environment (8.0)

Java VM: Java HotSpot(TM) Client VM (25.0-b04 mixed mode linux-arm )

Problematic frame:

C [snappy-1.0.5-libsnappyjava.so+0x1254] _init+0x223

Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

If you would like to submit a bug report, please visit:

http://bugreport.sun.com/bugreport/crash.jsp

The crash happened outside the Java Virtual Machine in native code.

See problematic frame for where to report the bug.

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

Current thread (0x01b6ad30): JavaThread "main" [_thread_in_native, id=13754, stack(0xb6486000,0xb64b3000)]

siginfo:si_signo=SIGILL: si_errno=0, si_code=1 (ILL_ILLOPC), si_addr=0xa4e10254

Registers: r0 = 0x0000001c r1 = 0xbe804044 r2 = 0x0000007c r3 = 0x00000000 r4 = 0x0000001c r5 = 0xbe804044 r6 = 0x01eda6a0 r7 = 0x01bd1b78 r8 = 0xbe804044 r9 = 0xb6fe1048 r10 = 0x0000001c fp = 0xb64af52c r12 = 0xb6f5bcf8 sp = 0xb64af470 lr = 0xa4e10037 pc = 0xa4e10254 cpsr = 0xa0000030

Top of Stack: (sp=0xb64af470) 0xb64af470: a4e10031 b6fca210 01bd1b78 00000001 0xb64af480: 00000000 01eda6a0 01bd1b78 be804044 0xb64af490: 0000001c b6fca36c 01eda6a0 b6fdd400 0xb64af4a0: 01eda7fc b6fe1048 00000006 00000006 0xb64af4b0: 00000009 b6fce3bc 00000001 b6fe1094 0xb64af4c0: 01eda6a0 01ee20a0 80000000 00000000 0xb64af4d0: 00000000 b64af4b0 00000000 0000cef8 0xb64af4e0: 01eda6a0 b64af4b8 b64af4c8 b64af4c8

Instructions: (pc=0xa4e10254) 0xa4e10234: f7ff4038 bf00bf85 0000be9e 0000bddc 0xa4e10244: 0000008c 00000098 4a044b03 589b447b 0xa4e10254: f7ffb10b 4770bf07 0000bdac 0000007c 0xa4e10264: b5084a09 4b09447a 447b7812 4a08b95a

Register to memory mapping:

r0 = 0x0000001c 0x0000001c is an unknown value

r1 = 0xbe804044 0xbe804044 is an unknown value

r2 = 0x0000007c 0x0000007c is an unknown value

r3 = 0x00000000 0x00000000 is an unknown value

r4 = 0x0000001c 0x0000001c is an unknown value

r5 = 0xbe804044 0xbe804044 is an unknown value

r6 = 0x01eda6a0 0x01eda6a0 is an unknown value

r7 = 0x01bd1b78 0x01bd1b78 is an unknown value

r8 = 0xbe804044 0xbe804044 is an unknown value

r9 = 0xb6fe1048 0xb6fe1048: _rtld_global+0 in /lib/ld-linux-armhf.so.3 at 0xb6fbb000

r10 = 0x0000001c 0x0000001c is an unknown value

fp = 0xb64af52c 0xb64af52c is pointing into the stack for thread: 0x01b6ad30

r12 = 0xb6f5bcf8 0xb6f5bcf8: <offset 0x12bcf8> in /lib/arm-linux-gnueabihf/libc.so.6 at 0xb6e30000

sp = 0xb64af470 0xb64af470 is pointing into the stack for thread: 0x01b6ad30

lr = 0xa4e10037 0xa4e10037: <offset 0x1037> in /tmp/snappy-1.0.5-libsnappyjava.so at 0xa4e0f000

pc = 0xa4e10254 0xa4e10254: <offset 0x1254> in /tmp/snappy-1.0.5-libsnappyjava.so at 0xa4e0f000

Stack: [0xb6486000,0xb64b3000], sp=0xb64af470, free space=165k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [snappy-1.0.5-libsnappyjava.so+0x1254] _init+0x223

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j java.lang.ClassLoader$NativeLibrary.load(Ljava/lang/String;)V+0 j java.lang.ClassLoader.loadLibrary0(Ljava/lang/Class;Ljava/io/File;)Z+302 j java.lang.ClassLoader.loadLibrary(Ljava/lang/Class;Ljava/lang/String;Z)V+48 j java.lang.Runtime.load0(Ljava/lang/Class;Ljava/lang/String;)V+57 j java.lang.System.load(Ljava/lang/String;)V+7 j org.xerial.snappy.SnappyNativeLoader.load(Ljava/lang/String;)V+29 v ~StubRoutines::call_stub j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0 j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87 j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6 j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+57 j org.xerial.snappy.SnappyLoader.loadNativeLibrary(Ljava/lang/Class;)V+55 j org.xerial.snappy.SnappyLoader.load()Ljava/lang/Object;+21 j org.xerial.snappy.Snappy.()V+0 v ~StubRoutines::call_stub j org.apache.cassandra.io.compress.SnappyCompressor.create(Ljava/util/Map;)Lorg/apache/cassandra/io/compress/SnappyCompressor;+0 j org.apache.cassandra.io.compress.SnappyCompressor.isAvailable()Z+3 j org.apache.cassandra.io.compress.SnappyCompressor.()V+19 v ~StubRoutines::call_stub j org.apache.cassandra.config.CFMetaData.()V+47 v ~StubRoutines::call_stub j org.apache.cassandra.config.KSMetaData.systemKeyspace()Lorg/apache/cassandra/config/KSMetaData;+7 j org.apache.cassandra.config.DatabaseDescriptor.loadYaml()V+2241 j org.apache.cassandra.config.DatabaseDescriptor.()V+52 v ~StubRoutines::call_stub j org.apache.cassandra.service.CassandraDaemon.setup()V+248 j org.apache.cassandra.service.CassandraDaemon.activate()V+7 j org.apache.cassandra.service.CassandraDaemon.main([Ljava/lang/String;)V+3 v ~StubRoutines::call_stub

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

Java Threads: ( => current thread ) 0x01edb090 JavaThread "process reaper" daemon [_thread_blocked, id=13779, stack(0xa4e1d000,0xa4e2c000)] 0x01ec8ec0 JavaThread "EXPIRING-MAP-REAPER:1" daemon [_thread_blocked, id=13773, stack(0xa4c79000,0xa4ca6000)] 0x01ec6608 JavaThread "ScheduledTasks:1" daemon [_thread_blocked, id=13772, stack(0xa4ca6000,0xa4cd3000)] 0x01ec4580 JavaThread "metrics-meter-tick-thread-2" daemon [_thread_blocked, id=13771, stack(0xa4cd3000,0xa4d00000)] 0x01e909b8 JavaThread "metrics-meter-tick-thread-1" daemon [_thread_blocked, id=13770, stack(0xa4e2c000,0xa4e59000)] 0x01d34368 JavaThread "FileWatchdog" daemon [_thread_blocked, id=13769, stack(0xa4f59000,0xa4f86000)] 0x01cfdc10 JavaThread "RMI TCP Accept-0" daemon [_thread_in_native, id=13767, stack(0xa5006000,0xa5033000)] 0x01ceee58 JavaThread "RMI TCP Accept-7199" daemon [_thread_in_native, id=13766, stack(0xa5036000,0xa5063000)] 0x01ce5260 JavaThread "RMI TCP Accept-0" daemon [_thread_in_native, id=13765, stack(0xa5063000,0xa5090000)] 0x01c41048 JavaThread "Service Thread" daemon [_thread_blocked, id=13762, stack(0xa5206000,0xa5233000)] 0x01c3c7c0 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=13761, stack(0xa5233000,0xa52b3000)] 0x01be5770 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=13760, stack(0xa5354000,0xa5381000)] 0x01be3da0 JavaThread "Surrogate Locker Thread (Concurrent GC)" daemon [_thread_blocked, id=13759, stack(0xa5381000,0xa53ae000)] 0x01bcbb40 JavaThread "Finalizer" daemon [_thread_blocked, id=13758, stack(0xa5525000,0xa5552000)] 0x01bc9030 JavaThread "Reference Handler" daemon [_thread_blocked, id=13757, stack(0xa5552000,0xa557f000)] =>0x01b6ad30 JavaThread "main" [_thread_in_native, id=13754, stack(0xb6486000,0xb64b3000)]

Other Threads: 0x01bc6b98 VMThread [stack: 0xa557f000,0xa55ff000] [id=13756] 0x01cff770 WatcherThread [stack: 0xa4f86000,0xa5006000] [id=13768]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap def new generation total 49792K, used 39069K [0xa5f20000, 0xa9520000, 0xa9520000) eden space 44288K, 88% used [0xa5f20000, 0xa8547538, 0xa8a60000) from space 5504K, 0% used [0xa8a60000, 0xa8a60000, 0xa8fc0000) to space 5504K, 0% used [0xa8fc0000, 0xa8fc0000, 0xa9520000) concurrent mark-sweep generation total 168960K, used 0K [0xa9520000, 0xb3a20000, 0xb3b20000) Metaspace total 7886K, used 7752K, reserved 10240K data space 6970K, used 6912K, reserved 8192K class space 916K, used 839K, reserved 2048K

Card table byte_map: [0xa5eb1000,0xa5f20000] byte_map_base: 0xa5981700

Polling page: 0xb6fdb000

Code Cache [0xb3db5000, 0xb3ead000, 0xb5db5000) total_blobs=467 nmethods=308 adapters=95 free_code_cache=31787Kb largest_free_block=32550016

Compilation events (10 events): Event: 13.614 Thread 0x01c3c7c0 30 Event: 13.616 Thread 0x01c3c7c0 nmethod 303 0xb3ea8588 code [0xb3ea8660, 0xb3ea8728] Event: 13.616 Thread 0x01c3c7c0 30 Event: 13.617 Thread 0x01c3c7c0 nmethod 304 0xb3ea8788 code [0xb3ea8860, 0xb3ea8928] Event: 13.624 Thread 0x01c3c7c0 30 Event: 13.625 Thread 0x01c3c7c0 nmethod 305 0xb3ea8988 code [0xb3ea8a60, 0xb3ea8b18] Event: 13.625 Thread 0x01c3c7c0 30 Event: 13.627 Thread 0x01c3c7c0 nmethod 306 0xb3ea8b48 code [0xb3ea8c20, 0xb3ea8ce8] Event: 13.641 Thread 0x01c3c7c0
Event: 13.685 Thread 0x01c3c7c0 nmethod 2% 0xb3ea8d48 code [0xb3ea8f20, 0xb3ea9848]

GC Heap History (0 events): No events

Deoptimization events (0 events): No events

Internal exceptions (10 events): Event: 13.255 Thread 0x01b6ad30 Threw 0xa82a2150 at /HUDSON/workspace/2-build-linux-arm-hflt/jdk8-profile-gp/2071/hotspot/src/share/vm/prims/jvm.cpp:1168 Event: 13.262 Thread 0x01b6ad30 Threw 0xa82ae7b0 at /HUDSON/workspace/2-build-linux-arm-hflt/jdk8-profile-gp/2071/hotspot/src/share/vm/prims/jvm.cpp:1168 Event: 13.268 Thread 0x01b6ad30 Threw 0xa8390470 at /HUDSON/workspace/2-build-linux-arm-hflt/jdk8-profile-gp/2071/hotspot/src/share/vm/prims/jvm.cpp:1168 Event: 13.272 Thread 0x01b6ad30 Threw 0xa8395658 at /HUDSON/workspace/2-build-linux-arm-hflt/jdk8-profile-gp/2071/hotspot/src/share/vm/prims/jvm.cpp:1168 Event: 13.277 Thread 0x01b6ad30 Threw 0xa8398488 at /HUDSON/workspace/2-build-linux-arm-hflt/jdk8-profile-gp/2071/hotspot/src/share/vm/prims/jvm.cpp:1168 Event: 13.289 Thread 0x01b6ad30 Threw 0xa83ad530 at /HUDSON/workspace/2-build-linux-arm-hflt/jdk8-profile-gp/2071/hotspot/src/share/vm/prims/jvm.cpp:1168 Event: 13.310 Thread 0x01b6ad30 Threw 0xa83bb500 at /HUDSON/workspace/2-build-linux-arm-hflt/jdk8-profile-gp/2071/hotspot/src/share/vm/prims/jvm.cpp:1168 Event: 13.334 Thread 0x01b6ad30 Threw 0xa83ccf18 at /HUDSON/workspace/2-build-linux-arm-hflt/jdk8-profile-gp/2071/hotspot/src/share/vm/prims/jvm.cpp:1168 Event: 13.336 Thread 0x01b6ad30 Threw 0xa83cffe8 at /HUDSON/workspace/2-build-linux-arm-hflt/jdk8-profile-gp/2071/hotspot/src/share/vm/prims/jvm.cpp:1168 Event: 13.397 Thread 0x01b6ad30 Threw 0xa83f5048 at /HUDSON/workspace/2-build-linux-arm-hflt/jdk8-profile-gp/2071/hotspot/src/share/vm/prims/jvm.cpp:1168

Events (10 events): Event: 13.519 loading class 0xa5193358 Event: 13.520 loading class 0xa5193358 done Event: 13.531 loading class 0xa5864560 Event: 13.532 loading class 0xa5864560 done Event: 13.533 loading class 0xa5193320 Event: 13.533 loading class 0xa5193320 done Event: 13.540 loading class 0x01edb428 Event: 13.541 loading class 0x01edb428 done Event: 13.543 loading class 0x01edc0c0 Event: 13.543 loading class 0x01edc0c0 done

Dynamic libraries: 00008000-00009000 r-xp 00000000 b3:02 131082 /usr/local/bin/java/bin/java 00010000-00011000 rw-p 00000000 b3:02 131082 /usr/local/bin/java/bin/java 01b64000-01f12000 rw-p 00000000 00:00 0 [heap] a4aac000-a4b66000 r-xp 00000000 b3:02 10848 /usr/lib/arm-linux-gnueabihf/libstdc++.so.6.0.17 a4b66000-a4b6d000 ---p 000ba000 b3:02 10848 /usr/lib/arm-linux-gnueabihf/libstdc++.so.6.0.17 a4b6d000-a4b71000 r--p 000b9000 b3:02 10848 /usr/lib/arm-linux-gnueabihf/libstdc++.so.6.0.17 a4b71000-a4b73000 rw-p 000bd000 b3:02 10848 /usr/lib/arm-linux-gnueabihf/libstdc++.so.6.0.17 a4b73000-a4b9a000 rw-p 00000000 00:00 0 a4b9a000-a4c79000 rw-p 00000000 00:00 0 a4c79000-a4c7c000 ---p 00000000 00:00 0 a4c7c000-a4ca6000 rw-p 00000000 00:00 0 [stack:13773] a4ca6000-a4ca9000 ---p 00000000 00:00 0 a4ca9000-a4cd3000 rw-p 00000000 00:00 0 [stack:13772] a4cd3000-a4cd6000 ---p 00000000 00:00 0 a4cd6000-a4d00000 rw-p 00000000 00:00 0 [stack:13771] a4d00000-a4d58000 rw-p 00000000 00:00 0 a4d58000-a4e00000 ---p 00000000 00:00 0 a4e04000-a4e0f000 r--p 00000000 b3:02 70040 /etc/ld.so.cache a4e0f000-a4e14000 r-xp 00000000 b3:02 28468 /tmp/snappy-1.0.5-libsnappyjava.so a4e14000-a4e1b000 ---p 00005000 b3:02 28468 /tmp/snappy-1.0.5-libsnappyjava.so a4e1b000-a4e1c000 r--p 00004000 b3:02 28468 /tmp/snappy-1.0.5-libsnappyjava.so a4e1c000-a4e1d000 rw-p 00005000 b3:02 28468 /tmp/snappy-1.0.5-libsnappyjava.so a4e1d000-a4e20000 ---p 00000000 00:00 0 a4e20000-a4e2c000 rw-p 00000000 00:00 0 [stack:13779] a4e2c000-a4e2f000 ---p 00000000 00:00 0 a4e2f000-a4f42000 rw-p 00000000 00:00 0 [stack:13770] a4f42000-a4f59000 rw-p 00000000 00:00 0 a4f59000-a4f5c000 ---p 00000000 00:00 0 a4f5c000-a4f86000 rw-p 00000000 00:00 0 [stack:13769] a4f86000-a4f87000 ---p 00000000 00:00 0 a4f87000-a5006000 rw-p 00000000 00:00 0 [stack:13768] a5006000-a5009000 ---p 00000000 00:00 0 a5009000-a5033000 rw-p 00000000 00:00 0 [stack:13767] a5033000-a5036000 r--s 00083000 b3:02 131257 /usr/local/bin/java/jre/lib/ext/localedata.jar a5036000-a5039000 ---p 00000000 00:00 0 a5039000-a5063000 rw-p 00000000 00:00 0 [stack:13766] a5063000-a5066000 ---p 00000000 00:00 0 a5066000-a5090000 rw-p 00000000 00:00 0 [stack:13765] a5090000-a5094000 r--s 0008a000 b3:02 131302 /usr/local/bin/java/jre/lib/jsse.jar a5094000-a5096000 r--s 0000c000 b3:02 131974 /home/pi/dsc-cassandra-1.2.5/lib/snaptree-0.1.jar a5096000-a5098000 r--s 00130000 b3:02 131976 /home/pi/dsc-cassandra-1.2.5/lib/snappy-java-1.0.5.jar a5098000-a509e000 r--s 00033000 b3:02 131936 /home/pi/dsc-cassandra-1.2.5/lib/snakeyaml-1.6.jar a509e000-a50a0000 r--s 00001000 b3:02 131978 /home/pi/dsc-cassandra-1.2.5/lib/slf4j-log4j12-1.7.2.jar a50a0000-a50b6000 r--s 000fe000 b3:02 131983 /home/pi/dsc-cassandra-1.2.5/lib/netty-3.5.9.Final.jar a50b6000-a50bf000 r--s 0006d000 b3:02 131980 /home/pi/dsc-cassandra-1.2.5/lib/log4j-1.2.16.jar a50bf000-a50cc000 r-xp 00000000 b3:02 131228 /usr/local/bin/java/jre/lib/arm/libnio.so a50cc000-a50d3000 ---p 0000d000 b3:02 131228 /usr/local/bin/java/jre/lib/arm/libnio.so a50d3000-a50d4000 rw-p 0000c000 b3:02 131228 /usr/local/bin/java/jre/lib/arm/libnio.so a50d4000-a50e7000 r-xp 00000000 b3:02 131227 /usr/local/bin/java/jre/lib/arm/libnet.so a50e7000-a50ef000 ---p 00013000 b3:02 131227 /usr/local/bin/java/jre/lib/arm/libnet.so a50ef000-a50f0000 rw-p 00013000 b3:02 131227 /usr/local/bin/java/jre/lib/arm/libnet.so a50f0000-a50f8000 r-xp 00000000 b3:02 131225 /usr/local/bin/java/jre/lib/arm/libmanagement.so a50f8000-a50ff000 ---p 00008000 b3:02 131225 /usr/local/bin/java/jre/lib/arm/libmanagement.so a50ff000-a5100000 rw-p 00007000 b3:02 131225 /usr/local/bin/java/jre/lib/arm/libmanagement.so a5100000-a51fc000 rw-p 00000000 00:00 0 a51fc000-a5200000 ---p 00000000 00:00 0 a5201000-a5203000 r--s 00005000 b3:02 131933 /home/pi/dsc-cassandra-1.2.5/lib/slf4j-api-1.7.2.jar a5203000-a5206000 r--s 00011000 b3:02 131992 /home/pi/dsc-cassandra-1.2.5/lib/metrics-core-2.0.3.jar a5206000-a5209000 ---p 00000000 00:00 0 a5209000-a5233000 rw-p 00000000 00:00 0 [stack:13762] a5233000-a5236000 ---p 00000000 00:00 0 a5236000-a52b3000 rw-p 00000000 00:00 0 [stack:13761] a52b3000-a52b4000 r--s 00001000 b3:02 131982 /home/pi/dsc-cassandra-1.2.5/lib/jamm-0.2.5.jar a52b4000-a52c2000 r--s 000ad000 b3:02 131975 /home/pi/dsc-cassandra-1.2.5/lib/jackson-mapper-asl-1.9.2.jar a52c2000-a52c6000 r--s 00034000 b3:02 131977 /home/pi/dsc-cassandra-1.2.5/lib/jackson-core-asl-1.9.2.jar a52c6000-a52c9000 r--s 00015000 b3:02 131985 /home/pi/dsc-cassandra-1.2.5/lib/high-scale-lib-1.1.2.jar a52c9000-a52ed000 r--s 001aa000 b3:02 131991 /home/pi/dsc-cassandra-1.2.5/lib/guava-13.0.1.jar a52ed000-a52f0000 r--s 0000b000 b3:02 131979 /home/pi/dsc-cassandra-1.2.5/lib/concurrentlinkedhashmap-lru-1.3.jar a52f0000-a52f2000 r--s 00005000 b3:02 131989 /home/pi/dsc-cassandra-1.2.5/lib/compress-lzf-0.8.4.jar a52f2000-a52f7000 r--s 00041000 b3:02 131984 /home/pi/dsc-cassandra-1.2.5/lib/commons-lang-2.6.jar a52f7000-a52f9000 r--s 00006000 b3:02 131931 /home/pi/dsc-cassandra-1.2.5/lib/commons-codec-1.2.jar a52f9000-a52fa000 r--s 00008000 b3:02 131973 /home/pi/dsc-cassandra-1.2.5/lib/commons-cli-1.1.jar a52fa000-a52ff000 r--s 0003f000 b3:02 131938 /home/pi/dsc-cassandra-1.2.5/lib/avro-1.4.0-sources-fixes.jar a52ff000-a5309000 r--s 00088000 b3:02 131972 /home/pi/dsc-cassandra-1.2.5/lib/avro-1.4.0-fixes.jar a5309000-a5315000 r--s 000fb000 b3:02 131939 /home/pi/dsc-cassandra-1.2.5/lib/apache-cassandra-thrift-1.2.5.jar a5315000-a533f000 r--s 002b3000 b3:02 131993 /home/pi/dsc-cassandra-1.2.5/lib/apache-cassandra-1.2.5.jar a533f000-a5354000 r--s 001c2000 b3:02 131932 /home/pi/dsc-cassandra-1.2.5/lib/antlr-3.2.jar a5354000-a5357000 ---p 00000000 00:00 0 a5357000-a5381000 rw-p 00000000 00:00 0 [stack:13760] a5381000-a5384000 ---p 00000000 00:00 0 a5384000-a53ae000 rw-p 00000000 00:00 0 [stack:13759] a53ae000-a5525000 r--p 00000000 b3:02 16828 /usr/lib/locale/locale-archive a5525000-a5528000 ---p 00000000 00:00 0 a5528000-a5552000 rw-p 00000000 00:00 0 [stack:13758] a5552000-a5555000 ---p 00000000 00:00 0 a5555000-a557f000 rw-p 00000000 00:00 0 [stack:13757] a557f000-a5580000 ---p 00000000 00:00 0 a5580000-a5670000 rw-p 00000000 00:00 0 [stack:13756] a5670000-a5831000 r--s 03aab000 b3:02 131322 /usr/local/bin/java/jre/lib/rt.jar a5831000-a588c000 rw-p 00000000 00:00 0 a588c000-a588d000 ---p 00000000 00:00 0 a588d000-a5eb0000 rw-p 00000000 00:00 0 [stack:13755] a5eb0000-a5eb1000 rw-p 00000000 00:00 0 a5eb1000-a5f1f000 rw-p 00000000 00:00 0 a5f1f000-b3a20000 rw-p 00000000 00:00 0 b3a20000-b3b20000 rw-p 00000000 00:00 0 b3b20000-b3c0a000 rw-p 00000000 00:00 0 b3c0a000-b3d20000 rw-p 00000000 00:00 0 b3d20000-b3d22000 r--s 0001f000 b3:02 131988 /home/pi/dsc-cassandra-1.2.5/lib/servlet-api-2.5-20081211.jar b3d22000-b3d24000 r--s 0001f000 b3:02 131981 /home/pi/dsc-cassandra-1.2.5/lib/lz4-1.1.0.jar b3d24000-b3d2a000 r--s 00044000 b3:02 131940 /home/pi/dsc-cassandra-1.2.5/lib/libthrift-0.7.0.jar b3d2a000-b3d39000 rw-p 00000000 00:00 0 b3d39000-b3db5000 rw-p 00000000 00:00 0 b3db5000-b3ead000 rwxp 00000000 00:00 0 b3ead000-b5db5000 rw-p 00000000 00:00 0 b5db5000-b6396000 rw-p 00000000 00:00 0 b6396000-b63b5000 rw-p 00000000 00:00 0 b63b5000-b63cd000 r-xp 00000000 b3:02 131240 /usr/local/bin/java/jre/lib/arm/libzip.so b63cd000-b63d4000 ---p 00018000 b3:02 131240 /usr/local/bin/java/jre/lib/arm/libzip.so b63d4000-b63d5000 rw-p 00017000 b3:02 131240 /usr/local/bin/java/jre/lib/arm/libzip.so b63d5000-b63df000 r-xp 00000000 b3:02 4196 /lib/arm-linux-gnueabihf/libnss_files-2.13.so b63df000-b63e6000 ---p 0000a000 b3:02 4196 /lib/arm-linux-gnueabihf/libnss_files-2.13.so b63e6000-b63e7000 r--p 00009000 b3:02 4196 /lib/arm-linux-gnueabihf/libnss_files-2.13.so b63e7000-b63e8000 rw-p 0000a000 b3:02 4196 /lib/arm-linux-gnueabihf/libnss_files-2.13.so b63e8000-b63f1000 r-xp 00000000 b3:02 4216 /lib/arm-linux-gnueabihf/libnss_nis-2.13.so b63f1000-b63f8000 ---p 00009000 b3:02 4216 /lib/arm-linux-gnueabihf/libnss_nis-2.13.so b63f8000-b63f9000 r--p 00008000 b3:02 4216 /lib/arm-linux-gnueabihf/libnss_nis-2.13.so b63f9000-b63fa000 rw-p 00009000 b3:02 4216 /lib/arm-linux-gnueabihf/libnss_nis-2.13.so b63fa000-b640b000 r-xp 00000000 b3:02 4210 /lib/arm-linux-gnueabihf/libnsl-2.13.so b640b000-b6412000 ---p 00011000 b3:02 4210 /lib/arm-linux-gnueabihf/libnsl-2.13.so b6412000-b6413000 r--p 00010000 b3:02 4210 /lib/arm-linux-gnueabihf/libnsl-2.13.so b6413000-b6414000 rw-p 00011000 b3:02 4210 /lib/arm-linux-gnueabihf/libnsl-2.13.so b6414000-b6416000 rw-p 00000000 00:00 0 b6416000-b641c000 r-xp 00000000 b3:02 4212 /lib/arm-linux-gnueabihf/libnss_compat-2.13.so b641c000-b6423000 ---p 00006000 b3:02 4212 /lib/arm-linux-gnueabihf/libnss_compat-2.13.so b6423000-b6424000 r--p 00005000 b3:02 4212 /lib/arm-linux-gnueabihf/libnss_compat-2.13.so b6424000-b6425000 rw-p 00006000 b3:02 4212 /lib/arm-linux-gnueabihf/libnss_compat-2.13.so b6425000-b642e000 r-xp 00000000 b3:02 131205 /usr/local/bin/java/jre/lib/arm/libinstrument.so b642e000-b6436000 ---p 00009000 b3:02 131205 /usr/local/bin/java/jre/lib/arm/libinstrument.so b6436000-b6437000 rw-p 00009000 b3:02 131205 /usr/local/bin/java/jre/lib/arm/libinstrument.so b6437000-b645a000 r-xp 00000000 b3:02 131211 /usr/local/bin/java/jre/lib/arm/libjava.so b645a000-b6462000 ---p 00023000 b3:02 131211 /usr/local/bin/java/jre/lib/arm/libjava.so b6462000-b6463000 rw-p 00023000 b3:02 131211 /usr/local/bin/java/jre/lib/arm/libjava.so b6463000-b646e000 r-xp 00000000 b3:02 131239 /usr/local/bin/java/jre/lib/arm/libverify.so b646e000-b6476000 ---p 0000b000 b3:02 131239 /usr/local/bin/java/jre/lib/arm/libverify.so b6476000-b6477000 rw-p 0000b000 b3:02 131239 /usr/local/bin/java/jre/lib/arm/libverify.so b6477000-b647d000 r-xp 00000000 b3:02 4191 /lib/arm-linux-gnueabihf/librt-2.13.so b647d000-b6484000 ---p 00006000 b3:02 4191 /lib/arm-linux-gnueabihf/librt-2.13.so b6484000-b6485000 r--p 00005000 b3:02 4191 /lib/arm-linux-gnueabihf/librt-2.13.so b6485000-b6486000 rw-p 00006000 b3:02 4191 /lib/arm-linux-gnueabihf/librt-2.13.so b6486000-b6489000 ---p 00000000 00:00 0 b6489000-b64b3000 rw-p 00000000 00:00 0 [stack:13754] b64b3000-b651b000 r-xp 00000000 b3:02 4215 /lib/arm-linux-gnueabihf/libm-2.13.so b651b000-b6522000 ---p 00068000 b3:02 4215 /lib/arm-linux-gnueabihf/libm-2.13.so b6522000-b6523000 r--p 00067000 b3:02 4215 /lib/arm-linux-gnueabihf/libm-2.13.so b6523000-b6524000 rw-p 00068000 b3:02 4215 /lib/arm-linux-gnueabihf/libm-2.13.so b6524000-b69c1000 r-xp 00000000 b3:02 131191 /usr/local/bin/java/jre/lib/arm/client/libjvm.so b69c1000-b69c9000 ---p 0049d000 b3:02 131191 /usr/local/bin/java/jre/lib/arm/client/libjvm.so b69c9000-b69eb000 rw-p 0049d000 b3:02 131191 /usr/local/bin/java/jre/lib/arm/client/libjvm.so b69eb000-b6e08000 rw-p 00000000 00:00 0 b6e08000-b6e28000 r-xp 00000000 b3:02 1234 /lib/arm-linux-gnueabihf/libgcc_s.so.1 b6e28000-b6e2f000 ---p 00020000 b3:02 1234 /lib/arm-linux-gnueabihf/libgcc_s.so.1 b6e2f000-b6e30000 rw-p 0001f000 b3:02 1234 /lib/arm-linux-gnueabihf/libgcc_s.so.1 b6e30000-b6f52000 r-xp 00000000 b3:02 4207 /lib/arm-linux-gnueabihf/libc-2.13.so b6f52000-b6f59000 ---p 00122000 b3:02 4207 /lib/arm-linux-gnueabihf/libc-2.13.so b6f59000-b6f5b000 r--p 00121000 b3:02 4207 /lib/arm-linux-gnueabihf/libc-2.13.so b6f5b000-b6f5c000 rw-p 00123000 b3:02 4207 /lib/arm-linux-gnueabihf/libc-2.13.so b6f5c000-b6f5f000 rw-p 00000000 00:00 0 b6f5f000-b6f61000 r-xp 00000000 b3:02 4213 /lib/arm-linux-gnueabihf/libdl-2.13.so b6f61000-b6f68000 ---p 00002000 b3:02 4213 /lib/arm-linux-gnueabihf/libdl-2.13.so b6f68000-b6f69000 r--p 00001000 b3:02 4213 /lib/arm-linux-gnueabihf/libdl-2.13.so b6f69000-b6f6a000 rw-p 00002000 b3:02 4213 /lib/arm-linux-gnueabihf/libdl-2.13.so b6f6a000-b6f7f000 r-xp 00000000 b3:02 131194 /usr/local/bin/java/jre/lib/arm/jli/libjli.so b6f7f000-b6f86000 ---p 00015000 b3:02 131194 /usr/local/bin/java/jre/lib/arm/jli/libjli.so b6f86000-b6f87000 rw-p 00014000 b3:02 131194 /usr/local/bin/java/jre/lib/arm/jli/libjli.so b6f87000-b6f9b000 r-xp 00000000 b3:02 4199 /lib/arm-linux-gnueabihf/libpthread-2.13.so b6f9b000-b6fa2000 ---p 00014000 b3:02 4199 /lib/arm-linux-gnueabihf/libpthread-2.13.so b6fa2000-b6fa3000 r--p 00013000 b3:02 4199 /lib/arm-linux-gnueabihf/libpthread-2.13.so b6fa3000-b6fa4000 rw-p 00014000 b3:02 4199 /lib/arm-linux-gnueabihf/libpthread-2.13.so b6fa4000-b6fa7000 rw-p 00000000 00:00 0 b6fa7000-b6fa9000 r--s 00015000 b3:02 131987 /home/pi/dsc-cassandra-1.2.5/lib/jline-1.0.jar b6fa9000-b6fb1000 rw-s 00000000 b3:02 134893 /tmp/hsperfdata_pi/13720 b6fb1000-b6fb3000 r-xp 00000000 b3:02 31794 /usr/lib/arm-linux-gnueabihf/libcofi_rpi.so b6fb3000-b6fba000 ---p 00002000 b3:02 31794 /usr/lib/arm-linux-gnueabihf/libcofi_rpi.so b6fba000-b6fbb000 rw-p 00001000 b3:02 31794 /usr/lib/arm-linux-gnueabihf/libcofi_rpi.so b6fbb000-b6fd8000 r-xp 00000000 b3:02 4200 /lib/arm-linux-gnueabihf/ld-2.13.so b6fd8000-b6fd9000 r--s 00003000 b3:02 131937 /home/pi/dsc-cassandra-1.2.5/lib/json-simple-1.1.jar b6fd9000-b6fda000 r--s 00004000 b3:02 131935 /home/pi/dsc-cassandra-1.2.5/lib/jbcrypt-0.3m.jar b6fda000-b6fdb000 r--s 00008000 b3:02 131986 /home/pi/dsc-cassandra-1.2.5/lib/apache-cassandra-clientutil-1.2.5.jar b6fdb000-b6fdc000 r--p 00000000 00:00 0 b6fdc000-b6fe0000 rw-p 00000000 00:00 0 b6fe0000-b6fe1000 r--p 0001d000 b3:02 4200 /lib/arm-linux-gnueabihf/ld-2.13.so b6fe1000-b6fe2000 rw-p 0001e000 b3:02 4200 /lib/arm-linux-gnueabihf/ld-2.13.so be7e4000-be805000 rw-p 00000000 00:00 0 [stack] ffff0000-ffff1000 r-xp 00000000 00:00 0 [vectors]

VM Arguments: jvm_args: -ea -javaagent:bin/../lib/jamm-0.2.5.jar -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms219M -Xmx219M -Xmn54M -XX:+HeapDumpOnOutOfMemoryError -Xss180k -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=1 -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+UseTLAB -Djava.net.preferIPv4Stack=true -Dcom.sun.management.jmxremote.port=7199 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dlog4j.configuration=log4j-server.properties -Dlog4j.defaultInitOverride=true -Dcassandra-foreground=yes java_command: org.apache.cassandra.service.CassandraDaemon Launcher Type: SUN_STANDARD

Environment Variables: JAVA_HOME=/usr/local/bin/java PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/usr/local/bin/java/bin SHELL=/bin/bash

Signal Handlers: SIGSEGV: [libjvm.so+0x43dc98], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGBUS: [libjvm.so+0x43dc98], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGFPE: [libjvm.so+0x342238], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGPIPE: [libjvm.so+0x342238], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGXFSZ: [libjvm.so+0x342238], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGILL: [libjvm.so+0x342238], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000 SIGUSR2: [libjvm.so+0x3424c8], sa_mask[0]=0x00000000, sa_flags=0x10000004 SIGHUP: [libjvm.so+0x3425c8], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGINT: [libjvm.so+0x3425c8], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGTERM: [libjvm.so+0x3425c8], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGQUIT: [libjvm.so+0x3425c8], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004

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

OS:7.0

uname:Linux 3.6.11+ #456 PREEMPT Mon May 20 17:42:15 BST 2013 armv6l libc:glibc 2.13 NPTL 2.13 rlimit: STACK 8192k, CORE 0k, NPROC 3377, NOFILE 4096, AS infinity load average:0.16 0.11 0.14

/proc/meminfo: MemTotal: 448776 kB MemFree: 52400 kB Buffers: 21636 kB Cached: 284668 kB SwapCached: 0 kB Active: 204568 kB Inactive: 165036 kB Active(anon): 50388 kB Inactive(anon): 13160 kB Active(file): 154180 kB Inactive(file): 151876 kB Unevictable: 0 kB Mlocked: 0 kB SwapTotal: 102396 kB SwapFree: 102396 kB Dirty: 1324 kB Writeback: 0 kB AnonPages: 63368 kB Mapped: 12796 kB Shmem: 220 kB Slab: 18892 kB SReclaimable: 15376 kB SUnreclaim: 3516 kB KernelStack: 1192 kB PageTables: 844 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 326784 kB Committed_AS: 341540 kB VmallocTotal: 565248 kB VmallocUsed: 756 kB VmallocChunk: 350692 kB

CPU:total 1 (ARMv6), vfp

/proc/cpuinfo: Processor : ARMv6-compatible processor rev 7 (v6l) BogoMIPS : 697.95 Features : swp half thumb fastmult vfp edsp java tls CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xb76 CPU revision : 7

Hardware : BCM2708 Revision : 000e Serial : 00000000a61bd1f9

Memory: 4k page, physical 448776k(52400k free), swap 102396k(102396k free)

vm_info: Java HotSpot(TM) Client VM (25.0-b04) for linux-arm-vfp JRE (1.8.0-ea-b36e), built on Nov 29 2012 23:45:48 by "java_re" with gcc 4.7.2 20120910 (prerelease)

time: Sun Jun 23 22:04:28 2013 elapsed time: 13 seconds

xerial commented 11 years ago

Could you report your os.name and os.arch JVM system properties?

ackdom commented 11 years ago

Operating system name => Linux Operating system architecture => arm

which is weird since raspberry pi definitely has hard float. I am using Oracle JDK 8 which is for hardfloat but reports just arm.

xerial commented 11 years ago

To detect the arm hardfloat architecture, snappy-java uses a command line script: https://github.com/xerial/snappy-java/blob/develop/src/main/java/org/xerial/snappy/OSInfo.java#L67

If the following script used in OSInfo.java does not work in your platform, it should be fixed. /bin/sh -c find $(JAVA_HOME) -name 'libjvm.so' | head -1 | xargs readelf -A | grep 'Tag_ABI_VFP_args: VFP registers'

ackdom commented 11 years ago

Tested it on raspberry and doesnt work throws

JAVA_HOME: command not found readelf: Error: '.' is not an ordinary file

which btw throws on any other Linux machines I tried 2 AWS Ubuntu and 2 personal Debians.

but this definitely seems like the core of the problem of crashing on Raspberry. Is there anything I can do ?

xerial commented 11 years ago

JAVA_HOME is a path to your java installation folder. in which bin/java can be found. Please replace $(JAVA_HOME) in the script.

ackdom commented 11 years ago

Yeah I tried that yesterday I know what java:home is but same result pi@raspberrypi ~ $ /bin/sh -c find /usr/local/bin/java -name 'libjvm.so' | head -1 | xargs readelf -A | grep 'Tag_ABI_VFP_args: VFP registers' readelf: Error: '.' is not an ordinary file

seems like it cant find libjvm.so I have oracle JDK 8.0 for armhf but it doesnt work even if I specify path for openJDK 7

xerial commented 11 years ago

/usr/local/bin is not the right place for JAVA_HOME. It should be somewhere else. For example, /usr/java/jdk1.7.0_05, the folder containing jre/lib/.../libjvm.so.

You can probably find JAVA_HOME by looking at the location to which your /usr/local/bin/java is sym-linked.

ackdom commented 11 years ago

well I had to install it manually and it is JDK 1.8 from oracle I downloaded the gzip and unziped it to the /usr/local/bin/java (ok not the greatest idea I am not good linux admin) and I searched manually for the libjvm and I found it at $JAVA_HOME (/usr/local/bin/java/)jre/lib/arm/client/libjvm.so

so it is not symlinked it is where I installed it.

xerial commented 11 years ago

OK. So the command line will be: readelf -A (path to libjvm.so) | grep 'Tag_ABI_VFP_args: VFP registers'

Could you report this output?

khahn commented 10 years ago

pi@ras2 / $ sudo readelf -A /usr/lib/jvm/jdk-7-oracle-armhf/jre/lib/arm/client/libjvm.so | grep 'Tag_ABI_VFP_args: VFP registers' Tag_ABI_VFP_args: VFP registers pi@ras2 / $ readelf -A /usr/lib/jvm/jdk-7-oracle-armhf/jre/lib/arm/server/libjvm.so | grep 'Tag_ABI_VFP_args: VFP registers' Tag_ABI_VFP_args: VFP registers

kmpm commented 10 years ago
$ sudo aptitude install oracle-java7-jdk
#some time to install
$ /bin/sh -c "find /usr/lib/jvm/jdk-7-oracle-armhf/jre -name 'libjvm.so' | head -1 | xargs readelf -A | grep 'Tag_ABI_VFP_args: VFP registers'"
  Tag_ABI_VFP_args: VFP registers
xerial commented 10 years ago

Recently I got raspberry-pi from @komamitsu, and can build a native library for Raspberry-PI.

I can confirm the test code works fine with the following jar: https://oss.sonatype.org/content/repositories/snapshots/org/xerial/snappy/snappy-java/1.1.1.7-SNAPSHOT/