rocksdbjni-shared.dll initialization failed
- Dominant language
- C++
- Stars
- 32.1k
- Forks
- 6.9k
- Avg merge
- 32m
- Merged PRs (30d)
- 1
Description
> Note: Please use Issues only for bug reports. For questions, discussions, feature requests, etc. post to dev group: https://groups.google.com/forum/#!forum/rocksdb or https://www.facebook.com/groups/rocksdb.dev
### Expected behavior
library should initialize
### Actual behavior
sometimes rocksdbjni-shared.dll crashes during initialization.
Configuration.
1. platform windows 10 , visual studio 2019, using ms vcpkg to use snappy
2. pulled rocksdb version 6.27.3 or latest
3. generated build files with using cmake. Command line "cmake -B . -S .. -DCMAKE_TOOLCHAIN_FILE=d:\code\git.projects\vcpkg\scripts\buildsystems\vcpkg.cmake -DWITH_SNAPPY=1 -DWITH_JNI=1 -DWITH_ZLIB=1 -DWITH_MD_LIBRARY=0 -DWITH_TESTS=0 -DCMAKE_BUILD_TYPE=Debug"
4. configuration external libraries thirdparty.inc - modified parts look as follows :
set(SNAPPY_HOME d:\\code\\git.projects\\vcpkg\\packages\\snappy_x64-windows-static)
set(SNAPPY_INCLUDE ${SNAPPY_HOME}\\include)
set(SNAPPY_LIB_DEBUG ${SNAPPY_HOME}\\debug\\lib\\snappyd.lib)
set(SNAPPY_LIB_RELEASE ${SNAPPY_HOME}\\lib\\snappy.lib)
for other libraries (snappy, zlib,zstd looks similar)
Symptoms:
During execution from time to time jvm crashes creating code dump ,
Crash happens in xhash.cpp line 1654.
Windbg snapshot attached below.

### Steps to reproduce the behavior
Contributor guide
Assessment
This issue has not been assessed yet.