twmht / python-rocksdb

Python bindings for RocksDB
BSD 3-Clause "New" or "Revised" License
276 stars 88 forks source link

crash on rocksdb load #61

Open joequant opened 5 years ago

joequant commented 5 years ago

gcc 8.3.1 on rocksdb 6.1.7

Starting program: /usr/bin/python3 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Python 3.7.3 (default, Apr  4 2019, 08:55:10) 
[GCC 8.3.1 20190329] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import rocksdb

Program received signal SIGILL, Illegal instruction.
0x00007ffff24684ca in std::__detail::_Prime_rehash_policy::_M_bkt_for_elements
    (this=0x7ffff2813260 <rocksdb::sanity_level_cf_options+32>, 
    __n=<optimized out>) at /usr/include/c++/8.3.1/bits/stl_algobase.h:219
219     max(const _Tp& __a, const _Tp& __b)
(gdb) 

In this file

25  static const std::unordered_map<std::string, OptionsSanityCheckLevel>
26      sanity_level_db_options {};
27  
28  // The sanity check level for column-family options
29  static const std::unordered_map<std::string, OptionsSanityCheckLevel>
30      sanity_level_cf_options = {
31          {"comparator", kSanityLevelLooselyCompatible},
32          {"table_factory", kSanityLevelLooselyCompatible},
33          {"merge_operator", kSanityLevelLooselyCompatible}};