rocksdb icon indicating copy to clipboard operation
rocksdb copied to clipboard

example multi_processes_example failed, **/rocksdb/db/column_family.cc:1682: rocksdb::ColumnFamilySet::~ColumnFamilySet(): Assertion `last_ref' failed.

Open InkerBot opened this issue 11 months ago • 2 comments

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

  1. edit the example file, modify static_cast to reinterpret_cast in IsLittleEndian() and Key to fix compile error
  2. run it with args 0
  3. start another terminal, run it with args 1
  4. it crashed if press 'Ctrl C'

InkerBot avatar Mar 24 '24 10:03 InkerBot

BTW, static_cast can't pass compile check may be another issue

InkerBot avatar Mar 24 '24 10:03 InkerBot

I can not reproduce. Any hint about how to reliably repro?

ywave620 avatar Apr 30 '24 00:04 ywave620