apache / apache/hugegraph

A fatal error has been detected by the Java Runtime Environment

Open
#966 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
3.2k
Forks
636
Avg merge
3d 11h
Merged PRs (30d)
14

Description

### Expected behavior 期望表现

HugeGraph 在运行过程中出现如下报错:

```txt
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f5250a54955, pid=1300, tid=0x00007f5261d40700
#
# JRE version: OpenJDK Runtime Environment (8.0_242-b08) (build 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08)
# Java VM: OpenJDK 64-Bit Server VM (25.242-b08 mixed mode linux-amd64 )
# Problematic frame:
# C [librocksdbjni5664892800863681445.so+0x414955] rocksdb::CachableEntry::ReleaseCacheHandle(void*, void*)+0x5
#
# Core dump written. Default location: /runnable/hugegraph-0.10.4/core or core.1300
#
# An error report file with more information is saved as:
# /runnable/hugegraph-0.10.4/hs_err_pid1300.log
Compiled method (nm) 496844379 10997 n 0 org.rocksdb.RocksIterator::disposeInternal (native)
total in heap [0x00007f5a76b33450,0x00007f5a76b33790] = 832
relocation [0x00007f5a76b33578,0x00007f5a76b335c0] = 72
main code [0x00007f5a76b335c0,0x00007f5a76b33788] = 456
oops [0x00007f5a76b33788,0x00007f5a76b33790] = 8
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
```
HugeGraph 进程随即停止。

查了下日志,抛出这个错误的时候,正在用 HugeGraph-tools (1.4.0)进行数据备份操作:

服务端日志:
```txt
com.baidu.hugegraph.server.RestServer [] - Graph [xxx] get vertex shards with split size '1048576'
com.baidu.hugegraph.server.RestServer [] - Graph [xxx] query vertices by shard(start: 0, end: 69273666, page: )
com.baidu.hugegraph.server.RestServer [] - Graph [xxx] query vertices by shard(start: 69273666, end: 138547332, page: )
```

客户端日志:

```txt
INFO: I/O exception (org.apache.http.NoHttpResponseException) caught when processing request to {}->http://host:port: The target server failed to respond
```

page 字段看起来取不到,不知道跟这个是否有关系。

HugeGraph 安装目录下出现 `core` 文件和相应的[日志](https://drive.google.com/file/d/1azu6TSJkVOqkKtuAryb-102fAnJ_8Ue5/view?usp=sharing),看起来和 RocksDB 有关。

### Specifications of environment 环境信息
- hugegraph version: 0.10.4
- operating system: Debian 4.9.189-3+deb9u2 (2019-11-11) x86_64 x86_64 x86_64 GNU/Linux
- hugegraph backend: RocksDB

Contributor guide

Open the contributing guide

Research direction

Start with the attached core dump and hs_err_pid1300.log, then review the server and HugeGraph-tools 1.4.0 client logs from the backup that triggered the crash. Investigate the RocksDB native failure, the missing page value, and the RocksIterator disposal path; done means identifying a reproducible cause and validating a documented fix or workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.