bug-gnu-radius
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnu-radius] SEGFAULT on syntax error in raddb/config


From: Maurice Makaay
Subject: [Bug-gnu-radius] SEGFAULT on syntax error in raddb/config
Date: Mon, 3 Nov 2003 21:07:34 +0100

Hi,

I have found a SEGFAULT problem on a certain config file syntax problem.
I haven't tracked it down in the source code, but here are the problem
details (BTW I ran into this problem the moment I forgot a semi-colon in 
my rewrite block):

minimal config I can reproduce the problem with:
----------------------------------------------------------------------
rewrite {
        load "rewrite.internlnet";
}
                                                                                
logging {
        channel debug {
                file "radius.debug";
        };
};
                                                                                
auth {
        listen 127.0.0.1:1812;
};
----------------------------------------------------------------------

Last bit of truss output:
----------------------------------------------------------------------
open("/usr/adm/radius.log", O_WRONLY|O_APPEND|O_CREAT, 0666) = 4
llseek(4, 0, SEEK_END)                          = 125462
fstat64(4, 0xFFBEDAC8)                          = 0
ioctl(4, TCGETA, 0xFFBEDA54)                    Err#25 ENOTTY
write(4, " N o v   0 3   2 1 : 0 3".., 73)      = 73
close(4)                                        = 0
    Incurred fault #6, FLTBOUNDS  %pc = 0x00020E14
      siginfo: SIGSEGV SEGV_MAPERR addr=0x00000004
    Received signal #11, SIGSEGV [caught]
      siginfo: SIGSEGV SEGV_MAPERR addr=0x00000004
sigaction(SIGABRT, 0x00000000, 0xFFBEE8A0)      = 0
llseek(0, 0, SEEK_CUR)                          = 25998
sigaction(SIGABRT, 0xFFBEE770, 0xFFBEE7F0)      = 0
sigfillset(0xFE93C734)                          = 0
sigprocmask(SIG_UNBLOCK, 0xFFBEE820, 0x00000000) = 0
getpid()                                        = 1569 [1568]
kill(1569, SIGABRT)                             = 0
    Received signal #6, SIGABRT [default]
      siginfo: SIGABRT pid=1569 uid=0
        *** process killed ***
----------------------------------------------------------------------

gdb backtrace
----------------------------------------------------------------------
Program received signal SIGSEGV, Segmentation fault.
0x20e14 in ccparse () at config.y:226
226     config.y: No such file or directory.
(gdb) bt
#0  0x20e14 in ccparse () at config.y:226
#1  0x239c8 in cfg_read (fname=0xb4470 "/vol/radius/uumm/raddb/config",
    syntax=0xacdf8, data=0x0) at config.y:872
#2  0x33970 in radiusd_reconfigure () at radiusd.c:889
#3  0x32c00 in common_init () at radiusd.c:422
#4  0x32f78 in radiusd_main () at radiusd.c:524
#5  0x32fa4 in radiusd_start () at radiusd.c:538
#6  0x330b4 in main (argc=4, argv=0xffbefc9c) at radiusd.c:572
(gdb)
----------------------------------------------------------------------

I hope this is useful.


Regards,

-- Maurice Makaay





reply via email to

[Prev in Thread] Current Thread [Next in Thread]