-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
a core dump after delete db;. #578
Comments
Are you exiting thread in static destructors? All threads accessing RocksDB should be joined before |
I call pthread_cancel to stop threads which may write and read RocksDB。 |
Can you try joining the thread rather than cancelling? Canceling threads cleanly is very tricky. |
Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed. |
I'm closing this due to inactivity. You should see no issues if you join the threads and close the database before the static destructor kicks in. Let us know if you see any more issues. |
the version is 3.10.fb
commit 3e32a88
After delete db, the process seems ok。 But when process exit after delete db, A core dump there。
There is the bt
#0 0x0000003ec8032925 in raise () from /lib64/libc.so.6
#1 0x0000003ec8034105 in abort () from /lib64/libc.so.6
#2 0x000000000040c53e in rocksdb::port::PthreadCall (label=0x5b4dce "lock", result=Unhandled dwarf expression opcode 0xf3
) at port/port_posix.cc:26
#3 0x00000000005047a0 in PthreadCall (this=Unhandled dwarf expression opcode 0xf3
) at port/port_posix.cc:24
#4 rocksdb::port::Mutex::Lock (this=Unhandled dwarf expression opcode 0xf3
) at port/port_posix.cc:53
#5 0x0000000000598207 in MutexLock (ptr=0x175f8750) at ./util/mutexlock.h:28
#6 rocksdb::ThreadLocalPtr::StaticMeta::OnThreadExit (ptr=0x175f8750) at util/thread_local.cc:34
#7 0x0000003ec8407a69 in start_thread () from /lib64/libpthread.so.0
#8 0x0000003ec80e8b6d in clone () from /lib64/libc.so.6
The text was updated successfully, but these errors were encountered: