-
Notifications
You must be signed in to change notification settings - Fork 337
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
Segmentation fault (core dumped) #11
Comments
我也是: GDB 跟踪: |
你好,我们查一下原因。 |
我的也是./bin/store_main -c ./etc/store_server.0.conf |
+1 |
Fixed。是一个日志组件引起的core,用临时措施先规避了。后面我们会完全修复这个bug。 |
重新编译成功后,执行程序报了如下错误 [root@localhost phxqueue-master]# bin/store_main -c etc/store_server.1.conf [root@localhost phxqueue-master]# bin/store_main -c etc/store_server.2.conf [root@localhost phxqueue-master]# ps -ef|grep store_main [root@localhost phxqueue-master]# bin/consumer_main -c etc/consumer_server.0.conf [root@localhost phxqueue-master]# bin/test_producer_echo_main [root@localhost consumer.0]# tail -f test.ERROR [root@localhost log]# tail -f store.0/test.ERROR 请帮忙查看,非常感谢~ |
若未部署Lock和Schedluer,请参阅README如上修改这两项配置。 |
能不能提供一个docker image的下载地址,pull国外的镜像老是超时 :-( |
docker 启动的时候执行/usr/local/bin/docker-entrypoint.sh命令,导致想kill掉这些进程的时候出现好多僵尸进程kill不掉,这种方式不太好
|
编译完成
[root@localhost phxqueue-master]# ll ~/phxqueue-master/bin
total 81388
-rwxr-x--- 1 root root 5481431 Sep 13 19:24 consumer_main
-rwxr-x--- 1 root root 6164740 Sep 13 19:24 lock_main
-rwxr-x--- 1 root root 3599574 Sep 13 19:24 lock_tool_main
-rwxr-x--- 1 root root 5117934 Sep 13 19:24 producer_benchmark_main
-rwxr-x--- 1 root root 5360373 Sep 13 19:24 scheduler_main
-rwxr-x--- 1 root root 3596118 Sep 13 19:24 scheduler_tool_main
-rwxr-x--- 1 root root 6207847 Sep 13 19:24 store_main
-rwxr-x--- 1 root root 3599327 Sep 13 19:24 store_tool_main
-rwxr-x--- 1 root root 3831632 Sep 13 19:24 test_config_main
-rwxr-x--- 1 root root 4260253 Sep 13 19:24 test_consumer_main
-rwxr-x--- 1 root root 4087214 Sep 13 19:24 test_load_config_main
-rwxr-x--- 1 root root 4937975 Sep 13 19:24 test_lock_main
-rwxr-x--- 1 root root 187347 Sep 13 19:24 test_log_main
-rwxr-x--- 1 root root 143758 Sep 13 19:24 test_notifierpool_main
-rwxr-x--- 1 root root 3677555 Sep 13 19:24 test_plugin_main
-rwxr-x--- 1 root root 5106439 Sep 13 19:24 test_producer_echo_main
-rwxr-x--- 1 root root 4076620 Sep 13 19:24 test_producer_main
-rwxr-x--- 1 root root 4872753 Sep 13 19:24 test_rpc_config_main
-rwxr-x--- 1 root root 4014373 Sep 13 19:24 test_scheduler_main
-rwxr-x--- 1 root root 4978414 Sep 13 19:24 test_store_main
运行时报错
[root@localhost phxqueue-master]# bin/store_main -c etc/store_server.0.conf
Segmentation fault (core dumped)
没有日志生成
[root@localhost log]# ls /root/phxqueue-master/log/*
/root/phxqueue-master/log/clear_log.sh
/root/phxqueue-master/log/consumer.0:
/root/phxqueue-master/log/consumer.1:
/root/phxqueue-master/log/consumer.2:
/root/phxqueue-master/log/lock.0:
/root/phxqueue-master/log/lock.1:
/root/phxqueue-master/log/lock.2:
/root/phxqueue-master/log/scheduler.0:
/root/phxqueue-master/log/scheduler.1:
/root/phxqueue-master/log/scheduler.2:
/root/phxqueue-master/log/store.0:
/root/phxqueue-master/log/store.1:
/root/phxqueue-master/log/store.2:
gdb查看core文件
[root@localhost phxqueue-master]# gdb bin/store_main core.2953
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-92.el6)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /root/phxqueue-master/bin/store_main...done.
[New Thread 2953]
Reading symbols from /lib64/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/librt.so.1
Reading symbols from /lib64/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libz.so.1
Reading symbols from /lib64/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libdl.so.2
Reading symbols from /lib64/libpthread.so.0...(no debugging symbols found)...done.
[Thread debugging using libthread_db enabled]
Loaded symbols for /lib64/libpthread.so.0
Reading symbols from /opt/gcc/gcc-4.8.2/lib64/libstdc++.so.6...done.
Loaded symbols for /opt/gcc/gcc-4.8.2/lib64/libstdc++.so.6
Reading symbols from /lib64/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/libm.so.6
Reading symbols from /opt/gcc/gcc-4.8.2/lib64/libgcc_s.so.1...done.
Loaded symbols for /opt/gcc/gcc-4.8.2/lib64/libgcc_s.so.1
Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Core was generated by
bin/store_main -c etc/store_server.0.conf'. Program terminated with signal 11, Segmentation fault. #0 0x00007fdd0e537c9c in vfprintf () from /lib64/libc.so.6 warning: File "/opt/gcc/gcc-4.8.2/lib64/libstdc++.so.6.0.18-gdb.py" auto-loading has been declined by your
auto-load safe-path' set to "/usr/share/gdb/auto-load:/usr/lib/debug:/usr/bin/mono-gdb.py".To enable execution of this file add
add-auto-load-safe-path /opt/gcc/gcc-4.8.2/lib64/libstdc++.so.6.0.18-gdb.py
line to your configuration file "/root/.gdbinit".
To completely disable this security protection add
set auto-load safe-path /
line to your configuration file "/root/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual. E.g., run from the shell:
info "(gdb)Auto-loading safe path"
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.209.el6_9.2.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) bt
#0 0x00007fdd0e537c9c in vfprintf () from /lib64/libc.so.6
#1 0x00007fdd0e55f5c2 in vsnprintf () from /lib64/libc.so.6
#2 0x0000000000480b22 in phxqueue::plugin::LoggerGoogle::Log(int, char const*, __va_list_tag*) ()
#3 0x000000000048083d in phxqueue::comm::Logger::LogVerbose(char const*, ...) ()
#4 0x000000000048331f in phxpaxos::Logger::LogWarning(char const*, ...) ()
#5 0x000000000049b989 in phxpaxos::LogStore::RebuildIndex(phxpaxos::Database*, int&) ()
#6 0x000000000049bcbe in phxpaxos::LogStore::Init(std::basic_string<char, std::char_traits, std::allocator > const&, int, phxpaxos::Database*) ()
#7 0x0000000000497062 in phxpaxos::Database::Init(std::basic_string<char, std::char_traits, std::allocator > const&, int) ()
#8 0x0000000000499068 in phxpaxos::MultiDatabase::Init(std::basic_string<char, std::char_traits, std::allocator > const&, int) ()
#9 0x0000000000484832 in phxpaxos::PNode::InitLogStorage(phxpaxos::Options const&, phxpaxos::LogStorage*&) ()
#10 0x00000000004855f2 in phxpaxos::PNode::Init(phxpaxos::Options const&, phxpaxos::NetWork*&) ()
#11 0x00000000004813d8 in phxpaxos::Node::RunNode(phxpaxos::Options const&, phxpaxos::Node*&) ()
#12 0x00000000004223a4 in phxqueue::store::Store::PaxosInit() ()
#13 0x0000000000422b3b in phxqueue::store::Store::Init() ()
#14 0x000000000040b9de in main ()
(gdb)
[root@localhost lib64]# uname -a
Linux localhost 2.6.32-504.el6.x86_64 #1 SMP Tue Sep 16 01:56:35 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost lib64]# rpm -qa|grep glibc
glibc-common-2.12-1.209.el6_9.2.x86_64
glibc-devel-2.12-1.209.el6_9.2.x86_64
glibc-2.12-1.209.el6_9.2.x86_64
glibc-headers-2.12-1.209.el6_9.2.x86_64
glibc-devel-2.12-1.209.el6_9.2.i686
glibc-2.12-1.209.el6_9.2.i686
请帮忙分析一下原因 是c库函数版本的问题吗?
非常感谢~!
The text was updated successfully, but these errors were encountered: