Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
InkerBot opened this issue Mar 24, 2024 · 2 comments

Comments

@InkerBot
Copy link

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
Copy link
Author

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

@ywave620
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants