over 30 radiusd processes - more information

Craig Campbell craig at ccraft.ca
Sun Oct 18 17:14:26 CEST 2009


I think you may be 'jumping the gun' a wee bit.

The system currently has over 13,000 active sessions.

There were some odd accounting packets, but the vast majority were valid. 
These could be configuration errors or hack attempts (investigating).

Questions:

1) Could bad accounting packets cause the radiusd process to EXIT?
2) Could bad accounting packets result in hung child processes (as seen in 
the gdb output after the radius log file)?

Thanks,
-craig

----- Original Message ----- 
From: "Ivan Kalik" <tnt at kalik.net>
To: "FreeRadius users mailing list" <freeradius-users at lists.freeradius.org>
Sent: Sunday, October 18, 2009 10:56 AM
Subject: Re: over 30 radiusd processes - more information


>> I've continued to try an investigate the root cause of this, and the last
>> run behaved slightly differently - the parent process seems to have
>> terminated, and there are more messages in the radius log.
>>
>> There were four (4) hung processes left over.
>>
>> I have attached the radius.log file below, as well as gdb sessions for 
>> the
>> hung processes showing the results of the gd 'bt' and 'list' commands.
>>
>> It looks like Alan's initial idea that the hung processes are a result of
>> running the acctstop.sh process are correct.  I've tried looking at the
>> code
>> to see if anything 'leapt out' at me, but the logic is quite clever, and
>> dissecting it from the middle is quite a challenge.
>>
>> I am hoping that the gdb output might prove helpful to someone already
>> familiar with the logic flow.
>>
>> It seems I can reproduce this issue within 24 hours, so if there is any
>> other information I could gather, please left me know.
>>
>> Thanks,
>> -craig
>>
>> radiusd.log
>>
>> Fri Oct 16 11:15:56 2009 : Info: Exiting normally.
>> Fri Oct 16 11:16:22 2009 : Info: rlm_sql (sql): Driver rlm_sql_mysql
>> (module
>> rlm_sql_mysql) loaded and linked
>> Fri Oct 16 11:16:22 2009 : Info: rlm_sql (sql): Attempting to connect to
>> radiusd at localhost:/radius
>> Fri Oct 16 11:16:22 2009 : Info: rlm_sql_mysql: Starting connect to MySQL
>> server for #0
>> Fri Oct 16 11:16:22 2009 : Info: rlm_sql_mysql: Starting connect to MySQL
>> server for #1
>> Fri Oct 16 11:16:22 2009 : Info: rlm_sql_mysql: Starting connect to MySQL
>> server for #2
>> Fri Oct 16 11:16:22 2009 : Info: rlm_sql_mysql: Starting connect to MySQL
>> server for #3
>> Fri Oct 16 11:16:22 2009 : Info: rlm_sql_mysql: Starting connect to MySQL
>> server for #4
>> Fri Oct 16 11:16:22 2009 : Info: Loaded virtual server inner-tunnel
>> Fri Oct 16 11:16:22 2009 : Info: Loaded virtual server
>> copy-acct-to-home-server
>> Fri Oct 16 11:16:22 2009 : Info: Loaded virtual server
>> copy-acct-to-radius-c
>> Fri Oct 16 11:16:22 2009 : Info: Loaded virtual server <default>
>> Fri Oct 16 11:16:22 2009 : Info: Ready to process requests.
>> Fri Oct 16 17:29:12 2009 : Error: [sql] stop packet with zero session
>> length. [user 'user35 at realm4TL', nas '192.168.1.101']
>> Sat Oct 17 02:00:18 2009 : Error: [sql] stop packet with zero session
>> length. [user 'user22 at realm1', nas '192.168.1.101']
>> Sat Oct 17 02:00:18 2009 : Error: [sql] stop packet with zero session
>> length. [user 'user17 at realm1', nas '192.168.1.101']
> etc.
>
> /*
> * If stop but zero session length AND no previous
> * session found, drop it as in invalid packet
> * This is to fix CISCO's aaa from filling our
> * table with bogus crap
> */
>
> Your NAS is broken. Fix it so it sends proper accounting packets.
>
> Ivan Kalik
> Kalik Informatika ISP
>
> -
> List info/subscribe/unsubscribe? See 
> http://www.freeradius.org/list/users.html
>
> __________ Information from ESET Smart Security, version of virus 
> signature database 4519 (20091018) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>
>
> 


__________ Information from ESET Smart Security, version of virus signature database 4519 (20091018) __________

The message was checked by ESET Smart Security.

http://www.eset.com






More information about the Freeradius-Users mailing list