Help to debugging the server using GDb

Michael Joosten michael.joosten at
Wed Aug 23 23:49:34 CEST 2006

Alan DeKok wrote:

>Shankar Ganesh C <shankarganesh at>wrote:
>>I was trying to debug the radiusd through gbb.But the program is exiting out
>>below are the logs
>  The logs don't show a problem.
>  Perhaps you could give more information about what the problem is.
I'd guess Shankar just wanted to have radiusd stay in the foreground and 
not "daemonize" itself... That would be
$ gdb /usr/local/bin/radiusd
b <some function>
run -X

Or, which is usually better, let radiusd initialize itself such that all 
required modules and functions are loaded:

$gdb /usr/local/bin/radiusd
run -XA
Listening on authentication *:1812
Listening on accounting *:1813
Ready to process requests.
^C (yes, Control-C)
break <your entry function for debugging>

and let your tests run.


More information about the Freeradius-Devel mailing list