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

3.2.9 执行 pika 可执行文件 coredump #908

Closed
koolhazz opened this issue May 9, 2020 · 2 comments
Closed

3.2.9 执行 pika 可执行文件 coredump #908

koolhazz opened this issue May 9, 2020 · 2 comments

Comments

@koolhazz
Copy link

koolhazz commented May 9, 2020

ENV:
Centos 7 CentOS Linux release 7.7.1908 (Core)
gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)

bin/pika
Pika module 3.2.9
usage: pika [-hv] [-c conf/file]
-h -- show this help
-c conf/file -- config file
example: ./output/bin/pika -c ./conf/pika.conf
src/tcmalloc.cc:284] Attempt to free invalid pointer 0x28554c0
Aborted (core dumped)

Core was generated by `bin/pika'.
Program terminated with signal 6, Aborted.
#0 0x00007fc359174337 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:55
55 return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);
(gdb) bt
#0 0x00007fc359174337 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:55
#1 0x00007fc359175a28 in __GI_abort () at abort.c:90
#2 0x00007fc35a84da66 in tcmalloc::Log (mode=mode@entry=tcmalloc::kCrash, filename=filename@entry=0x7fc35a8632e6 "src/tcmalloc.cc", line=line@entry=284, a=..., b=..., c=..., d=...)
at src/internal_logging.cc:118
#3 0x00007fc35a842644 in (anonymous namespace)::InvalidFree (ptr=) at src/tcmalloc.cc:284
#4 0x0000000000731264 in operator delete [] (memblock=) at cache/lru_cache.cc:251
#5 rocksdb::LRUCache::~LRUCache (this=0x265ed80, __in_chrg=) at cache/lru_cache.cc:479
#6 0x0000000000732d25 in destroyrocksdb::LRUCache (this=, __p=0x265ed80) at /usr/include/c++/4.8.2/ext/new_allocator.h:124
#7 _S_destroyrocksdb::LRUCache (__a=..., __p=0x265ed80) at /usr/include/c++/4.8.2/bits/alloc_traits.h:281
#8 destroyrocksdb::LRUCache (__a=..., __p=0x265ed80) at /usr/include/c++/4.8.2/bits/alloc_traits.h:405
#9 operator() (this=, __ptr=0x265ed80) at /usr/include/c++/4.8.2/bits/shared_ptr_base.h:972
#10 std::_Sp_counted_deleter<rocksdb::LRUCache*, std::__shared_ptr<rocksdb::LRUCache, (__gnu_cxx::_Lock_policy)2>::_Deleter<std::allocatorrocksdb::LRUCache >, std::allocatorrocksdb::LRUCache, (__gnu_cxx::_Lock_policy)2>::_M_dispose (this=) at /usr/include/c++/4.8.2/bits/shared_ptr_base.h:347
#11 0x00000000008232a2 in _M_release (this=0x274f0a0) at /usr/include/c++/4.8.2/bits/shared_ptr_base.h:144
#12 ~__shared_count (this=0x2650988, __in_chrg=) at /usr/include/c++/4.8.2/bits/shared_ptr_base.h:546
#13 ~__shared_ptr (this=0x2650980, __in_chrg=) at /usr/include/c++/4.8.2/bits/shared_ptr_base.h:781
#14 ~shared_ptr (this=0x2650980, __in_chrg=) at /usr/include/c++/4.8.2/bits/shared_ptr.h:93
#15 ~BlockBasedTableOptions (this=0x2650968, __in_chrg=) at ./include/rocksdb/table.h:52
#16 ~BlockBasedTableFactory (this=0x2650960, __in_chrg=) at ./table/block_based_table_factory.h:34
#17 rocksdb::BlockBasedTableFactory::~BlockBasedTableFactory (this=0x2650960, __in_chrg=) at ./table/block_based_table_factory.h:34
#18 0x00000000006ca7bd in _M_release (this=0x274f0c0) at /usr/include/c++/4.8.2/bits/shared_ptr_base.h:144
#19 ~__shared_count (
this=0xba7a08 <int rocksdb::offset_of<std::shared_ptrrocksdb::MergeOperator, rocksdb::ColumnFamilyOptions>(std::shared_ptrrocksdb::MergeOperator rocksdb::ColumnFamilyOptions::)::obj+456>, __in_chrg=) at /usr/include/c++/4.8.2/bits/shared_ptr_base.h:546
#20 ~__shared_ptr (
this=0xba7a00 <int rocksdb::offset_of<std::shared_ptrrocksdb::MergeOperator, rocksdb::ColumnFamilyOptions>(std::shared_ptrrocksdb::MergeOperator rocksdb::ColumnFamilyOptions::
)::obj+448>, __in_chrg=) at /usr/include/c++/4.8.2/bits/shared_ptr_base.h:781
#21 ~shared_ptr (
this=0xba7a00 <int rocksdb::offset_of<std::shared_ptrrocksdb::MergeOperator, rocksdb::ColumnFamilyOptions>(std::shared_ptrrocksdb::MergeOperator rocksdb::ColumnFamilyOptions::)::obj+448>, __in_chrg=) at /usr/include/c++/4.8.2/bits/shared_ptr.h:93
#22 rocksdb::ColumnFamilyOptions::~ColumnFamilyOptions (
this=0xba7840 <int rocksdb::offset_of<std::shared_ptrrocksdb::MergeOperator, rocksdb::ColumnFamilyOptions>(std::shared_ptrrocksdb::MergeOperator rocksdb::ColumnFamilyOptions::
)::obj>, __in_chrg=) at /home/chenb/pika/third/rocksdb/include/rocksdb/options.h:81
#23 0x00007fc359177c99 in __run_exit_handlers (status=-1, listp=0x7fc3595056c8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:77
#24 0x00007fc359177ce7 in __GI_exit (status=) at exit.c:99
#25 0x000000000041b7a6 in main (argc=1, argv=) at /home/chenb/pika/src/pika.cc:155

@whoiami
Copy link
Contributor

whoiami commented May 10, 2020

你们的tcmalloc 是不是2.6版本 可以考虑换一个版本吗 之前有一个版本的tcmalloc 有问题

@koolhazz
Copy link
Author

确实是2.6.1 版本。
我静态编译2.7版本就没有问题了。

@whoiami whoiami closed this as completed May 13, 2020
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