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

pika运行一段时间后coredump #493

Closed
jencoldeng opened this issue Feb 12, 2019 · 5 comments
Closed

pika运行一段时间后coredump #493

jencoldeng opened this issue Feb 12, 2019 · 5 comments

Comments

@jencoldeng
Copy link

jencoldeng commented Feb 12, 2019

Program terminated with signal 6, Aborted.
#0 0x00000037c8a32495 in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install bzip2-libs-1.0.5-7.el6_0.x86_64 glibc-2.12-1.209.el6_9.2.x86_64 libgcc-4.4.7-18.el6_9.2.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) bt
#0 0x00000037c8a32495 in raise () from /lib64/libc.so.6
#1 0x00000037c8a33c75 in abort () from /lib64/libc.so.6
#2 0x00000037c8a703a7 in __libc_message () from /lib64/libc.so.6
#3 0x00000037c8a75dee in malloc_printerr () from /lib64/libc.so.6
#4 0x00000037c8a78c3d in _int_free () from /lib64/libc.so.6
#5 0x00000000006a526d in rocksdb::PosixRandomAccessFile::~PosixRandomAccessFile() () at /data1/user_home/gcc_4_8/include/c++/4.8.5/bits/basic_string.h:249
#6 0x00000000006a5291 in rocksdb::PosixRandomAccessFile::~PosixRandomAccessFile() () at env/io_posix.cc:308
#7 0x00000000006fe67a in rocksdb::BlockBasedTable::~BlockBasedTable() () at /data1/user_home/gcc_4_8/include/c++/4.8.5/bits/unique_ptr.h:67
#8 0x00000000006fe801 in rocksdb::BlockBasedTable::~BlockBasedTable() () at table/block_based_table_reader.cc:64
#9 0x0000000000595521 in rocksdb::LRUCacheShard::Release(rocksdb::Cache::Handle*, bool) () at ./cache/lru_cache.h:108
#10 0x00000000006577c1 in rocksdb::TableCache::Get(rocksdb::ReadOptions const&, rocksdb::InternalKeyComparator const&, rocksdb::FileDescriptor const&, rocksdb::Slice const&, rocksdb::GetContext*, rocksdb::HistogramImpl*, bool, int) () at db/table_cache.cc:84
#11 0x0000000000670517 in rocksdb::Version::Get(rocksdb::ReadOptions const&, rocksdb::LookupKey const&, rocksdb::PinnableSlice*, rocksdb::Status*, rocksdb::MergeContext*, rocksdb::RangeDelAggregator*, bool*, bool*, unsigned long*, rocksdb::ReadCallback*, bool*) () at db/version_set.cc:1002
#12 0x00000000005acb3a in rocksdb::DBImpl::GetImpl(rocksdb::ReadOptions const&, rocksdb::ColumnFamilyHandle*, rocksdb::Slice const&, rocksdb::PinnableSlice*, bool*, rocksdb::ReadCallback*, bool*) () at db/db_impl.cc:1024
#13 0x00000000005ad10b in rocksdb::DBImpl::Get(rocksdb::ReadOptions const&, rocksdb::ColumnFamilyHandle*, rocksdb::Slice const&, rocksdb::PinnableSlice*) ()
at db/db_impl.cc:941
#14 0x00000000005b14a5 in rocksdb::DB::Get(rocksdb::ReadOptions const&, rocksdb::ColumnFamilyHandle*, rocksdb::Slice const&, std::basic_string<char, std::char_traits, std::allocator >) () at ./include/rocksdb/db.h:317
#15 0x00000000005b08dd in rocksdb::DB::Get(rocksdb::ReadOptions const&, rocksdb::Slice const&, std::basic_string<char, std::char_traits, std::allocator >
) ()
at ./include/rocksdb/db.h:327
#16 0x00000000005772c5 in blackwidow::RedisStrings::MGet(std::vector<std::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::basic_string<char, std::char_traits, std::allocator > > > const&, std::vector<blackwidow::ValueStatus, std::allocatorblackwidow::ValueStatus >) ()
at src/redis_strings.cc:533
#17 0x0000000000523844 in blackwidow::BlackWidow::MGet(std::vector<std::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::basic_string<char, std::char_traits, std::allocator > > > const&, std::vector<blackwidow::ValueStatus, std::allocatorblackwidow::ValueStatus >
) ()
at src/blackwidow.cc:196
#18 0x000000000049e420 in MgetCmd::Do() () at /data1/user_home/pika/pika-3.0.5/src/pika_kv.cc:487
#19 0x000000000044831e in PikaClientConn::DoCmd(std::vector<std::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::basic_string<char, std::char_traits, std::allocator > > >&, std::basic_string<char, std::char_traits, std::allocator > const&) ()
at /data1/user_home/pika/pika-3.0.5/src/pika_client_conn.cc:164
#20 0x0000000000449e11 in PikaClientConn::DealMessage(std::vector<std::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::basic_string<char, std::char_traits, std::allocator > > >&, std::basic_string<char, std::char_traits, std::allocator >) ()
at /data1/user_home/pika/pika-3.0.5/src/pika_client_conn.cc:243
#21 0x000000000050f639 in pink::RedisConn::ProcessInputBuffer() () at src/redis_conn.cc:251
#22 0x000000000050f846 in pink::RedisConn::GetRequest() () at src/redis_conn.cc:310
#23 0x00000000005126ea in pink::WorkerThread::ThreadMain() () at src/worker_thread.cc:175
#24 0x000000000050c5ac in pink::Thread::RunThread(void
) () at src/pink_thread.cc:27
#25 0x00000037c8e07aa1 in start_thread () from /lib64/libpthread.so.0
#26 0x00000037c8ae8bbd in clone () from /lib64/libc.so.6
(gdb)

@jencoldeng jencoldeng changed the title pika pika运行一段时间后coredump Feb 12, 2019
@jencoldeng
Copy link
Author

环境:pika 3.0.5,gcc 4.8,gcc是自己编译安装的

@Axlgrep
Copy link
Collaborator

Axlgrep commented Feb 12, 2019

看上去是Rocksdb中PosixRandomAccessFile析构的时候出现的问题,你这个问题是偶现还是必现?

@jencoldeng
Copy link
Author

看上去是Rocksdb中PosixRandomAccessFile析构的时候出现的问题,你这个问题是偶现还是必现?

1-偶尔出现;
2-我也怀疑和编译环境有关,但是没法重现,也不知道怎么查,所以先把问题发出来

@Axlgrep
Copy link
Collaborator

Axlgrep commented Feb 12, 2019

尝试用一下我们发布的二进制呢, 因为很多包我们都是静态打进去的,受你们环境影响会小一点

@jencoldeng
Copy link
Author

我试试
其实我这个也是静态打包,线上部署懒得找库。

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

3 participants