Hi,<br><br>I can view thread information of radiusd process by attaching its process ID into gdb as follows<br><br>gdb -q - 19201<br><br>After that<br><br>(gdb) bt<br>#0  0x00000037ed8cc4c2 in select () from /lib64/libc.so.6<br>
#1  0x00002aefb56dd817 in fr_event_loop (el=0x72848a0) at event.c:378<br>#2  0x000000000041a877 in main (argc=<value optimized out>, argv=0x3ec) at radiusd.c:398<br><br>Does it have any implication on Radius crashes that happened before?<br>
<br>Regards,<br><br>Dinh<br><br><br><div class="gmail_quote">On Wed, Dec 16, 2009 at 4:13 PM, Dinh Pham Cong <span dir="ltr"><<a href="mailto:dinhpc@vega.com.vn">dinhpc@vega.com.vn</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br><br>My Freeradiusd 2.1.7 got crashed a lot of times today so I decided to run radiusd in gdb<br><br>/etc/init.d/radiusd stop<br># gdb /usr/local/sbin/radiusd<br>GNU gdb Fedora (6.8-27.el5)<br>Copyright (C) 2008 Free Software Foundation, Inc.<br>

License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html" target="_blank">http://gnu.org/licenses/gpl.html</a>><br>This is free software: you are free to change and redistribute it.<br>
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"<br>
and "show warranty" for details.<br>This GDB was configured as "x86_64-redhat-linux-gnu"...<br>(gdb) set logging file gdb-radiusd.log<br>(gdb) set logging on<br>Copying output to gdb-radiusd.log.<br>(gdb) run<br>

Starting program: /usr/local/sbin/radiusd<br>[Thread debugging using libthread_db enabled]<br>[New Thread 0x2b34e4b7fe10 (LWP 27411)]<br>[New Thread 0x41c8b940 (LWP 27414)]<br>[Thread 0x41c8b940 (LWP 27414) exited]<br>Detaching after fork from child process 27416.<br>

<br>Program exited normally.<br>(gdb)<br>(gdb)<br>(gdb)<br>(gdb) info threads<br>No registers.<br>(gdb) thread apply all bt full<br>No registers.<br>(gdb) info threads<br>No registers.<br>(gdb) bt<br>No stack.<br><br>I already re-compiled FreeRadius with -enable-developer and set allows_core_dump = yes in the configuration file. But I don't know why I can not get the back trace when the segmentation fault happens<br>

<br>Dec 16 13:10:01 MobileTV-6 kernel: radiusd[1639]: segfault at 00000000000000c8 rip 0000003daee5306b rsp 00002aabfeef5180 error 4<br>Dec 16 15:14:06 MobileTV-6 kernel: radiusd[5486]: segfault at 00000000000000c8 rip 0000003daee5306b rsp 00002aab4b7d6180 error 4<br>

Dec 16 15:14:06 MobileTV-6 kernel: radiusd[11466]: segfault at 00000000000000c8 rip 0000003daee5306b rsp 00002aaf2c785180 error 4<br>Dec 16 15:27:16 MobileTV-6 kernel: radiusd[16567]: segfault at 0000000000000098 rip 0000003daee530f1 rsp 00002aacc4820180 error 4<br>

Dec 16 15:27:16 MobileTV-6 kernel: radiusd[24913]: segfault at 00000000000000c8 rip 0000003daee5306b rsp 00002aae33d64180 error 4<br>Dec 16 15:31:42 MobileTV-6 kernel: radiusd[26558]: segfault at 0000000000000002 rip 0000003daee51b35 rsp 00002aab453bb150 error 6<br>

Dec 16 15:31:42 MobileTV-6 kernel: radiusd[27347]: segfault at 0000000000000002 rip 0000003daee51b35 rsp 00002aad3da66150 error 6<br>Dec 16 15:31:42 MobileTV-6 kernel: radiusd[27322]: segfault at 0000000000000002 rip 0000003daee51b35 rsp 00002aad2e04d150 error 6<br>

Dec 16 15:31:42 MobileTV-6 kernel: radiusd[26487]: segfault at 0000000000000002 rip 0000003daee51b35 rsp 00002aab18d74150 error 6<br>Dec 16 15:32:21 MobileTV-6 kernel: radiusd[30883]: segfault at 0000000000000002 rip 0000003daee51b35 rsp 00002aabc3896150 error 6<br>

Dec 16 15:32:21 MobileTV-6 kernel: radiusd[31407]: segfault at 0000000000000002 rip 0000003daee51b35 rsp 00002aad1742f150 error 6<br>Dec 16 15:32:21 MobileTV-6 kernel: radiusd[31156]: segfault at 0000000000000002 rip 0000003daee51b35 rsp 00002aac6e3a7150 error 6<br>

Dec 16 15:32:21 MobileTV-6 kernel: radiusd[31460]: segfault at 0000000000000002 rip 0000003daee51b35 rsp 00002aad38665150 error 6<br>Dec 16 15:35:53 MobileTV-6 kernel: radiusd[32595]: segfault at 00000000000000c8 rip 0000003daee5306b rsp 00002aab7740b180 error 4<br>

Dec 16 15:43:55 MobileTV-6 kernel: radiusd[4822]: segfault at 00000000000000c8 rip 0000003daee5306b rsp 00002aac53f7c780 error 4<br>Dec 16 15:44:07 MobileTV-6 kernel: radiusd[14485]: segfault at 00000000000000c8 rip 0000003daee5306b rsp 00002aaecf241180 error 4<br>

Dec 16 15:44:20 MobileTV-6 kernel: radiusd[15346]: segfault at 00000000000000c8 rip 0000003daee5306b rsp 00002aab2ff99180 error 4<br>Dec 16 15:44:33 MobileTV-6 kernel: radiusd[18676]: segfault at 00000000000000c8 rip 0000003daee5306b rsp 00002aae233e5180 error 4<br>

Dec 16 15:57:44 MobileTV-6 kernel: radiusd[27191]: segfault at 00000000000000c8 rip 0000003daee5306b rsp 00002aae381a2180 error 4<br>Dec 16 15:57:56 MobileTV-6 kernel: radiusd[31469]: segfault at 00000000000000c8 rip 0000003daee5306b rsp 00002aaacbef9180 error 4<br>

<br><br>uname -a<br>Linux MobileTV-6 2.6.18-128.el5 #1 SMP Wed Jan 21 10:41:14 EST 2009 x86_64 x86_64 x86_64 GNU/Linux<br><br>free -m<br>             total       used       free     shared    buffers     cached<br>Mem:         16044       4825      11219          0        158       3332<br>

-/+ buffers/cache:       1334      14710<br>Swap:         2047          0       2047<br><br>ulimit -a<br>core file size          (blocks, -c) 0<br>data seg size           (kbytes, -d) unlimited<br>scheduling priority             (-e) 0<br>

file size               (blocks, -f) unlimited<br>pending signals                 (-i) 137216<br>max locked memory       (kbytes, -l) 32<br>max memory size         (kbytes, -m) unlimited<br>open files                      (-n) 100000<br>

pipe size            (512 bytes, -p) 8<br>POSIX message queues     (bytes, -q) 819200<br>real-time priority              (-r) 0<br>stack size              (kbytes, -s) 10240<br>cpu time               (seconds, -t) unlimited<br>

max user processes              (-u) 137216<br>virtual memory          (kbytes, -v) unlimited<br>file locks                      (-x) unlimited<br><br>Could you kindly point me the right direction?<br><br>Thanks,<br><font color="#888888"><br>
Dinh<br>

</font></blockquote></div><br>