kevoree-modeling / mwDB

Many-World Database repository
Apache License 2.0
11 stars 2 forks source link

KDTree OffHeap Sigsev #13

Open lmouline opened 8 years ago

lmouline commented 8 years ago

When we use KDTree on offheap memory, a SIGSEV signal is trhown:

# JMH 1.13 (released 9 days ago)
# VM version: JDK 1.8.0_66, VM 25.66-b17
# VM invoker: /opt/jdk/jdk1.8.0_66/jre/bin/java
# VM options: <none>
# Warmup: <none>
# Measurement: 1 iterations, single-shot each, 100000 calls per op
# Timeout: 5 min per iteration
# Threads: 1 thread
# Benchmark mode: Single shot invocation time
# Benchmark: org.kevoree.mwg.benchmark.ml.KDTree.benchKDTree
# Parameters: (cacheSize = 10000000, useHeap = false)

Forking using command: [/opt/jdk/jdk1.8.0_66/jre/bin/java, -XX:CompileCommandFile=/tmp/jmh2579372353722079712compilecommand, -cp, bench/target/mwg-benchmark.jar, org.openjdk.jmh.runner.ForkedMain, 127.0.0.1, 34736]
# Run progress: 0.00% complete, ETA 00:00:00
# Fork: 1 of 1
Iteration   1: #
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fe9cf62c68c, pid=11443, tid=140642134656768
#
# JRE version: Java(TM) SE Runtime Environment (8.0_66-b17) (build 1.8.0_66-b17)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.66-b17 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V  [libjvm.so+0x93468c]  ParMarkBitMap::mark_obj(HeapWord*, unsigned long)+0xcc
#
# Core dump written. Default location: /var/jenkins_home/workspace/KDTree_OffHeap_Sigsev/benchmark/core or core.11443
#
# An error report file with more information is saved as:
# /var/jenkins_home/workspace/KDTree_OffHeap_Sigsev/benchmark/hs_err_pid11443.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#
<forked VM failed with exit code 134>
<stdout last='20 lines'>
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fe9cf62c68c, pid=11443, tid=140642134656768
#
# JRE version: Java(TM) SE Runtime Environment (8.0_66-b17) (build 1.8.0_66-b17)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.66-b17 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V  [libjvm.so+0x93468c]  ParMarkBitMap::mark_obj(HeapWord*, unsigned long)+0xcc
#
# Core dump written. Default location: /var/jenkins_home/workspace/KDTree_OffHeap_Sigsev/benchmark/core or core.11443
#
# An error report file with more information is saved as:
# /var/jenkins_home/workspace/KDTree_OffHeap_Sigsev/benchmark/hs_err_pid11443.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#
</stdout>
<stderr last='20 lines'>
</stderr>

The error occurs on Debian 8 machine (docker), not on OSX computer.

There is a build process on build server to reproduce this bug.