Help on debugging Freeradius

Dinh Pham Cong dinhpc at vega.com.vn
Wed Dec 16 10:13:29 CET 2009


Hi all,

My Freeradiusd 2.1.7 got crashed a lot of times today so I decided to run
radiusd in gdb

/etc/init.d/radiusd stop
# gdb /usr/local/sbin/radiusd
GNU gdb Fedora (6.8-27.el5)
Copyright (C) 2008 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"...
(gdb) set logging file gdb-radiusd.log
(gdb) set logging on
Copying output to gdb-radiusd.log.
(gdb) run
Starting program: /usr/local/sbin/radiusd
[Thread debugging using libthread_db enabled]
[New Thread 0x2b34e4b7fe10 (LWP 27411)]
[New Thread 0x41c8b940 (LWP 27414)]
[Thread 0x41c8b940 (LWP 27414) exited]
Detaching after fork from child process 27416.

Program exited normally.
(gdb)
(gdb)
(gdb)
(gdb) info threads
No registers.
(gdb) thread apply all bt full
No registers.
(gdb) info threads
No registers.
(gdb) bt
No stack.

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

Dec 16 13:10:01 MobileTV-6 kernel: radiusd[1639]: segfault at
00000000000000c8 rip 0000003daee5306b rsp 00002aabfeef5180 error 4
Dec 16 15:14:06 MobileTV-6 kernel: radiusd[5486]: segfault at
00000000000000c8 rip 0000003daee5306b rsp 00002aab4b7d6180 error 4
Dec 16 15:14:06 MobileTV-6 kernel: radiusd[11466]: segfault at
00000000000000c8 rip 0000003daee5306b rsp 00002aaf2c785180 error 4
Dec 16 15:27:16 MobileTV-6 kernel: radiusd[16567]: segfault at
0000000000000098 rip 0000003daee530f1 rsp 00002aacc4820180 error 4
Dec 16 15:27:16 MobileTV-6 kernel: radiusd[24913]: segfault at
00000000000000c8 rip 0000003daee5306b rsp 00002aae33d64180 error 4
Dec 16 15:31:42 MobileTV-6 kernel: radiusd[26558]: segfault at
0000000000000002 rip 0000003daee51b35 rsp 00002aab453bb150 error 6
Dec 16 15:31:42 MobileTV-6 kernel: radiusd[27347]: segfault at
0000000000000002 rip 0000003daee51b35 rsp 00002aad3da66150 error 6
Dec 16 15:31:42 MobileTV-6 kernel: radiusd[27322]: segfault at
0000000000000002 rip 0000003daee51b35 rsp 00002aad2e04d150 error 6
Dec 16 15:31:42 MobileTV-6 kernel: radiusd[26487]: segfault at
0000000000000002 rip 0000003daee51b35 rsp 00002aab18d74150 error 6
Dec 16 15:32:21 MobileTV-6 kernel: radiusd[30883]: segfault at
0000000000000002 rip 0000003daee51b35 rsp 00002aabc3896150 error 6
Dec 16 15:32:21 MobileTV-6 kernel: radiusd[31407]: segfault at
0000000000000002 rip 0000003daee51b35 rsp 00002aad1742f150 error 6
Dec 16 15:32:21 MobileTV-6 kernel: radiusd[31156]: segfault at
0000000000000002 rip 0000003daee51b35 rsp 00002aac6e3a7150 error 6
Dec 16 15:32:21 MobileTV-6 kernel: radiusd[31460]: segfault at
0000000000000002 rip 0000003daee51b35 rsp 00002aad38665150 error 6
Dec 16 15:35:53 MobileTV-6 kernel: radiusd[32595]: segfault at
00000000000000c8 rip 0000003daee5306b rsp 00002aab7740b180 error 4
Dec 16 15:43:55 MobileTV-6 kernel: radiusd[4822]: segfault at
00000000000000c8 rip 0000003daee5306b rsp 00002aac53f7c780 error 4
Dec 16 15:44:07 MobileTV-6 kernel: radiusd[14485]: segfault at
00000000000000c8 rip 0000003daee5306b rsp 00002aaecf241180 error 4
Dec 16 15:44:20 MobileTV-6 kernel: radiusd[15346]: segfault at
00000000000000c8 rip 0000003daee5306b rsp 00002aab2ff99180 error 4
Dec 16 15:44:33 MobileTV-6 kernel: radiusd[18676]: segfault at
00000000000000c8 rip 0000003daee5306b rsp 00002aae233e5180 error 4
Dec 16 15:57:44 MobileTV-6 kernel: radiusd[27191]: segfault at
00000000000000c8 rip 0000003daee5306b rsp 00002aae381a2180 error 4
Dec 16 15:57:56 MobileTV-6 kernel: radiusd[31469]: segfault at
00000000000000c8 rip 0000003daee5306b rsp 00002aaacbef9180 error 4


uname -a
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

free -m
             total       used       free     shared    buffers     cached
Mem:         16044       4825      11219          0        158       3332
-/+ buffers/cache:       1334      14710
Swap:         2047          0       2047

ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 137216
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                      (-n) 100000
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) 137216
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

Could you kindly point me the right direction?

Thanks,

Dinh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20091216/4bccaaad/attachment.html>


More information about the Freeradius-Users mailing list