При попытке запуска в локах пишет:
Код: Выделить всё
Jun 13 23:39:55 accel2 kernel: pid 1306 (memcached), uid 65534: exited on signal 11
Jun 13 23:39:56 accel2 kernel: pid 1314 (memcached), uid 65534: exited on signal 11
Jun 13 23:39:57 accel2 kernel: pid 1322 (memcached), uid 65534: exited on signal 11
Код: Выделить всё
accel2# sysctl -w kern.corefile=/tmp/%N.core
kern.corefile: %N.core -> /tmp/%N.core
accel2# /usr/local/bin/memcached -d -u root
accel2# gdb /usr/local/bin/memcached /tmp/memcached.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols found). ..
Core was generated by `memcached'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libumem.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libumem.so.2
Reading symbols from /usr/local/lib/libevent-1.4.so.3...(no debugging symbols fo und)...done.
Loaded symbols for /usr/local/lib/libevent-1.4.so.3
Reading symbols from /lib/libthr.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /usr/lib/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x280c33a2 in pthread_mutex_lock () from /lib/libthr.so.3
[New Thread 282a1280 (LWP 100135)]
[New Thread 282a13c0 (LWP 100134)]
[New Thread 282a1500 (LWP 100133)]
[New Thread 282a1640 (LWP 100132)]
[New Thread 282a1780 (LWP 100131)]
[New Thread 28201140 (LWP 100118)]
(gdb) bt
#0 0x280c33a2 in pthread_mutex_lock () from /lib/libthr.so.3
#1 0x08055ba3 in ?? ()
#2 0x00000008 in ?? ()
#3 0x28099800 in ?? ()
#4 0xbfbfe6b4 in ?? ()
#5 0x282a8780 in ?? ()
#6 0x00000012 in ?? ()
#7 0x00000002 in ?? ()
#8 0x00010000 in ?? ()
#9 0x00000012 in ?? ()
#10 0x00000003 in ?? ()
#11 0x00000012 in ?? ()
#12 0x00000008 in ?? ()
#13 0x00000001 in ?? ()
#14 0x282a8780 in ?? ()
#15 0x00000012 in ?? ()
#16 0xbfbfe708 in ?? ()
#17 0x0804c13b in ?? ()
#18 0x00000012 in ?? ()
#19 0x00000003 in ?? ()
#20 0x00000012 in ?? ()
#21 0x00010000 in ?? ()
#22 0x00000002 in ?? ()
#46 0x00000031 in ?? ()
#47 0x00000001 in ?? ()
#48 0x281ccad8 in ?? () from /lib/libc.so.7
#49 0x281b112c in getenv () from /lib/libc.so.7
Previous frame inner to this frame (corrupt stack?)
(gdb)