fusesource/leveldbjni

JVM crashes with SIGBUS signal on opening DB from Java code

zjshen opened this issue · 1 comments

Hi Leveldb JNI folks,

Recently we encountered one JVM crash issue when using leveldbjni 1.8. Bellow is some information from hs_err_pid.log. According to the log, it seems that JVM crashed when the app tried to open DB files.

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGBUS (0x7) at pc=0x00007f3512b19990, pid=6732, tid=139865935472384
#
# JRE version: Java(TM) SE Runtime Environment (7.0_67-b01) (build 1.7.0_67-b01)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.65-b04 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libc.so.6+0x89990]  memcpy+0x320
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.fusesource.leveldbjni.internal.NativeDB$DBJNI.Open(Lorg/fusesource/leveldbjni/internal/NativeOptions;Ljava/lang/String;[J)J+0
j  org.fusesource.leveldbjni.internal.NativeDB.open(Lorg/fusesource/leveldbjni/internal/NativeOptions;Ljava/io/File;)Lorg/fusesource/leveldbjni/internal/NativeDB;+22
j  org.fusesource.leveldbjni.JniDBFactory.open(Ljava/io/File;Lorg/iq80/leveldb/Options;)Lorg/iq80/leveldb/DB;+24

Do you have any idea what could be the cause of JVM crash? It's appreciated if you could share your opinions.

Thanks,
Zhijie