Why core dump when start a memcacheq process on CentOS 6.8?
Linux system version: CentOS release 6.8 (Final) Kernel \r on an \m
Kernel version: Linux 2.6.32-642.3.1.el6.x86_64 #1 SMP Tue Jul 12 18:30:56 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Dependency software version: libevent-debuginfo-1.4.13-4.el6.x86_64 libevent-1.4.13-4.el6.x86_64 libevent-doc-1.4.13-4.el6.noarch libevent-headers-1.4.13-4.el6.noarch libevent-devel-1.4.13-4.el6.x86_64 BerkeleyDB-5.3.28
**Memcacheq version:**memcacheq-0.2.0.tar.gz Memcacheq configure arguments:./configure --enable-threads --with-bdb=/usr/local/BerkeleyDB
gdb infomations:
gdb /usr/local/bin/memcacheq core.28142
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-90.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 /usr/local/bin/memcacheq...done. [New Thread 28142] Missing separate debuginfo for Try: yum --enablerepo='-debug' install /usr/lib/debug/.build-id/f0/2ee57b3523e39b523b2bb515182b00c2c4ffdb Reading symbols from /lib64/libm-2.12.so...Reading symbols from /usr/lib/debug/lib64/libm-2.12.so.debug...done. done. Loaded symbols for /lib64/libm-2.12.so Reading symbols from /usr/local/BerkeleyDB-5.3.28/lib/libdb-5.3.so...Reading symbols from /usr/lib/debug/usr/local/BerkeleyDB-5.3.28/lib/libdb-5.3.so.debug... warning: "/usr/lib/debug/usr/local/BerkeleyDB-5.3.28/lib/libdb-5.3.so.debug": separate debug info file has no debug info (no debugging symbols found)...done. (no debugging symbols found)...done. Loaded symbols for /usr/local/BerkeleyDB-5.3.28/lib/libdb-5.3.so Reading symbols from /usr/lib64/libevent-1.4.so.2.1.3...Reading symbols from /usr/lib/debug/usr/lib64/libevent-1.4.so.2.1.3.debug...done. done. Loaded symbols for /usr/lib64/libevent-1.4.so.2.1.3 Reading symbols from /lib64/libc-2.12.so...Reading symbols from /usr/lib/debug/lib64/libc-2.12.so.debug...done. done. Loaded symbols for /lib64/libc-2.12.so Reading symbols from /lib64/libpthread-2.12.so...Reading symbols from /usr/lib/debug/lib64/libpthread-2.12.so.debug...done. [Thread debugging using libthread_db enabled] done. Loaded symbols for /lib64/libpthread-2.12.so Reading symbols from /lib64/libnsl-2.12.so...Reading symbols from /usr/lib/debug/lib64/libnsl-2.12.so.debug...done. done. Loaded symbols for /lib64/libnsl-2.12.so Reading symbols from /lib64/librt-2.12.so...Reading symbols from /usr/lib/debug/lib64/librt-2.12.so.debug...done. done. Loaded symbols for /lib64/librt-2.12.so Reading symbols from /lib64/libresolv-2.12.so...Reading symbols from /usr/lib/debug/lib64/libresolv-2.12.so.debug...done. done. Loaded symbols for /lib64/libresolv-2.12.so Reading symbols from /lib64/ld-2.12.so...Reading symbols from /usr/lib/debug/lib64/ld-2.12.so.debug...done. done. Loaded symbols for /lib64/ld-2.12.so Reading symbols from /lib64/libnss_db-2.2.3.so...Reading symbols from /usr/lib/debug/lib64/libnss_db-2.2.3.so.debug...done. done. Loaded symbols for /lib64/libnss_db-2.2.3.so Reading symbols from /lib64/libnss_files-2.12.so...Reading symbols from /usr/lib/debug/lib64/libnss_files-2.12.so.debug...done. done. Loaded symbols for /lib64/libnss_files-2.12.so Core was generated by `/usr/local/bin/memcacheq -l 0.0.0.0 -d -r -u root -r -m 256 -H /data/nosql/memc'. Program terminated with signal 11, Segmentation fault. #0 event_base_set (base=0x9b, ev=0x1d3ae10) at event.c:645
645 ev->ev_pri = base->nactivequeues/2;
(gdb) bt
#0 event_base_set (base=0x9b, ev=0x1d3ae10) at event.c:645
#1 0x00000000004062ad in setup_thread (nthreads=4, main_base=
(gdb) bt full #0 event_base_set (base=0x9b, ev=0x1d3ae10) at event.c:645
No locals.
#1 0x00000000004062ad in setup_thread (nthreads=4, main_base=
No locals.
#2 thread_init (nthreads=4, main_base=
fds = {13, 14}
i = \<value optimized out\>
#3 0x00000000004035b1 in main (argc=
c = \<value optimized out\>
do_daemonize = true
maxcore = 1
username = 0x7ffe636be848 "root"
pid_file = 0x0
pw = <value optimized out>
sa = {__sigaction_handler = {sa_handler = 0x1, sa_sigaction = 0x1}, sa_mask = {__val = {0 <repeats 16 times>}}, sa_flags = 0, sa_restorer = 0x1000007f9}
rlim = {rlim_cur = 65535, rlim_max = 65535}