On 10/03/2013 15:00, Jan Včelák wrote:
Hello Anand,
I ran the non-debug version of the server, and
when it shot up to 100%
and stopped logging, I attached to it with strace:
please, can you also try with GDB? The output might be more useful.
# gdb -p `pidof knotd`
...
(gdb) info thread
...
(gdb) thread apply all backtrace
...
(gdb) detach
(gdb) quit
Okay, here's the output from gdb, as you requested. Does it help?
(gdb) info thread
30 Thread 0x7fc2acd08700 (LWP 28899) 0x00007fc2adf5a4ed in write ()
from /lib64/libpthread.so.0
29 Thread 0x7fc2ace09700 (LWP 28900) 0x00007fc2adf5a054 in
__lll_lock_wait () from /lib64/libpthread.so.0
28 Thread 0x7fc2acf0a700 (LWP 28901) 0x00007fc2ae16ad3b in
update_counter_and_wait () from /usr/lib64/liburcu.so.1
27 Thread 0x7fc2ad00b700 (LWP 28902) 0x00007fc2adf5a4ed in write ()
from /lib64/libpthread.so.0
26 Thread 0x7fc2ad10c700 (LWP 28903) 0x00007fc2adf5a9c3 in recvfrom
() from /lib64/libpthread.so.0
25 Thread 0x7fc2ad20d700 (LWP 28904) 0x00007fc2adf5a9c3 in recvfrom
() from /lib64/libpthread.so.0
24 Thread 0x7fc2ad30e700 (LWP 28905) 0x00007fc2adf5a9c3 in recvfrom
() from /lib64/libpthread.so.0
23 Thread 0x7fc2aed20700 (LWP 28906) 0x00007fc2adf5a9c3 in recvfrom
() from /lib64/libpthread.so.0
22 Thread 0x7fc2acc07700 (LWP 28907) 0x00007fc2adf5a9c3 in recvfrom
() from /lib64/libpthread.so.0
21 Thread 0x7fc2acb06700 (LWP 28908) 0x00007fc2adf5a9c3 in recvfrom
() from /lib64/libpthread.so.0
20 Thread 0x7fc2aca05700 (LWP 28909) 0x00007fc2adf5a9c3 in recvfrom
() from /lib64/libpthread.so.0
19 Thread 0x7fc2ac904700 (LWP 28910) 0x00007fc2adf5a9c3 in recvfrom
() from /lib64/libpthread.so.0
18 Thread 0x7fc2ac803700 (LWP 28911) 0x00007fc2adf5a84d in accept ()
from /lib64/libpthread.so.0
17 Thread 0x7fc2ac702700 (LWP 28912) 0x00007fc2ada1d713 in epoll_wait
() from /lib64/libc.so.6
16 Thread 0x7fc2ac601700 (LWP 28913) 0x00007fc2ada1d713 in epoll_wait
() from /lib64/libc.so.6
15 Thread 0x7fc2ac500700 (LWP 28914) 0x00007fc2ada1d713 in epoll_wait
() from /lib64/libc.so.6
14 Thread 0x7fc2ac3ff700 (LWP 28915) 0x00007fc2ada1d713 in epoll_wait
() from /lib64/libc.so.6
13 Thread 0x7fc2ac2fe700 (LWP 28916) 0x00007fc2ada1d713 in epoll_wait
() from /lib64/libc.so.6
12 Thread 0x7fc2ac1fd700 (LWP 28917) 0x00007fc2ada1d713 in epoll_wait
() from /lib64/libc.so.6
11 Thread 0x7fc2a7fff700 (LWP 28918) 0x00007fc2ada1d713 in epoll_wait
() from /lib64/libc.so.6
10 Thread 0x7fc2a7efe700 (LWP 28919) 0x00007fc2ada1d713 in epoll_wait
() from /lib64/libc.so.6
9 Thread 0x7fc2a7dfd700 (LWP 28920) 0x00007fc2ada1d713 in epoll_wait
() from /lib64/libc.so.6
8 Thread 0x7fc2a7cfc700 (LWP 28921) 0x00007fc2ada1d713 in epoll_wait
() from /lib64/libc.so.6
7 Thread 0x7fc2a7bfb700 (LWP 28922) 0x00007fc2ada1d713 in epoll_wait
() from /lib64/libc.so.6
6 Thread 0x7fc2a7afa700 (LWP 28923) 0x00007fc2ada1d713 in epoll_wait
() from /lib64/libc.so.6
5 Thread 0x7fc2a79f9700 (LWP 28924) 0x00007fc2ada1d713 in epoll_wait
() from /lib64/libc.so.6
4 Thread 0x7fc2a78f8700 (LWP 28925) 0x00007fc2ada1d713 in epoll_wait
() from /lib64/libc.so.6
3 Thread 0x7fc2a77f7700 (LWP 28926) 0x00007fc2ada1d713 in epoll_wait
() from /lib64/libc.so.6
2 Thread 0x7fc2a76f6700 (LWP 28927) 0x00007fc2ada1d713 in epoll_wait
() from /lib64/libc.so.6
* 1 Thread 0x7fc2aed21880 (LWP 28759) 0x00007fc2ada15f0e in pselect ()
from /lib64/libc.so.6
Thread 30 (Thread 0x7fc2acd08700 (LWP 28899)):
#0 0x00007fc2adf5a4ed in write () from /lib64/libpthread.so.0
#1 0x0000000000439d1a in ?? ()
#2 0x000000000040acbb in ?? ()
#3 0x000000000040ea69 in ?? ()
#4 0x000000000040c105 in ?? ()
#5 0x000000000040cb00 in xfr_worker ()
#6 0x0000000000443e7e in ?? ()
#7 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#8 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 29 (Thread 0x7fc2ace09700 (LWP 28900)):
#0 0x00007fc2adf5a054 in __lll_lock_wait () from /lib64/libpthread.so.0
#1 0x00007fc2adf55388 in _L_lock_854 () from /lib64/libpthread.so.0
#2 0x00007fc2adf55257 in pthread_mutex_lock () from /lib64/libpthread.so.0
#3 0x00007fc2ae16b260 in ?? () from /usr/lib64/liburcu.so.1
#4 0x00007fc2ae16b359 in synchronize_rcu_mb () from /usr/lib64/liburcu.so.1
#5 0x000000000042d85f in ?? ()
#6 0x000000000040bf1b in ?? ()
#7 0x000000000040cb00 in xfr_worker ()
#8 0x0000000000443e7e in ?? ()
#9 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#10 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 28 (Thread 0x7fc2acf0a700 (LWP 28901)):
#0 0x00007fc2ae16ad3b in update_counter_and_wait () from
/usr/lib64/liburcu.so.1
#1 0x00007fc2ae16b36d in synchronize_rcu_mb () from /usr/lib64/liburcu.so.1
#2 0x000000000042d85f in ?? ()
#3 0x0000000000410f3e in ?? ()
#4 0x000000000040be37 in ?? ()
#5 0x000000000040cb00 in xfr_worker ()
#6 0x0000000000443e7e in ?? ()
#7 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#8 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 27 (Thread 0x7fc2ad00b700 (LWP 28902)):
#0 0x00007fc2adf5a4ed in write () from /lib64/libpthread.so.0
#1 0x0000000000439d1a in ?? ()
#2 0x000000000040acbb in ?? ()
#3 0x000000000040dd30 in ?? ()
#4 0x00000000004091df in ?? ()
#5 0x0000000000443e7e in ?? ()
#6 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#7 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 26 (Thread 0x7fc2ad10c700 (LWP 28903)):
#0 0x00007fc2adf5a9c3 in recvfrom () from /lib64/libpthread.so.0
#1 0x00000000004097d4 in ?? ()
#2 0x00000000004092aa in udp_master ()
#3 0x0000000000443e7e in ?? ()
#4 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#5 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 25 (Thread 0x7fc2ad20d700 (LWP 28904)):
#0 0x00007fc2adf5a9c3 in recvfrom () from /lib64/libpthread.so.0
#1 0x00000000004097d4 in ?? ()
#2 0x00000000004092aa in udp_master ()
#3 0x0000000000443e7e in ?? ()
#4 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#5 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 24 (Thread 0x7fc2ad30e700 (LWP 28905)):
#0 0x00007fc2adf5a9c3 in recvfrom () from /lib64/libpthread.so.0
#1 0x00000000004097d4 in ?? ()
#2 0x00000000004092aa in udp_master ()
#3 0x0000000000443e7e in ?? ()
#4 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#5 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 23 (Thread 0x7fc2aed20700 (LWP 28906)):
#0 0x00007fc2adf5a9c3 in recvfrom () from /lib64/libpthread.so.0
#1 0x00000000004097d4 in ?? ()
#2 0x00000000004092aa in udp_master ()
#3 0x0000000000443e7e in ?? ()
#4 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#5 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 22 (Thread 0x7fc2acc07700 (LWP 28907)):
#0 0x00007fc2adf5a9c3 in recvfrom () from /lib64/libpthread.so.0
#1 0x00000000004097d4 in ?? ()
#2 0x00000000004092aa in udp_master ()
#3 0x0000000000443e7e in ?? ()
#4 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#5 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 21 (Thread 0x7fc2acb06700 (LWP 28908)):
#0 0x00007fc2adf5a9c3 in recvfrom () from /lib64/libpthread.so.0
#1 0x00000000004097d4 in ?? ()
#2 0x00000000004092aa in udp_master ()
#3 0x0000000000443e7e in ?? ()
#4 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#5 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 20 (Thread 0x7fc2aca05700 (LWP 28909)):
#0 0x00007fc2adf5a9c3 in recvfrom () from /lib64/libpthread.so.0
#1 0x00000000004097d4 in ?? ()
#2 0x00000000004092aa in udp_master ()
#3 0x0000000000443e7e in ?? ()
#4 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#5 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 19 (Thread 0x7fc2ac904700 (LWP 28910)):
#0 0x00007fc2adf5a9c3 in recvfrom () from /lib64/libpthread.so.0
#1 0x00000000004097d4 in ?? ()
#2 0x00000000004092aa in udp_master ()
#3 0x0000000000443e7e in ?? ()
#4 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#5 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 18 (Thread 0x7fc2ac803700 (LWP 28911)):
#0 0x00007fc2adf5a84d in accept () from /lib64/libpthread.so.0
#1 0x0000000000409def in ?? ()
#2 0x0000000000409f84 in tcp_loop_master ()
#3 0x0000000000443e7e in ?? ()
#4 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#5 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 17 (Thread 0x7fc2ac702700 (LWP 28912)):
#0 0x00007fc2ada1d713 in epoll_wait () from /lib64/libc.so.6
#1 0x000000000043a9eb in ?? ()
#2 0x000000000040a0bd in tcp_loop_worker ()
#3 0x0000000000443e7e in ?? ()
#4 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#5 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 16 (Thread 0x7fc2ac601700 (LWP 28913)):
#0 0x00007fc2ada1d713 in epoll_wait () from /lib64/libc.so.6
#1 0x000000000043a9eb in ?? ()
#2 0x000000000040a0bd in tcp_loop_worker ()
#3 0x0000000000443e7e in ?? ()
#4 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#5 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 15 (Thread 0x7fc2ac500700 (LWP 28914)):
#0 0x00007fc2ada1d713 in epoll_wait () from /lib64/libc.so.6
#1 0x000000000043a9eb in ?? ()
#2 0x000000000040a0bd in tcp_loop_worker ()
#3 0x0000000000443e7e in ?? ()
#4 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#5 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 14 (Thread 0x7fc2ac3ff700 (LWP 28915)):
#0 0x00007fc2ada1d713 in epoll_wait () from /lib64/libc.so.6
#1 0x000000000043a9eb in ?? ()
#2 0x000000000040a0bd in tcp_loop_worker ()
#3 0x0000000000443e7e in ?? ()
#4 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#5 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 13 (Thread 0x7fc2ac2fe700 (LWP 28916)):
#0 0x00007fc2ada1d713 in epoll_wait () from /lib64/libc.so.6
#1 0x000000000043a9eb in ?? ()
#2 0x000000000040a0bd in tcp_loop_worker ()
#3 0x0000000000443e7e in ?? ()
#4 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#5 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 12 (Thread 0x7fc2ac1fd700 (LWP 28917)):
#0 0x00007fc2ada1d713 in epoll_wait () from /lib64/libc.so.6
#1 0x000000000043a9eb in ?? ()
#2 0x000000000040a0bd in tcp_loop_worker ()
#3 0x0000000000443e7e in ?? ()
#4 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#5 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 11 (Thread 0x7fc2a7fff700 (LWP 28918)):
#0 0x00007fc2ada1d713 in epoll_wait () from /lib64/libc.so.6
#1 0x000000000043a9eb in ?? ()
#2 0x000000000040a0bd in tcp_loop_worker ()
#3 0x0000000000443e7e in ?? ()
#4 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#5 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 10 (Thread 0x7fc2a7efe700 (LWP 28919)):
#0 0x00007fc2ada1d713 in epoll_wait () from /lib64/libc.so.6
#1 0x000000000043a9eb in ?? ()
#2 0x000000000040a0bd in tcp_loop_worker ()
#3 0x0000000000443e7e in ?? ()
#4 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#5 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 9 (Thread 0x7fc2a7dfd700 (LWP 28920)):
#0 0x00007fc2ada1d713 in epoll_wait () from /lib64/libc.so.6
#1 0x000000000043a9eb in ?? ()
#2 0x000000000040a0bd in tcp_loop_worker ()
#3 0x0000000000443e7e in ?? ()
#4 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#5 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 8 (Thread 0x7fc2a7cfc700 (LWP 28921)):
#0 0x00007fc2ada1d713 in epoll_wait () from /lib64/libc.so.6
#1 0x000000000043a9eb in ?? ()
#2 0x000000000040a0bd in tcp_loop_worker ()
#3 0x0000000000443e7e in ?? ()
#4 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#5 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 7 (Thread 0x7fc2a7bfb700 (LWP 28922)):
#0 0x00007fc2ada1d713 in epoll_wait () from /lib64/libc.so.6
#1 0x000000000043a9eb in ?? ()
#2 0x000000000040a0bd in tcp_loop_worker ()
#3 0x0000000000443e7e in ?? ()
#4 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#5 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 6 (Thread 0x7fc2a7afa700 (LWP 28923)):
#0 0x00007fc2ada1d713 in epoll_wait () from /lib64/libc.so.6
#1 0x000000000043a9eb in ?? ()
#2 0x000000000040a0bd in tcp_loop_worker ()
#3 0x0000000000443e7e in ?? ()
#4 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#5 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 5 (Thread 0x7fc2a79f9700 (LWP 28924)):
#0 0x00007fc2ada1d713 in epoll_wait () from /lib64/libc.so.6
#1 0x000000000043a9eb in ?? ()
#2 0x000000000040a0bd in tcp_loop_worker ()
#3 0x0000000000443e7e in ?? ()
#4 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#5 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 4 (Thread 0x7fc2a78f8700 (LWP 28925)):
#0 0x00007fc2ada1d713 in epoll_wait () from /lib64/libc.so.6
#1 0x000000000043a9eb in ?? ()
#2 0x000000000040a0bd in tcp_loop_worker ()
#3 0x0000000000443e7e in ?? ()
#4 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#5 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 3 (Thread 0x7fc2a77f7700 (LWP 28926)):
#0 0x00007fc2ada1d713 in epoll_wait () from /lib64/libc.so.6
#1 0x000000000043a9eb in ?? ()
#2 0x000000000040a0bd in tcp_loop_worker ()
#3 0x0000000000443e7e in ?? ()
#4 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#5 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 2 (Thread 0x7fc2a76f6700 (LWP 28927)):
#0 0x00007fc2ada1d713 in epoll_wait () from /lib64/libc.so.6
#1 0x000000000043a9eb in ?? ()
#2 0x000000000040a0bd in tcp_loop_worker ()
#3 0x0000000000443e7e in ?? ()
#4 0x00007fc2adf53851 in start_thread () from /lib64/libpthread.so.0
#5 0x00007fc2ada1d11d in clone () from /lib64/libc.so.6
Thread 1 (Thread 0x7fc2aed21880 (LWP 28759)):
#0 0x00007fc2ada15f0e in pselect () from /lib64/libc.so.6
#1 0x000000000040782e in ?? ()
#2 0x0000000000404e54 in ?? ()
#3 0x00007fc2ad953cdd in __libc_start_main () from /lib64/libc.so.6
#4 0x0000000000404829 in ?? ()
#5 0x00007fff8d492e78 in ?? ()
#6 0x000000000000001c in ?? ()
#7 0x0000000000000003 in ?? ()
#8 0x00007fff8d494f0e in ?? ()
#9 0x00007fff8d494f1e in ?? ()
#10 0x00007fff8d494f21 in ?? ()
#11 0x0000000000000000 in ?? ()