-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
"pure virtual method called" in destructor #649
Comments
Hi Igor, Thanks, Igor Canadi notifications@github.com to facebook/rocks., me
— |
Yes, please delete RocksDB before the static destruction kicks in. RocksDB depends on statically allocated objects. |
@hwpw is this issue resolved now? |
yes it is resolved by explicitly destructing it before static destruction kicks in. Thanks! |
Does explicit destruction mean I need to destruct it in destructor using delete operator? |
Yes, issue is fixed. Thanks! On Fri, Jul 10, 2015 at 12:02 PM Igor Canadi notifications@github.com
|
rocksdb doesn't seem to like this: facebook/rocksdb#649
(gdb) bt
#0 0x00007f60147b4925 in raise () from /lib64/libc.so.6
#1 0x00007f60147b6105 in abort () from /lib64/libc.so.6
#2 0x000000000054fe05 in __gnu_cxx::__verbose_terminate_handler() () at ../../../../gcc-4.8.4/libstdc++-v3/libsupc++/vterminate.cc:95
#3 0x000000000051dc56 in __cxxabiv1::__terminate(void ()()) () at ../../../../gcc-4.8.4/libstdc++-v3/libsupc++/eh_terminate.cc:38
#4 0x000000000051dc83 in std::terminate() () at ../../../../gcc-4.8.4/libstdc++-v3/libsupc++/eh_terminate.cc:48
#5 0x000000000051ec9f in __cxa_pure_virtual () at ../../../../gcc-4.8.4/libstdc++-v3/libsupc++/pure.cc:50
#6 0x000000000041daf3 in rocksdb::DBImpl::FindObsoleteFiles(rocksdb::JobContext, bool, bool) () at db/db_impl.cc:470
#7 0x00000000004288e7 in rocksdb::DBImpl::~DBImpl() () at db/db_impl.cc:289
#8 0x0000000000428951 in rocksdb::DBImpl::~DBImpl() () at db/db_impl.cc:307
#9 0x000000000041044d in boost::checked_deleterocksdb::DB (x=0x1380210) at /usr/releng/external/boost/1.39.0b_gcc411-fPIC/include/boost-1_39_0b/boost/checked_delete.hpp:34
#10 0x0000000000412424 in boost::detail::sp_counted_impl_procksdb::DB::dispose (this=0x13848e0)
#11 0x000000000040c650 in boost::detail::sp_counted_base::release (this=0x13848e0)
#12 0x000000000040c6df in boost::detail::shared_count::~shared_count (this=0x1388630, __in_chrg=)
#13 0x000000000040cb3a in boost::shared_ptrrocksdb::DB::~shared_ptr (this=0x1388628, __in_chrg=)
...
The text was updated successfully, but these errors were encountered: