Re: Problem with 2.1.10 hanging

2010-08-26 Thread David Mitchell
Alan DeKok wrote:
> David Mitchell wrote:
>> My 2.1.10 server I got compiled has a problem where it hangs after a few
>> hours. I'm not sure if it's related to the number of requests it's
>> processed or not. It's happened three times so far. Restarting the
>> server always gets it working again. Using tcpdump I can confirm that
>> it's receiving requests from the NAS but not processing them. Using
>> strace I can see that it's stuck on a futex:
>>
>> write(1, "Wed Aug 25 16:13:45 2010 : Info: "..., 70) = 70
>> futex(0x827fe88, FUTEX_WAIT_PRIVATE, 2, NULL
> 
>   It's blocked in a write?  Weird...
> 
>   See doc/bugs.  You should be able to run it under gdb.  Then when it's
> blocked, hit -C, and do "bt".  That should show *which* mutex is
> locked.

I have it running in gdb now. I'll follow up on the devel list once I
get some useful info. Thanks,

-David

> 
>> Alan, let me know if you'd rather have this type of thread on the
>> Developer list instead of the User list. Thanks,
> 
>   That's probably the better place.
> 
>   Alan DeKok.
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


-- 
-
| David Mitchell (mitch...@ucar.edu)   Network Engineer IV  |
| Tel: (303) 497-1845  National Center for  |
| FAX: (303) 497-1818  Atmospheric Research |
-
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Problem with 2.1.10 hanging

2010-08-26 Thread Alan DeKok
David Mitchell wrote:
> My 2.1.10 server I got compiled has a problem where it hangs after a few
> hours. I'm not sure if it's related to the number of requests it's
> processed or not. It's happened three times so far. Restarting the
> server always gets it working again. Using tcpdump I can confirm that
> it's receiving requests from the NAS but not processing them. Using
> strace I can see that it's stuck on a futex:
> 
> write(1, "Wed Aug 25 16:13:45 2010 : Info: "..., 70) = 70
> futex(0x827fe88, FUTEX_WAIT_PRIVATE, 2, NULL

  It's blocked in a write?  Weird...

  See doc/bugs.  You should be able to run it under gdb.  Then when it's
blocked, hit -C, and do "bt".  That should show *which* mutex is
locked.

> Alan, let me know if you'd rather have this type of thread on the
> Developer list instead of the User list. Thanks,

  That's probably the better place.

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Problem with 2.1.10 hanging

2010-08-26 Thread David Mitchell
My 2.1.10 server I got compiled has a problem where it hangs after a few
hours. I'm not sure if it's related to the number of requests it's
processed or not. It's happened three times so far. Restarting the
server always gets it working again. Using tcpdump I can confirm that
it's receiving requests from the NAS but not processing them. Using
strace I can see that it's stuck on a futex:

write(1, "Wed Aug 25 16:13:45 2010 : Info: "..., 70) = 70
futex(0x827fe88, FUTEX_WAIT_PRIVATE, 2, NULL

The server is doing nothing more than EAP-TLS authentication for some
wireless AP's. Debug from the config loading and the last few packets
are below.

Alan, let me know if you'd rather have this type of thread on the
Developer list instead of the User list. Thanks,

-David Mitchell

Wed Aug 25 14:29:47 2010 : Info: FreeRADIUS Version 2.1.10, for host
i686-pc-linux-gnu, built on Aug 25 2010 at 07:46:58
Wed Aug 25 14:29:47 2010 : Info: Copyright (C) 1999-2009 The FreeRADIUS
server project and contributors.
Wed Aug 25 14:29:47 2010 : Info: There is NO warranty; not even for
MERCHANTABILITY or FITNESS FOR A
Wed Aug 25 14:29:47 2010 : Info: PARTICULAR PURPOSE.
Wed Aug 25 14:29:47 2010 : Info: You may redistribute copies of
FreeRADIUS under the terms of the
Wed Aug 25 14:29:47 2010 : Info: GNU General Public License v2.
Wed Aug 25 14:29:47 2010 : Info: Starting - reading configuration files ...
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/radiusd.conf
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/proxy.conf
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/clients.conf
Wed Aug 25 14:29:47 2010 : Debug: including files in directory
/usr/local/etc/raddb/modules/
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/cui
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/detail
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/exec
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/mac2ip
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/pam
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/unix
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/logintime
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/etc_group
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/inner-eap
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/ippool
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/sqlcounter_expire_on_login
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/expr
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/wimax
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/echo
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/linelog
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/always
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/preprocess
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/expiration
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/pap
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/attr_filter
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/checkval
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/chap
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/smsotp
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/detail.example.com
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/otp
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/passwd
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/attr_rewrite
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/ntlm_auth
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/perl
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/smbpasswd
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/acct_unique
Wed Aug 25 14:29:47 2010 : Debug: including configuration file
/usr/local/etc/raddb/modules/ldap
Wed