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">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><br>Dinh<br>