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

a core dump after delete db;. #578

Closed
superwood opened this issue Apr 15, 2015 · 5 comments
Closed

a core dump after delete db;. #578

superwood opened this issue Apr 15, 2015 · 5 comments

Comments

@superwood
Copy link

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

@igorcanadi
Copy link
Collaborator

Are you exiting thread in static destructors? All threads accessing RocksDB should be joined before int main() exits. I remember we had some issues with that in the past.

@superwood
Copy link
Author

I call pthread_cancel to stop threads which may write and read RocksDB。

@igorcanadi
Copy link
Collaborator

Can you try joining the thread rather than cancelling? Canceling threads cleanly is very tricky.

@ghost
Copy link

ghost commented Aug 4, 2015

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.

@igorcanadi
Copy link
Collaborator

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.

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