rocksdb
rocksdb copied to clipboard
example multi_processes_example failed, **/rocksdb/db/column_family.cc:1682: rocksdb::ColumnFamilySet::~ColumnFamilySet(): Assertion `last_ref' failed.
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
https://github.com/facebook/rocksdb/blob/main/examples/multi_processes_example.cc
Expected behavior
run and exit with zero
Actual behavior
➜ * git:(master) ✗ ./cmake-build-debug/* 1
[process 61747] Secondary instance starts
[process 61747] Observed key 0
[process 61747] Observed key 45999
[process 61747] Observed key 61999
[process 61747] Observed key 75999
^C
[process 61747] Point lookup thread finished
[process 61747] Range_scan thread finished
[process 61747] Verification succeeded
inkos_native_test: */rocksdb/db/column_family.cc:1682: rocksdb::ColumnFamilySet::~ColumnFamilySet(): Assertion `last_ref' failed.
[1] 61747 IOT instruction (core dumped) ./cmake-build-debug/* 1
Steps to reproduce the behavior
- edit the example file, modify
static_cast
toreinterpret_cast
inIsLittleEndian()
andKey
to fix compile error - run it with args 0
- start another terminal, run it with args 1
- it crashed if press 'Ctrl C'
BTW, static_cast can't pass compile check may be another issue
I can not reproduce. Any hint about how to reliably repro?