Segmentation fault on 2.1.7 during HUP
Hello all! We use 2.1.7 version of freeradius+mysql 5 running on RHEL4u8. We tried to apply PIN authentication based on file users which located in /etc/raddb. I inserted to crontab reload (HUP) command which runs every 30 minutes. After the period of time we found that radiusd crashed with Segmentation fault error in sql_log module. I turned off this module, but it didn't help us. Now it's happening with voip-postpaid module which was adapted to mysql. I read docs/bugs and tried to trace the bug, but in gdb radius was working 3 days without any crash. All that I have my configs and debug output after radiusd -X Could anybody please tell me what I should do? May be I have to recompile FR with some another options or my configs fail. I tried 2.1.8 and it didn't help me. Thank You very much! [sql] expand: %{User-Name} -> 2018 [sql] sql_set_user escaped user --> '2018' rlm_sql (sql): Reserving sql socket id: 2 [sql] expand: SELECT id, username, attribute, value, op FROM radcheck WHERE username = '%{SQL-User-Name}' ORDER BY id -> SELECT id, username, attribute, value, op FROM radcheck WHERE username = '2018' ORDER BY id [sql] expand: SELECT groupname FROM usergroup WHERE username = '%{SQL-User-Name}' ORDER BY priority -> SELECT groupname FROM usergroup WHERE username = '2018' ORDER BY priority rlm_sql (sql): Released sql socket id: 2 [sql] User 2018 not found ++[sql] returns notfound ++[expiration] returns noop ++[logintime] returns noop ++[pap] returns updated Found Auth-Type = PAP +- entering group PAP {...} [pap] login attempt with password "2018" [pap] Using clear text password "2018" [pap] User authenticated successfully ++[pap] returns ok Login OK: [2018] (from client test port 0 cli 1115551212) +- entering group post-auth {...} [sql] expand: %{User-Name} -> 2018 [sql] sql_set_user escaped user --> '2018' [sql] expand: INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( '%{User-Name}', 'HIDDEN', '%{reply:Packet-Type}', '%S') -> INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( '2018', 'HIDDEN', 'Access-Accept', '2010-05-17 20:07:14') rlm_sql (sql) in sql_postauth: query is INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( '2018', 'HIDDEN', 'Access-Accept', '2010-05-17 20:07:14') rlm_sql (sql): Reserving sql socket id: 1 rlm_sql (sql): Released sql socket id: 1 ++[sql] returns ok [sql_log] Processing sql_log_postauth [sql_log] expand: %{User-Name} -> 2018 [sql_log] expand: %{%{User-Name}:-DEFAULT} -> 2018 [sql_log] sql_set_user escaped user --> '2018' Segmentation fault -- View this message in context: http://old.nabble.com/Segmentation-fault-on-2.1.7-during-HUP-tp28590790p2859... Sent from the FreeRadius - User mailing list archive at Nabble.com.
coja wrote:
Hello all! We use 2.1.7 version of freeradius+mysql 5 running on RHEL4u8. We tried to apply PIN authentication based on file users which located in /etc/raddb. I inserted to crontab reload (HUP) command which runs every 30 minutes.
In 2.1.8 you can use "radmin" to reload *just* the "files" module. That may help. See raddb/sites-available/control-socket. You will need to set "mode = rw". Then, $ radmin -e "hup files" And *just* the files module will be reloaded. Or... put the user information into a database. That way no HUP is needed. Alan DeKok.
Alan DeKok-2 wrote:
coja wrote:
Hello all! We use 2.1.7 version of freeradius+mysql 5 running on RHEL4u8. We tried to apply PIN authentication based on file users which located in /etc/raddb. I inserted to crontab reload (HUP) command which runs every 30 minutes.
In 2.1.8 you can use "radmin" to reload *just* the "files" module. That may help.
See raddb/sites-available/control-socket. You will need to set "mode = rw". Then,
$ radmin -e "hup files"
And *just* the files module will be reloaded.
Or... put the user information into a database. That way no HUP is needed.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Yes, it works(i will test it more time). Thank YOU Alan. Could you please tell me how i can include my pins file to users file. When i write line like $INCLUDE pins in the beginning of the users file, i can see how that line will disapear after reload or restart. I use web interface for PIN file and it has special rights for apache. Are there exist ways to do it somehow or i shoul work with users file through interface? Thanks. -- View this message in context: http://old.nabble.com/Segmentation-fault-on-2.1.7-during-HUP-tp28590790p2861... Sent from the FreeRadius - User mailing list archive at Nabble.com.
coja wrote:
Could you please tell me how i can include my pins file to users file. When i write line like $INCLUDE pins in the beginning of the users file, i can see how that line will disapear after reload or restart.
Huh? The "users" file is reloaded, along with all $INCLUDE files. Maybe try using an absolute path for the $INCLUDE?
I use web interface for PIN file and it has special rights for apache. Are there exist ways to do it somehow or i shoul work with users file through interface?
Have you thought about using a database? That's really what they're for. Alan DeKok.
Alan DeKok-2 wrote:
coja wrote:
Could you please tell me how i can include my pins file to users file. When i write line like $INCLUDE pins in the beginning of the users file, i can see how that line will disapear after reload or restart.
Huh? The "users" file is reloaded, along with all $INCLUDE files.
Maybe try using an absolute path for the $INCLUDE?
I use web interface for PIN file and it has special rights for apache. Are there exist ways to do it somehow or i shoul work with users file through interface?
Have you thought about using a database? That's really what they're for.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Hello All! I solved that problem. I've just written $INCLUDE ./users.other and the problem gone. I can't use databases, because it's so complicated to replicate databases between offices. I store accounting of different brench offices in 5 databases. Ok i will try to find a way how to replicate only the pins file and import it to the databases. Thank You! -- View this message in context: http://old.nabble.com/Segmentation-fault-on-2.1.7-during-HUP-tp28590790p2862... Sent from the FreeRadius - User mailing list archive at Nabble.com.
participants (2)
-
Alan DeKok -
coja