Bus Error when loading SQL clients

Arran Cudbard-Bell A.Cudbard-Bell at sussex.ac.uk
Sun Oct 14 17:29:00 CEST 2007


Alan DeKok wrote:
> Arran Cudbard-Bell wrote:
>   
>> 215             if (!clients->trees[client->prefix]) {
>>     
>
>   And what are the contents of client->prefix, and
> clients->trees[client->prefix] ?  Or is "clients" still NULL?
>
>   Also try a "cvs update".  I think I found a logic bug.
>   
rlm_sql (sql_clients): Adding client 139.184.9.43 (hp-e-artc-3-sw1) to 
clients list
ASSERT FAILED client.c[201]: root_clients == NULL

Program received signal SIGABRT, Aborted.
0x900482ec in kill ()
(gdb) bt
#0  0x900482ec in kill ()
#1  0x9012e7d4 in abort ()
#2  0x000108c8 in rad_assert_fail (file=0x0, line=2155905152, expr=0x2 
<Address 0x2 out of bounds>) at util.c:339
#3  0x000033e4 in client_add (clients=0x23390, client=0x3cdad0) at 
client.c:201
#4  0x00206d5c in rlm_sql_instantiate (conf=0x27090, instance=0x3cad74) 
at rlm_sql.c:337
#5  0x0000b2c8 in find_module_instance (modules=0x0, instname=0x311e40 
"sql_clients") at modules.c:302
#6  0x0000bd88 in setup_modules (reload=0, config=0x300b50) at modules.c:807
#7  0x0000acf4 in read_mainconfig (reload=0) at mainconfig.c:917
#8  0x0000e7a4 in main (argc=4, argv=0xbffffa48) at radiusd.c:287


(gdb) print client->prefix
$2 = 32

(gdb) print clients->trees[client->prefix]
$3 = (struct rbtree_t *) 0x70726f78
(gdb)
$4 = (struct rbtree_t *) 0x70726f78

>   Alan DeKok.
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
>   




More information about the Freeradius-Devel mailing list