Richard Cotrina rcc at
Thu Aug 25 01:23:00 CEST 2005

>   You've included everything but the information requested in doc/bugs.
>   My bet is that this is bug #98
>   Alan DeKok.

Alan :

What I have found when using rlm_sql_mysql in FreeBSD ( and probably other
OS ) is that radiusd segfault happens if num_sql_socks is set to > 1.  I got
the same results even when disabling shared libs.

Take a look at the debug output of gdb :

rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked
rlm_sql (sql): Attempting to connect to radius at localhost:/radius
rlm_sql (sql): starting 0
rlm_sql (sql): Attempting to connect rlm_sql_mysql #0
rlm_sql_mysql: Starting connect to MySQL server for #0
rlm_sql (sql): Connected new DB handle, #0
rlm_sql (sql): starting 1
rlm_sql (sql): Attempting to connect rlm_sql_mysql #1

Program received signal SIGSEGV, Segmentation fault.
0x483b7a48 in sql_init_socket (sqlsocket=0x8092720, config=0x8096300)
    at sql_mysql.c:71
71              memset(mysql_sock, 0, sizeof(*mysql_sock));



Richard Cotrina

More information about the Freeradius-Users mailing list