Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Oct 2014 13:29:39 +0100
From:      Nikolay Denev <ndenev@gmail.com>
To:        FreeBSD <freebsd-stable@freebsd.org>
Subject:   Re: JDK crash in JVM_handle_bsd_signal when starting Cassandra
Message-ID:  <CA%2BP_MZG%2BLED5QBOXGSM7ny6Yf7u_5DUtASYaGxgqbrxywEgZMA@mail.gmail.com>
In-Reply-To: <CA%2BP_MZHP80mk-pO5Wr_zHE-ikh4euJ3%2B52xY9TfzbrOEwySYng@mail.gmail.com>
References:  <CA%2BP_MZHP80mk-pO5Wr_zHE-ikh4euJ3%2B52xY9TfzbrOEwySYng@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 30, 2014 at 1:21 PM, Nikolay Denev <ndenev@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

Looks 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BP_MZG%2BLED5QBOXGSM7ny6Yf7u_5DUtASYaGxgqbrxywEgZMA>