Help to debugging the server using GDb
Shankar Ganesh C
shankarganesh at tataelxsi.co.in
Wed Aug 23 13:45:52 CEST 2006
Hi
I was trying to debug the radiusd through gbb.But the program is exiting out
below are the logs
Pls let me know any debugging flags needs to be set, when i need to debug
using GDB
Rgds,
Shankar ganesh
Wed Aug 23 16:13:26 2006 : Info: Starting - reading configuration files ...
n947 if ((mainconfig.allow_core_dumps == FALSE) && (debug_flag ==
0)) {
(gdb) n
959 DEBUG2("radiusd: entering modules setup");
(gdb) n
950 act.sa_handler = sig_fatal;
(gdb) n
951 sigaction(SIGSEGV, &act, NULL);
(gdb) n
959 DEBUG2("radiusd: entering modules setup");
(gdb) n
960 if (setup_modules() < 0) {
(gdb) n
n
971 if (strcmp(radlog_dir, "syslog") == 0) {
(gdb) n
972 openlog(progname, LOG_PID, syslog_facility);
(gdb) n
977 if (strcmp(radlog_dir, "stdout") == 0) {
(gdb) n
978 radlog_dest = RADLOG_STDOUT;
(gdb) n
979 } else if (strcmp(radlog_dir, "stderr") == 0) {
(gdb) n
980 radlog_dest = RADLOG_STDERR;
(gdb) n
984 rl_init();
(gdb) n
989 pair_builtincompare_init();
(gdb) n
998 if (debug_flag == 0 && dont_fork == FALSE) {
(gdb) n
999 pid = fork();
(gdb) n
1000 if(pid < 0) {
(gdb) n
1001 radlog(L_ERR|L_CONS, "Couldn't fork");
(gdb) n
1008 if(pid > 0) {
(gdb) n
1009 exit(0);
(gdb) n
Program exited normally.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20060823/0a75fefb/attachment.html>
More information about the Freeradius-Devel
mailing list