segmentation fault freeradius 2.1.7 using rlm_sql

Amir Tal amir at ccc.co.il
Wed Jul 27 12:49:19 CEST 2011


Hi all,

freeRADIUS version 2.1.7
(package freeradius2 on centos 5.6)

Radius is configured to store user info (auth) in ldap - running on same machine as freeradius,
and use rlm_sql for accounting info (and simultaneous use checks) - running on remote machine.

For some unknown reason radiusd keeps getting segmentation faults, every few days and even after several hours of work.

Jul 27 04:01:03 RADIUS4 kernel: radiusd[29903]: segfault at 00000000000000c8 rip 00002aef39fb9cfb rsp 00000000456d6170 error 4

Last lines in the radius.log :
[sql]   expand:            UPDATE radacct SET              acctstoptime       = '%S',              acctsessiontime    = '%{Acct-Session-Time}',              acctinputoctets    = '%{%{Acct-Input-Gigawords}:-0}' << 32 |                                   '%{%{Acct-Input-Octets}:-0}',              acctoutputoctets   = '%{%{Acct-Output-Gigawords}:-0}' << 32 |                                   '%{%{Acct-Output-Octets}:-0}',              acctterminatecause = '%{Acct-Terminate-Cause}',              acctstopdelay      = '%{%{Acct-Delay-Time}:-0}',              connectinfo_stop   = '%{Connect-Info}'           WHERE acctsessionid   = '%{Acct-Session-Id}'           AND username          = '%{SQL-User-Name}'           AND nasipaddress      = '%{NAS-IP-Address}' ->            UPDATE radacct SET              acctstoptime       = '2011-07-27 04:01:03',              acctsessiontime    = '0',              acctinputoctets    = '0' << 32 |                                   '0',              acctoutputoctets   = '0' << 32 |  
[sql]   expand: /var/log/radius/sqltrace.sql -> /var/log/radius/sqltrace.sql
rlm_sql (sql): Trying to (re)connect unconnected handle 12..
rlm_sql (sql): Attempting to connect rlm_sql_mysql #12

since configuration files are quite large, I didn't attach complete dump or radius -X ,
let me know what other info is needed.

Regards,

Amir Tal.




More information about the Freeradius-Users mailing list