Alexander Clouter <alex@digriz.org.uk> wrote:
I am though currently trying to pin down a bug where FreeRADIUS just closes it's-self down for no reason at all. I have run tcpdump during the clean shutdown, and see it is not malformed traffic causing the problem, RAM usage is normal, open FD's is sane, etc etc. Caught the event many times with gdb, but it's not a SIG, just a regular exit().
Currently now running FreeRADIUS in production with -X to see if there is anything in the full debug logs...
Caught it! ---- [snipped] rlm_sql (sql.dot1x): Reserving sql socket id: 1 rlm_sql_postgresql: Status: PGRES_COMMAND_OK rlm_sql_postgresql: query affected rows = 1 rlm_sql (sql.dot1x): Released sql socket id: 1 ++[sql.dot1x] returns ok ++? if (invalid) ? Evaluating (invalid) -> FALSE ++? if (invalid) -> FALSE ++? if (failed) ? Evaluating (failed) -> TRUE ++? if (failed) -> TRUE ++- entering if (failed) {...} +++? if (Acct-Status-Type == Stop && (!(Acct-Session-Time) || Acct-Session-Time == 0) && Packet-Transmit-Counter > 5) ? Evaluating (Acct-Status-Type == Stop ) -> FALSE ??? Skipping (Acct-Session-Time) ?? Skipping (Acct-Session-Time == 0) ? Skipping (Packet-Transmit-Counter > 5) +++? if (Acct-Status-Type == Stop && (!(Acct-Session-Time) || Acct-Session-Time == 0) && Packet-Transmit-Counter > 5) -> FALSE ++- if (failed) returns ok } # server dot1x.decoupled-accounting Finished request 10642. Cleaning up request 10642 ID 25817 with timestamp +5748 Going to the next request Detail listener /var/log/freeradius/radacct/journal/dot1x/detail.acct.* state replied signalled 0 waiting 0.214551 sec Waking up in 0.1 seconds. Waking up in 0.1 seconds. rad_recv: Status-Server packet from host 127.0.0.1 port 50412, id=38, length=38 [event.c:3002] Failed to insert event ---- There seem to be a bunch of malloc()'s where it could fail lurking behind INSERT_EVENT(). I am pretty sure that the system is not running out of RAM (it is a 512MB box) but I am now priming up snmpd and RRD to track this over time. Any ideas? Cheers -- Alexander Clouter .sigmonster says: The faster we go, the rounder we get. -- The Grateful Dead