From owner-freebsd-stable@FreeBSD.ORG Thu Oct 30 12:29:40 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A09EAE87 for ; Thu, 30 Oct 2014 12:29:40 +0000 (UTC) Received: from mail-vc0-x22e.google.com (mail-vc0-x22e.google.com [IPv6:2607:f8b0:400c:c03::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 62795308 for ; Thu, 30 Oct 2014 12:29:40 +0000 (UTC) Received: by mail-vc0-f174.google.com with SMTP id im17so169216vcb.33 for ; Thu, 30 Oct 2014 05:29:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=v/i8lnyBK/VaLmXiUQpbF5RdL+cJutS0AWrfQJ4Bzts=; b=KlobYrdKBtQGFNtqI6fuGE1+OeW8fPOxZ7pvnWtaUgPslWDt2Sz1bVKxE4Hum5sl5F M7JsdI3pfQdMRmvYQn4KLAJSG8cqP6z1Aqhx/5t5l6gCYycQLw9jlArVpNNMSvhK6Fm9 xUmxfq2jhUBEcnfyIdkDueknFL/1HrnXvZvwoG6I7vxBJ/NabPmQsjYsxwnMPdmjxQAQ v0Ib4er3VoYey1EhlQKtDCiznJPmZFuYTHQhUuu3w3dOSvhowxZi7HKxE3Ak2MU/4zG3 5SR3kxAOVAaIkkACku1OC6qLGrkRJ6V6GeS+ovUFosvviKw18LKi8ikGHKziULRwRLXh HeTg== MIME-Version: 1.0 X-Received: by 10.52.26.140 with SMTP id l12mr10772693vdg.12.1414672179326; Thu, 30 Oct 2014 05:29:39 -0700 (PDT) Received: by 10.220.168.199 with HTTP; Thu, 30 Oct 2014 05:29:39 -0700 (PDT) In-Reply-To: References: Date: Thu, 30 Oct 2014 13:29:39 +0100 Message-ID: Subject: Re: JDK crash in JVM_handle_bsd_signal when starting Cassandra From: Nikolay Denev To: FreeBSD Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2014 12:29:40 -0000 On Thu, Oct 30, 2014 at 1:21 PM, Nikolay Denev 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