Nikolay Denev
2014-Oct-30 12:21 UTC
JDK crash in JVM_handle_bsd_signal when starting Cassandra
Hi, When trying to start latest cassandra 2.1.1 (which I've succesfully built first), JDK crashes with SIGSEGV: # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x000000080241e045, pid=4107, tid=34384931840 # # JRE version: OpenJDK Runtime Environment (7.0-b17) (build 1.7.0_65-b17) # Java VM: OpenJDK 64-Bit Server VM (24.65-b04 mixed mode bsd-amd64 compressed oops) # Problematic frame: # V [libjvm.so+0x81e045] JVM_handle_bsd_signal+0x10ae75 # # Core dump written. Default location: /cores/core or core.4107 # # An error report file with more information is saved as: # /opt/apache-cassandra-2.1.1-src/hs_err_pid4107.log # # If you would like to submit a bug report, please visit: # http://bugreport.sun.com/bugreport/crash.jsp # zsh: abort (core dumped) CASSANDRA_CONF=`pwd`/conf JAVA_HOME=/usr/local/openjdk7 ./bin/cassandra -f Same thing happens when I try openjdk8 I'm running FreeBSD 10.0-STABLE #13 r270295M: Thu Aug 21 22:05:37 UTC 2014 --Nikolay
Ronald Klop
2014-Oct-30 12:28 UTC
JDK crash in JVM_handle_bsd_signal when starting Cassandra
On Thu, 30 Oct 2014 13:21:53 +0100, Nikolay Denev <ndenev at gmail.com> wrote:> Hi, > > When trying to start latest cassandra 2.1.1 (which I've succesfully > built first), > JDK crashes with SIGSEGV: > > # > # A fatal error has been detected by the Java Runtime Environment: > # > # SIGSEGV (0xb) at pc=0x000000080241e045, pid=4107, tid=34384931840 > # > # JRE version: OpenJDK Runtime Environment (7.0-b17) (build 1.7.0_65-b17) > # Java VM: OpenJDK 64-Bit Server VM (24.65-b04 mixed mode bsd-amd64 > compressed oops) > # Problematic frame: > # V [libjvm.so+0x81e045] JVM_handle_bsd_signal+0x10ae75 > # > # Core dump written. Default location: /cores/core or core.4107 > # > # An error report file with more information is saved as: > # /opt/apache-cassandra-2.1.1-src/hs_err_pid4107.log > # > # If you would like to submit a bug report, please visit: > # http://bugreport.sun.com/bugreport/crash.jsp > # > zsh: abort (core dumped) CASSANDRA_CONF=`pwd`/conf > JAVA_HOME=/usr/local/openjdk7 ./bin/cassandra -f > > Same thing happens when I try openjdk8 > > I'm running FreeBSD 10.0-STABLE #13 r270295M: Thu Aug 21 22:05:37 UTC > 2014 > > --Nikolay# An error report file with more information is saved as: # /opt/apache-cassandra-2.1.1-src/hs_err_pid4107.log It is helpful to others to include this file in your report. Ronald.
Nikolay Denev
2014-Oct-30 12:29 UTC
JDK crash in JVM_handle_bsd_signal when starting Cassandra
On Thu, Oct 30, 2014 at 1:21 PM, Nikolay Denev <ndenev at gmail.com> wrote:> Hi, > > When trying to start latest cassandra 2.1.1 (which I've succesfully > built first), > JDK crashes with SIGSEGV: > > # > # A fatal error has been detected by the Java Runtime Environment: > # > # SIGSEGV (0xb) at pc=0x000000080241e045, pid=4107, tid=34384931840 > # > # JRE version: OpenJDK Runtime Environment (7.0-b17) (build 1.7.0_65-b17) > # Java VM: OpenJDK 64-Bit Server VM (24.65-b04 mixed mode bsd-amd64 > compressed oops) > # Problematic frame: > # V [libjvm.so+0x81e045] JVM_handle_bsd_signal+0x10ae75 > # > # Core dump written. Default location: /cores/core or core.4107 > # > # An error report file with more information is saved as: > # /opt/apache-cassandra-2.1.1-src/hs_err_pid4107.log > # > # If you would like to submit a bug report, please visit: > # http://bugreport.sun.com/bugreport/crash.jsp > # > zsh: abort (core dumped) CASSANDRA_CONF=`pwd`/conf > JAVA_HOME=/usr/local/openjdk7 ./bin/cassandra -f > > Same thing happens when I try openjdk8 > > I'm running FreeBSD 10.0-STABLE #13 r270295M: Thu Aug 21 22:05:37 UTC 2014 > > --NikolayLooks like it might be cassandra bug, as it's calling sun.misc.Unsafe.getByte() which can crash the JVM with bad addresses. Stack: [0x00007fffffbbe000,0x00007fffffbfe000], sp=0x00007fffffbfcdf0, free space=251k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0x81e045] JVM_handle_bsd_signal+0x10ae75 j sun.misc.Unsafe.getByte(Ljava/lang/Object;J)B+0 j org.apache.cassandra.utils.FastByteOperations$UnsafeOperations.copy(Ljava/lang/Object;J[BII)V+35 j org.apache.cassandra.io.util.Memory.getBytes(J[BII)V+78 j org.apache.cassandra.io.sstable.IndexSummary.getKey(I)[B+37 --Nikolay